/**
 * tg7771 Core Stylesheet
 * All classes use wc751- prefix for namespace isolation
 * Color palette: #F5DEB3 #FFFFFF #8B4513 #006400 #1C2833 #A0522D
 * Mobile-first design: max-width 430px base
 */

/* CSS Variables */
:root {
  --wc751-primary: #006400;
  --wc751-secondary: #8B4513;
  --wc751-accent: #A0522D;
  --wc751-bg: #1C2833;
  --wc751-bg-light: #2C3E50;
  --wc751-text: #FFFFFF;
  --wc751-text-light: #F5DEB3;
  --wc751-gold: #F5DEB3;
  --wc751-dark: #1C2833;
  --wc751-border: rgba(245, 222, 179, 0.2);
  --wc751-radius: 8px;
  --wc751-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --wc751-header-h: 56px;
  --wc751-bnav-h: 60px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5rem;
  color: var(--wc751-text);
  background: var(--wc751-bg);
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.wc751-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.wc751-wrapper {
  width: 100%;
  overflow: hidden;
}

/* ========== HEADER ========== */
.wc751-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0d1a0d 0%, var(--wc751-dark) 100%);
  border-bottom: 2px solid var(--wc751-primary);
  height: var(--wc751-header-h);
}
.wc751-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 100%;
}
.wc751-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wc751-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.wc751-logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--wc751-gold);
  letter-spacing: 0.5px;
}
.wc751-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wc751-btn-register {
  background: linear-gradient(135deg, var(--wc751-primary), #009400);
  color: var(--wc751-text);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.wc751-btn-register:hover {
  background: linear-gradient(135deg, #009400, var(--wc751-primary));
  transform: scale(1.05);
}
.wc751-btn-login {
  background: transparent;
  color: var(--wc751-gold);
  border: 1.5px solid var(--wc751-gold);
  padding: 0.55rem 1.3rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.wc751-btn-login:hover {
  background: rgba(245, 222, 179, 0.1);
  transform: scale(1.05);
}
.wc751-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--wc751-gold);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* Desktop Navigation */
.wc751-desktop-nav {
  display: none;
}

/* Mobile Menu */
.wc751-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.wc751-overlay-active {
  opacity: 1;
  visibility: visible;
}
.wc751-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #0d1a0d 0%, var(--wc751-dark) 100%);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.wc751-menu-active {
  right: 0;
}
.wc751-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--wc751-gold);
  font-size: 2rem;
  cursor: pointer;
}
.wc751-mobile-menu nav a {
  display: block;
  padding: 1.2rem 0;
  color: var(--wc751-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--wc751-border);
  transition: color 0.2s;
}
.wc751-mobile-menu nav a:hover {
  color: var(--wc751-gold);
}

/* ========== MAIN CONTENT ========== */
.wc751-main {
  padding-top: calc(var(--wc751-header-h) + 0.8rem);
  min-height: 100vh;
}

/* ========== CAROUSEL ========== */
.wc751-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--wc751-radius);
  overflow: hidden;
  margin-bottom: 1.6rem;
  aspect-ratio: 16/7;
}
.wc751-carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.wc751-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wc751-slide-active { display: block; }
.wc751-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.wc751-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.wc751-dot-active { background: var(--wc751-gold); }

/* ========== SECTION HEADERS ========== */
.wc751-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--wc751-gold);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--wc751-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wc751-section-title i,
.wc751-section-title .material-icons {
  font-size: 2rem;
  color: var(--wc751-primary);
}

/* ========== GAME GRID ========== */
.wc751-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.wc751-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}
.wc751-game-item:hover { transform: translateY(-2px); }
.wc751-game-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--wc751-border);
  margin-bottom: 0.4rem;
  transition: border-color 0.3s;
}
.wc751-game-item:hover .wc751-game-icon {
  border-color: var(--wc751-primary);
}
.wc751-game-name {
  font-size: 1rem;
  color: var(--wc751-text-light);
  line-height: 1.2;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== CARDS & CONTENT ========== */
.wc751-card {
  background: var(--wc751-bg-light);
  border-radius: var(--wc751-radius);
  padding: 1.4rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--wc751-border);
}
.wc751-card h2 {
  font-size: 1.6rem;
  color: var(--wc751-gold);
  margin-bottom: 0.8rem;
}
.wc751-card h3 {
  font-size: 1.4rem;
  color: var(--wc751-text-light);
  margin-bottom: 0.6rem;
}
.wc751-card p {
  font-size: 1.3rem;
  line-height: 2.1rem;
  color: var(--wc751-text);
  margin-bottom: 0.8rem;
}
.wc751-promo-link {
  color: var(--wc751-gold);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
  border-bottom: 1px dashed var(--wc751-gold);
}
.wc751-promo-link:hover {
  color: #fff;
  border-color: #fff;
}
.wc751-btn-play {
  display: inline-block;
  background: linear-gradient(135deg, var(--wc751-primary), #009400);
  color: var(--wc751-text);
  padding: 1rem 2.4rem;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}
.wc751-btn-play:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 100, 0, 0.5);
}

/* ========== FOOTER ========== */
.wc751-footer {
  background: linear-gradient(180deg, var(--wc751-dark), #0a0f0a);
  padding: 2rem 0 8rem;
  margin-top: 2rem;
  border-top: 2px solid var(--wc751-primary);
}
.wc751-footer-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.wc751-footer-brand {
  font-size: 1.3rem;
  color: var(--wc751-text-light);
  line-height: 2rem;
  margin-bottom: 1.4rem;
}
.wc751-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.wc751-footer-links a {
  background: rgba(0, 100, 0, 0.3);
  color: var(--wc751-gold);
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.wc751-footer-links a:hover {
  background: var(--wc751-primary);
  color: #fff;
}
.wc751-footer-site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.wc751-footer-site-links a {
  color: var(--wc751-text);
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  transition: color 0.2s;
}
.wc751-footer-site-links a:hover { color: var(--wc751-gold); }
.wc751-copyright {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-top: 1rem;
}

/* ========== BOTTOM NAVIGATION ========== */
.wc751-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0d1a0d, #060a06);
  border-top: 2px solid var(--wc751-primary);
  height: var(--wc751-bnav-h);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.4rem;
}
.wc751-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0.3rem;
  border-radius: 8px;
}
.wc751-bnav-btn i,
.wc751-bnav-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
  transition: transform 0.25s, color 0.25s;
}
.wc751-bnav-btn span {
  font-size: 1rem;
  font-weight: 600;
}
.wc751-bnav-btn:hover,
.wc751-bnav-active {
  color: var(--wc751-gold);
}
.wc751-bnav-btn:hover i,
.wc751-bnav-active i,
.wc751-bnav-btn:hover .material-icons,
.wc751-bnav-active .material-icons {
  transform: scale(1.15);
  color: var(--wc751-gold);
}

/* ========== RESPONSIVE ========== */
@media (min-width: 769px) {
  .wc751-bottom-nav { display: none; }
  .wc751-header-inner { max-width: 768px; }
  .wc751-container { max-width: 768px; }
  .wc751-footer-inner { max-width: 768px; }
  .wc751-menu-toggle { display: none; }
  .wc751-desktop-nav { display: flex; gap: 1.2rem; }
  .wc751-desktop-nav a {
    color: var(--wc751-text-light);
    font-size: 1.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: color 0.2s;
  }
  .wc751-desktop-nav a:hover { color: var(--wc751-gold); }
  .wc751-footer { padding-bottom: 2rem; }
  .wc751-game-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 768px) {
  .wc751-main { padding-bottom: 80px; }
  .wc751-menu-toggle { display: block; }
}
