/**
 * 7000 Casino - Layout Stylesheet
 * All classes use prefix "pg1c-" for namespace isolation
 * Color palette: #2E4057 (bg), #D3D3D3 (text), #F0F8FF (accent)
 * Mobile-first design, max-width 430px
 */

:root {
  --pg1c-primary: #2E4057;
  --pg1c-secondary: #D3D3D3;
  --pg1c-accent: #F0F8FF;
  --pg1c-bg: #1a2636;
  --pg1c-bg-light: #243447;
  --pg1c-bg-card: #1e3044;
  --pg1c-text: #D3D3D3;
  --pg1c-text-light: #F0F8FF;
  --pg1c-text-muted: #8899aa;
  --pg1c-highlight: #e8b84b;
  --pg1c-highlight-dark: #c49a3a;
  --pg1c-success: #4ade80;
  --pg1c-danger: #f87171;
  --pg1c-border: #2a3f55;
  --pg1c-radius: 8px;
  --pg1c-radius-lg: 12px;
  --pg1c-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --pg1c-transition: all 0.3s ease;
}

html {
  font-size: 62.5%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--pg1c-bg);
  color: var(--pg1c-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.pg1c-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: var(--pg1c-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: var(--pg1c-shadow);
}

.pg1c-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.pg1c-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.pg1c-logo-text {
  color: var(--pg1c-highlight);
  font-size: 1.6rem;
  font-weight: 700;
  white-space: nowrap;
}

.pg1c-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg1c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--pg1c-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg1c-transition);
  text-decoration: none;
  min-height: 36px;
}

.pg1c-btn-register {
  background: var(--pg1c-highlight);
  color: var(--pg1c-primary);
}

.pg1c-btn-register:hover {
  background: var(--pg1c-highlight-dark);
  transform: scale(1.05);
}

.pg1c-btn-login {
  background: transparent;
  color: var(--pg1c-text-light);
  border: 1px solid var(--pg1c-highlight);
}

.pg1c-btn-login:hover {
  background: rgba(232,184,75,0.1);
}

.pg1c-menu-btn {
  background: none;
  border: none;
  color: var(--pg1c-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* ===== MOBILE MENU ===== */
.pg1c-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.pg1c-overlay-active {
  opacity: 1;
  pointer-events: all;
}

.pg1c-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--pg1c-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.pg1c-menu-active {
  right: 0;
}

.pg1c-mobile-menu .pg1c-menu-close {
  background: none;
  border: none;
  color: var(--pg1c-text);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.pg1c-mobile-menu ul {
  list-style: none;
  margin-top: 3rem;
}

.pg1c-mobile-menu li {
  border-bottom: 1px solid var(--pg1c-border);
}

.pg1c-mobile-menu a {
  display: block;
  padding: 1.2rem 0;
  color: var(--pg1c-text);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.2s;
}

.pg1c-mobile-menu a:hover {
  color: var(--pg1c-highlight);
}

/* ===== MAIN CONTENT ===== */
main {
  padding-top: 56px;
}

.pg1c-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== CAROUSEL ===== */
.pg1c-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--pg1c-radius);
  margin-bottom: 1.5rem;
}

.pg1c-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.pg1c-slide-active {
  display: block;
}

.pg1c-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.pg1c-slide-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.pg1c-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
}

.pg1c-dot-active {
  background: var(--pg1c-highlight);
}

/* ===== SECTION HEADINGS ===== */
.pg1c-section {
  margin-bottom: 2rem;
}

.pg1c-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg1c-highlight);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pg1c-highlight);
}

.pg1c-section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pg1c-text-light);
  margin: 1.2rem 0 0.8rem;
}

/* ===== GAME GRID ===== */
.pg1c-game-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg1c-text-light);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.4rem;
  border-left: 3px solid var(--pg1c-highlight);
}

.pg1c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.pg1c-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.pg1c-game-item:hover {
  transform: scale(1.05);
}

.pg1c-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--pg1c-radius);
  object-fit: cover;
  border: 2px solid var(--pg1c-border);
}

