/**
 * 7v7 Core CSS Stylesheet
 * Class prefix: gead-
 * Color palette: #E0F2F1 | #FF8A80 | #008B8B | #1A1A1A | #B2DFDB
 */

/* CSS Variables */
:root {
  --gead-primary: #008B8B;
  --gead-accent: #FF8A80;
  --gead-bg: #1A1A1A;
  --gead-bg-light: #2A2A2A;
  --gead-text: #E0F2F1;
  --gead-text-muted: #B2DFDB;
  --gead-surface: #1E2D2D;
  --gead-border: #2E4A4A;
  --gead-success: #4CAF50;
  --gead-warning: #FFC107;
  --gead-radius: 8px;
  --gead-radius-lg: 12px;
  --gead-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --gead-header-h: 56px;
  --gead-bottom-h: 60px;
}

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

/* Container */
.gead-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.gead-wrapper {
  width: 100%;
  overflow-x: hidden;
}
.gead-grid {
  display: grid;
  gap: 1rem;
}
.gead-grid-2 { grid-template-columns: repeat(2, 1fr); }
.gead-grid-3 { grid-template-columns: repeat(3, 1fr); }
.gead-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Header */
.gead-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0D2626 0%, #1A3A3A 100%);
  border-bottom: 1px solid var(--gead-border);
  height: var(--gead-header-h);
}
.gead-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
}
.gead-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.gead-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.gead-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gead-text);
  letter-spacing: 0.5px;
}
.gead-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.gead-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--gead-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: 36px;
}
.gead-btn-register {
  background: var(--gead-accent);
  color: #1A1A1A;
}
.gead-btn-register:hover { background: #FF6B6B; transform: scale(1.03); }
.gead-btn-login {
  background: transparent;
  color: var(--gead-text);
  border: 1.5px solid var(--gead-primary);
}
.gead-btn-login:hover { background: var(--gead-primary); color: #fff; }
.gead-btn-promo {
  background: linear-gradient(135deg, var(--gead-primary), #00B8B8);
  color: #fff;
  font-size: 1.4rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--gead-radius-lg);
}
.gead-btn-promo:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,139,139,0.4); }
.gead-btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 1.1rem;
  min-height: 28px;
}
.gead-hamburger {
  background: none;
  border: none;
  color: var(--gead-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.gead-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}
.gead-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, #0D2626, #1A3A3A);
  z-index: 9999;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  padding: 1.5rem;
}
.gead-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gead-border);
}
.gead-mobile-menu-close {
  background: none;
  border: none;
  color: var(--gead-text);
  font-size: 2rem;
  cursor: pointer;
}
.gead-mobile-menu-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1rem;
  color: var(--gead-text);
  font-size: 1.5rem;
  border-radius: var(--gead-radius);
  transition: background 0.2s;
  margin-bottom: 0.3rem;
}
.gead-mobile-menu-nav a:hover {
  background: rgba(0,139,139,0.2);
}
.gead-mobile-menu-nav a .material-icons,
.gead-mobile-menu-nav a i {
  font-size: 2rem;
  width: 24px;
  text-align: center;
}

/* Bottom Navigation */
.gead-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0D2626, #0A1E1E);
  border-top: 1px solid var(--gead-border);
  height: var(--gead-bottom-h);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.4rem;
}
.gead-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--gead-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  padding: 0.4rem;
}
.gead-bottom-nav-btn:hover,
.gead-bottom-nav-active {
  color: var(--gead-accent);
  transform: scale(1.08);
}
.gead-bottom-nav-btn i,
.gead-bottom-nav-btn .material-icons {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}
.gead-bottom-nav-btn ion-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}
.gead-bottom-nav-btn span {
  font-size: 1rem;
  white-space: nowrap;
}

/* Carousel */
.gead-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--gead-radius-lg);
  overflow: hidden;
  margin: 0 auto;
}
.gead-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.gead-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}
.gead-slide-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.gead-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}
.gead-slide-dot-active {
  background: var(--gead-accent);
  width: 20px;
  border-radius: 4px;
}

