/**
 * Swerte Max - Core Design Stylesheet
 * Prefix: g71a-
 * Color Palette: #FF91A4 (accent) | #212F3D (background)
 * Mobile-first responsive design
 */

/* CSS Custom Properties */
:root {
  --g71a-primary: #FF91A4;
  --g71a-bg: #212F3D;
  --g71a-bg-light: #2C3E50;
  --g71a-bg-card: #1B2838;
  --g71a-text: #FF91A4;
  --g71a-text-light: #F0E6E8;
  --g71a-text-muted: #A8B2C1;
  --g71a-accent: #FF91A4;
  --g71a-accent-dark: #E07A8A;
  --g71a-gold: #FFD700;
  --g71a-border: #3A4F63;
  --g71a-shadow: rgba(0, 0, 0, 0.3);
  --g71a-radius: 8px;
  --g71a-radius-lg: 14px;
  --g71a-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5rem;
  color: var(--g71a-text-light);
  background: var(--g71a-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--g71a-accent);
  text-decoration: none;
  transition: var(--g71a-transition);
}

a:hover {
  color: var(--g71a-gold);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.g71a-wrapper {
  width: 100%;
  overflow-x: hidden;
}

/* Header */
.g71a-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g71a-bg) 0%, var(--g71a-bg-light) 100%);
  border-bottom: 1px solid var(--g71a-border);
  box-shadow: 0 2px 12px var(--g71a-shadow);
}

.g71a-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  height: 56px;
}

.g71a-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.g71a-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.g71a-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g71a-accent);
  letter-spacing: 0.5px;
}

.g71a-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.g71a-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.g71a-btn-register {
  background: linear-gradient(135deg, var(--g71a-accent), var(--g71a-accent-dark));
  color: var(--g71a-bg);
}

.g71a-btn-register:hover {
  background: linear-gradient(135deg, var(--g71a-gold), var(--g71a-accent));
  color: var(--g71a-bg);
}

.g71a-btn-login {
  background: transparent;
  border: 1.5px solid var(--g71a-accent);
  color: var(--g71a-accent);
}

.g71a-btn-login:hover {
  background: rgba(255, 145, 164, 0.1);
}

.g71a-btn-promo {
  background: linear-gradient(135deg, var(--g71a-gold), #FFA500);
  color: var(--g71a-bg);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: var(--g71a-radius-lg);
  font-size: 1.5rem;
  width: 100%;
  max-width: 300px;
  margin: 1.5rem auto;
  display: block;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.g71a-btn-promo:hover {
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
  color: var(--g71a-bg);
}

/* Menu Toggle */
.g71a-menu-toggle {
  background: none;
  border: none;
  color: var(--g71a-text-light);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.g71a-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--g71a-bg-card);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 1.5rem 0;
}

.g71a-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--g71a-border);
}

.g71a-mobile-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g71a-accent);
}

.g71a-mobile-menu-close {
  background: none;
  border: none;
  color: var(--g71a-text-light);
  font-size: 2rem;
  cursor: pointer;
}

.g71a-mobile-menu-nav {
  list-style: none;
  padding: 1rem 0;
}

.g71a-mobile-menu-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.g71a-mobile-menu-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  color: var(--g71a-text-light);
  font-size: 1.5rem;
  transition: var(--g71a-transition);
}

.g71a-mobile-menu-nav a:hover {
  background: rgba(255, 145, 164, 0.1);
  color: var(--g71a-accent);
  text-decoration: none;
}

.g71a-mobile-menu-nav .material-icons,
.g71a-mobile-menu-nav .fas,
.g71a-mobile-menu-nav .ion-icon {
  font-size: 2rem;
  width: 2rem;
  text-align: center;
}

/* Menu Overlay */
.g71a-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

/* Main Content */
.g71a-main {
  padding-top: 56px;
}

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

/* Carousel */
.g71a-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0 0 var(--g71a-radius-lg) var(--g71a-radius-lg);
}

.g71a-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  cursor: pointer;
}

.g71a-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.g71a-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

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

.g71a-dot-active {
  background: var(--g71a-accent);
  transform: scale(1.3);
}

/* Section Titles */
.g71a-section {
  padding: 2rem 0;
}

.g71a-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g71a-accent);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--g71a-border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g71a-section-title .material-icons,
.g71a-section-title .fas,
.g71a-section-title .ion-icon {
  font-size: 2.2rem;
}

/* Game Grid */
.g71a-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.g71a-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--g71a-transition);
  border-radius: var(--g71a-radius);
  padding: 0.5rem;
  background: var(--g71a-bg-card);
}

.g71a-game-item:hover {
  transform: scale(1.05);
  background: var(--g71a-bg-light);
  text-decoration: none;
}

.g71a-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--g71a-radius);
  margin-bottom: 0.3rem;
}