.pg1c-game-item span {
  font-size: 1rem;
  color: var(--pg1c-text);
  margin-top: 0.3rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== CONTENT CARDS ===== */
.pg1c-card {
  background: var(--pg1c-bg-card);
  border-radius: var(--pg1c-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--pg1c-border);
}

.pg1c-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg1c-highlight);
  margin-bottom: 0.8rem;
}

.pg1c-card p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--pg1c-text);
  margin-bottom: 0.6rem;
}

.pg1c-card ul {
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.pg1c-card li {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--pg1c-text);
  margin-bottom: 0.3rem;
}

/* ===== PROMO LINKS ===== */
.pg1c-promo-link {
  color: var(--pg1c-highlight);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.pg1c-promo-link:hover {
  color: var(--pg1c-highlight-dark);
}

.pg1c-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pg1c-highlight), var(--pg1c-highlight-dark));
  color: var(--pg1c-primary);
  font-weight: 700;
  font-size: 1.4rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--pg1c-radius-lg);
  cursor: pointer;
  transition: var(--pg1c-transition);
  text-decoration: none;
  width: 100%;
  margin: 1rem 0;
}

.pg1c-promo-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(232,184,75,0.4);
}

/* ===== INTERNAL LINKS ===== */
.pg1c-internal-link {
  color: var(--pg1c-text-light);
  text-decoration: underline;
  transition: color 0.2s;
}

.pg1c-internal-link:hover {
  color: var(--pg1c-highlight);
}

/* ===== WINNER SHOWCASE ===== */
.pg1c-winner-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pg1c-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pg1c-bg-light);
  padding: 0.8rem 1rem;
  border-radius: var(--pg1c-radius);
  font-size: 1.2rem;
}

.pg1c-winner-name {
  color: var(--pg1c-text-light);
}

.pg1c-winner-amount {
  color: var(--pg1c-success);
  font-weight: 700;
}

/* ===== PAYMENT / APP SECTION ===== */
.pg1c-payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.pg1c-payment-item {
  background: var(--pg1c-bg-light);
  padding: 0.6rem 1.2rem;
  border-radius: var(--pg1c-radius);
  font-size: 1.2rem;
  color: var(--pg1c-text-light);
}

/* ===== FOOTER ===== */
.pg1c-footer {
  background: var(--pg1c-primary);
  padding: 2rem 1rem 6rem;
  text-align: center;
  margin-top: 2rem;
}

.pg1c-footer-brand {
  font-size: 1.3rem;
  color: var(--pg1c-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pg1c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pg1c-footer-links a {
  color: var(--pg1c-text);
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--pg1c-border);
  border-radius: var(--pg1c-radius);
  transition: var(--pg1c-transition);
}

.pg1c-footer-links a:hover {
  border-color: var(--pg1c-highlight);
  color: var(--pg1c-highlight);
}

.pg1c-footer-copy {
  font-size: 1.1rem;
  color: var(--pg1c-text-muted);
  margin-top: 1rem;
}

/* ===== BOTTOM NAVIGATION ===== */
.pg1c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--pg1c-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
  border-top: 1px solid var(--pg1c-border);
}

.pg1c-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--pg1c-text-muted);
  cursor: pointer;
  transition: var(--pg1c-transition);
  padding: 0.4rem;
}

.pg1c-bottom-nav-btn:hover,
.pg1c-bottom-nav-btn:active {
  color: var(--pg1c-highlight);
}

.pg1c-bottom-nav-btn .pg1c-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.pg1c-bottom-nav-btn .pg1c-nav-label {
  font-size: 1rem;
  line-height: 1.2;
}

.pg1c-nav-current {
  color: var(--pg1c-highlight) !important;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
  .pg1c-bottom-nav {
    display: none;
  }
  .pg1c-footer {
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

/* ===== UTILITY ===== */
.pg1c-text-center { text-align: center; }
.pg1c-text-highlight { color: var(--pg1c-highlight); font-weight: 600; }
.pg1c-text-success { color: var(--pg1c-success); }
.pg1c-mt-1 { margin-top: 1rem; }
.pg1c-mt-2 { margin-top: 2rem; }
.pg1c-mb-1 { margin-bottom: 1rem; }
.pg1c-mb-2 { margin-bottom: 2rem; }
.pg1c-hidden { display: none; }