/* Cards */
.gead-card {
  background: var(--gead-bg-light);
  border-radius: var(--gead-radius);
  border: 1px solid var(--gead-border);
  overflow: hidden;
  transition: transform 0.2s;
}
.gead-card:hover { transform: translateY(-2px); }
.gead-card-body {
  padding: 1rem;
}

/* Game Grid */
.gead-game-section {
  margin-bottom: 2rem;
}
.gead-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gead-text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gead-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.gead-section-title i { color: var(--gead-accent); }
.gead-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.gead-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.gead-game-item:hover { transform: scale(1.05); }
.gead-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--gead-radius);
  object-fit: cover;
  border: 1px solid var(--gead-border);
}
.gead-game-name {
  font-size: 1.1rem;
  color: var(--gead-text-muted);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Sections */
.gead-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--gead-surface);
  border-radius: var(--gead-radius-lg);
  border: 1px solid var(--gead-border);
}
.gead-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gead-text);
  margin-bottom: 1rem;
}
.gead-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gead-primary);
  margin-bottom: 0.8rem;
}
.gead-section p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--gead-text-muted);
  margin-bottom: 0.8rem;
}

/* Footer */
.gead-footer {
  background: linear-gradient(180deg, var(--gead-bg-light), #111);
  padding: 2rem 1rem 6rem;
  border-top: 1px solid var(--gead-border);
  text-align: center;
}
.gead-footer-brand {
  font-size: 1.3rem;
  color: var(--gead-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8rem;
}
.gead-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.gead-footer-links a {
  color: var(--gead-text-muted);
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  transition: color 0.2s;
}
.gead-footer-links a:hover { color: var(--gead-primary); }
.gead-footer-copy {
  font-size: 1.1rem;
  color: rgba(178,223,219,0.5);
  margin-top: 1rem;
}
.gead-footer-promo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0;
}

/* Promo Links in Content */
.gead-link {
  color: var(--gead-primary);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}
.gead-link:hover { color: var(--gead-accent); text-decoration: underline; }

/* Tags / Badges */
.gead-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
}
.gead-badge-hot { background: var(--gead-accent); color: #1A1A1A; }
.gead-badge-new { background: var(--gead-success); color: #fff; }
.gead-badge-vip { background: #FFD700; color: #1A1A1A; }

/* FAQ Accordion */
.gead-faq-item {
  border: 1px solid var(--gead-border);
  border-radius: var(--gead-radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.gead-faq-q {
  padding: 1rem;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gead-text);
  background: var(--gead-bg-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gead-faq-a {
  padding: 1rem;
  font-size: 1.2rem;
  color: var(--gead-text-muted);
  line-height: 1.7rem;
  background: var(--gead-surface);
  display: none;
}
.gead-faq-item.active .gead-faq-a { display: block; }

/* Winner List */
.gead-winner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--gead-border);
}
.gead-winner-item:last-child { border-bottom: none; }
.gead-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gead-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}
.gead-winner-info { flex: 1; }
.gead-winner-name { font-size: 1.2rem; font-weight: 600; color: var(--gead-text); }
.gead-winner-game { font-size: 1rem; color: var(--gead-text-muted); }
.gead-winner-amount { font-size: 1.3rem; font-weight: 700; color: var(--gead-accent); }

/* Payment Icons */
.gead-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.gead-payment-item {
  background: var(--gead-bg-light);
  border: 1px solid var(--gead-border);
  border-radius: var(--gead-radius);
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  color: var(--gead-text-muted);
}

/* Responsive */
@media (min-width: 769px) {
  .gead-bottom-nav { display: none; }
  .gead-hamburger { display: none; }
  .gead-container { max-width: 430px; }
}
@media (max-width: 768px) {
  main, .gead-main {
    padding-bottom: 80px;
  }
  .gead-header-actions .gead-btn {
    padding: 0.4rem 0.8rem;
    font-size: 1.1rem;
  }
}
@media (max-width: 360px) {
  .gead-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