.g71a-game-name {
  font-size: 1.1rem;
  color: var(--g71a-text-light);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Label */
.g71a-cat-label {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g71a-gold);
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Content Cards */
.g71a-card {
  background: var(--g71a-bg-card);
  border-radius: var(--g71a-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--g71a-border);
}

.g71a-card h3 {
  font-size: 1.7rem;
  color: var(--g71a-accent);
  margin-bottom: 0.8rem;
}

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

.g71a-card ul {
  padding-left: 1.6rem;
  margin-bottom: 0.8rem;
}

.g71a-card li {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g71a-text-light);
  margin-bottom: 0.4rem;
}

/* Stats Grid */
.g71a-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.g71a-stat-item {
  background: var(--g71a-bg-light);
  border-radius: var(--g71a-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--g71a-border);
}

.g71a-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g71a-gold);
}

.g71a-stat-label {
  font-size: 1.2rem;
  color: var(--g71a-text-muted);
  margin-top: 0.3rem;
}

/* Testimonials */
.g71a-testimonial {
  background: var(--g71a-bg-light);
  border-radius: var(--g71a-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--g71a-accent);
}

.g71a-testimonial-text {
  font-size: 1.3rem;
  color: var(--g71a-text-light);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.g71a-testimonial-author {
  font-size: 1.2rem;
  color: var(--g71a-accent);
  font-weight: 600;
}

/* Winner Item */
.g71a-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem;
  background: var(--g71a-bg-light);
  border-radius: var(--g71a-radius);
  margin-bottom: 0.6rem;
}

.g71a-winner-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g71a-winner-name {
  font-size: 1.3rem;
  color: var(--g71a-text-light);
}

.g71a-winner-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g71a-gold);
}

/* Payment Methods */
.g71a-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.g71a-payment-item {
  background: var(--g71a-bg-light);
  border-radius: var(--g71a-radius);
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  color: var(--g71a-text-light);
  border: 1px solid var(--g71a-border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Footer */
.g71a-footer {
  background: var(--g71a-bg-card);
  border-top: 1px solid var(--g71a-border);
  padding: 2rem 0 6rem;
}

.g71a-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.g71a-footer-brand p {
  font-size: 1.3rem;
  color: var(--g71a-text-muted);
  line-height: 1.5;
}

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

.g71a-footer-link {
  background: var(--g71a-bg-light);
  border: 1px solid var(--g71a-border);
  color: var(--g71a-text-light);
  padding: 0.5rem 1rem;
  border-radius: var(--g71a-radius);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--g71a-transition);
}

.g71a-footer-link:hover {
  background: var(--g71a-accent);
  color: var(--g71a-bg);
  text-decoration: none;
}

.g71a-footer-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--g71a-text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--g71a-border);
}

/* Bottom Navigation */
.g71a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, var(--g71a-bg-light) 0%, var(--g71a-bg-card) 100%);
  border-top: 1px solid var(--g71a-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.5rem;
  box-shadow: 0 -2px 12px var(--g71a-shadow);
}

.g71a-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(--g71a-text-muted);
  cursor: pointer;
  transition: var(--g71a-transition);
  border-radius: var(--g71a-radius);
  padding: 0.3rem;
}

.g71a-bottom-nav-btn:hover,
.g71a-bottom-nav-active {
  color: var(--g71a-accent);
  transform: scale(1.08);
}

.g71a-bottom-nav-btn .material-icons,
.g71a-bottom-nav-btn .fas,
.g71a-bottom-nav-btn .far,
.g71a-bottom-nav-btn .fad,
.g71a-bottom-nav-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.g71a-bottom-nav-label {
  font-size: 1rem;
  line-height: 1.1;
}

.g71a-bottom-nav-active .g71a-bottom-nav-label {
  color: var(--g71a-accent);
  font-weight: 600;
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .g71a-bottom-nav {
    display: none;
  }
}

/* Promotional text link */
.g71a-promo-link {
  color: var(--g71a-accent);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed var(--g71a-accent);
}

.g71a-promo-link:hover {
  color: var(--g71a-gold);
  border-bottom-color: var(--g71a-gold);
  text-decoration: none;
}

/* FAQ */
.g71a-faq-item {
  background: var(--g71a-bg-light);
  border-radius: var(--g71a-radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--g71a-border);
}

.g71a-faq-q {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g71a-accent);
  margin-bottom: 0.5rem;
}

.g71a-faq-a {
  font-size: 1.3rem;
  color: var(--g71a-text-light);
  line-height: 1.5;
}

/* Internal link */
.g71a-internal-link {
  color: var(--g71a-accent);
  text-decoration: underline;
  text-decoration-style: dotted;
}

.g71a-internal-link:hover {
  color: var(--g71a-gold);
}

/* CTA section */
.g71a-cta-section {
  text-align: center;
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--g71a-bg-light) 0%, var(--g71a-bg-card) 100%);
  border-radius: var(--g71a-radius-lg);
  margin: 1.5rem 0;
  border: 1px solid var(--g71a-border);
}

.g71a-cta-title {
  font-size: 2rem;
  color: var(--g71a-gold);
  margin-bottom: 0.5rem;
}

.g71a-cta-text {
  font-size: 1.4rem;
  color: var(--g71a-text-muted);
  margin-bottom: 1.2rem;
}

/* Responsive helpers */
@media (max-width: 430px) {
  .g71a-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
}
