/**
 * LegendLink Maya - Theme Stylesheet
 * File: css/theme-af09.css
 * Prefix: v9dc-
 * All classes use v9dc- prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --v9dc-primary: #FF1493;
  --v9dc-secondary: #CD853F;
  --v9dc-bg-dark: #1B263B;
  --v9dc-bg-darker: #0f1726;
  --v9dc-text-light: #FFB6C1;
  --v9dc-text-warm: #FFDFBA;
  --v9dc-accent-gold: #CD853F;
  --v9dc-accent-pink: #FF1493;
  --v9dc-white: #ffffff;
  --v9dc-gray: #a0aec0;
  --v9dc-radius: 8px;
  --v9dc-radius-lg: 16px;
  --v9dc-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --v9dc-header-h: 56px;
  --v9dc-bottom-h: 62px;
  font-size: 62.5%;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--v9dc-bg-dark);
  color: var(--v9dc-white);
  font-size: 1.6rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { color: var(--v9dc-accent-pink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.v9dc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--v9dc-header-h);
  background: linear-gradient(135deg, var(--v9dc-bg-darker) 0%, #1a2a4a 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  border-bottom: 2px solid var(--v9dc-accent-pink);
}
.v9dc-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.v9dc-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.v9dc-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--v9dc-accent-pink), var(--v9dc-accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.v9dc-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.v9dc-btn-register, .v9dc-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.v9dc-btn-register {
  background: linear-gradient(135deg, var(--v9dc-accent-pink), #ff5eb8);
  color: var(--v9dc-white);
}
.v9dc-btn-login {
  background: transparent;
  color: var(--v9dc-text-warm);
  border: 1.5px solid var(--v9dc-accent-gold);
}
.v9dc-btn-register:hover, .v9dc-btn-login:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.4);
}
.v9dc-menu-toggle {
  background: none;
  border: none;
  color: var(--v9dc-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu Overlay */
.v9dc-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}
.v9dc-overlay-active { display: block; }

/* Mobile Slide Menu */
.v9dc-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--v9dc-bg-darker);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.v9dc-menu-active { right: 0; }
.v9dc-mobile-menu h3 {
  color: var(--v9dc-accent-pink);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 20, 147, 0.3);
  padding-bottom: 1rem;
}
.v9dc-mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--v9dc-text-warm);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.v9dc-mobile-menu a:hover {
  color: var(--v9dc-accent-pink);
  text-decoration: none;
  padding-left: 0.5rem;
}

/* Main Content */
.v9dc-main {
  padding-top: calc(var(--v9dc-header-h) + 1rem);
  padding-bottom: 1.5rem;
  min-height: 100vh;
}

/* Carousel */
.v9dc-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 0;
  overflow: hidden;
}
.v9dc-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.v9dc-slide:first-child { display: block; }
.v9dc-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}

/* Section */
.v9dc-section {
  padding: 1.5rem 1.2rem;
  margin-bottom: 1rem;
}
.v9dc-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v9dc-text-warm);
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--v9dc-accent-pink);
}
.v9dc-section-title i {
  margin-right: 0.5rem;
  color: var(--v9dc-accent-pink);
}

/* Game Grid */
.v9dc-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.v9dc-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.v9dc-game-item:hover { transform: scale(1.05); }
.v9dc-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--v9dc-radius);
  border: 1px solid rgba(255, 20, 147, 0.15);
  margin-bottom: 0.3rem;
}
.v9dc-game-name {
  font-size: 1.1rem;
  color: var(--v9dc-gray);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v9dc-cat-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v9dc-accent-gold);
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Cards & Modules */
.v9dc-card {
  background: linear-gradient(135deg, rgba(27, 38, 59, 0.9), rgba(15, 23, 38, 0.95));
  border: 1px solid rgba(255, 20, 147, 0.15);
  border-radius: var(--v9dc-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}
.v9dc-card h2 {
  font-size: 1.8rem;
  color: var(--v9dc-accent-pink);
  margin-bottom: 1rem;
}
.v9dc-card p {
  font-size: 1.4rem;
  color: var(--v9dc-gray);
  line-height: 2.2rem;
  margin-bottom: 0.8rem;
}

/* Promo Button */
.v9dc-promo-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--v9dc-accent-pink), #ff5eb8);
  color: var(--v9dc-white);
  border: none;
  border-radius: 30px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  margin: 1rem 0;
}
.v9dc-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
  text-decoration: none;
  color: var(--v9dc-white);
}
.v9dc-promo-link {
  color: var(--v9dc-accent-gold);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--v9dc-accent-gold);
}
.v9dc-promo-link:hover {
  color: var(--v9dc-accent-pink);
  text-decoration: none;
}

/* Winner Strip */
.v9dc-winner-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}
.v9dc-winner-item {
  min-width: 140px;
  background: rgba(255, 20, 147, 0.08);
  border-radius: var(--v9dc-radius);
  padding: 0.8rem;
  text-align: center;
  border: 1px solid rgba(255, 20, 147, 0.12);
}
.v9dc-winner-name {
  font-size: 1.2rem;
  color: var(--v9dc-text-warm);
  font-weight: 600;
}
.v9dc-winner-amount {
  font-size: 1.4rem;
  color: var(--v9dc-accent-gold);
  font-weight: 700;
}
.v9dc-winner-game {
  font-size: 1rem;
  color: var(--v9dc-gray);
}

/* Footer */
.v9dc-footer {
  background: var(--v9dc-bg-darker);
  padding: 2rem 1.2rem;
  border-top: 2px solid var(--v9dc-accent-pink);
}
.v9dc-footer-brand {
  font-size: 1.3rem;
  color: var(--v9dc-gray);
  line-height: 2rem;
  margin-bottom: 1.5rem;
}
.v9dc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.v9dc-footer-links a {
  padding: 0.5rem 1rem;
  background: rgba(255, 20, 147, 0.1);
  border: 1px solid rgba(255, 20, 147, 0.2);
  border-radius: 20px;
  font-size: 1.2rem;
  color: var(--v9dc-text-warm);
  transition: all 0.2s ease;
}
.v9dc-footer-links a:hover {
  background: rgba(255, 20, 147, 0.25);
  text-decoration: none;
}
.v9dc-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: var(--v9dc-gray);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Bottom Navigation */
.v9dc-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--v9dc-bottom-h);
  background: linear-gradient(180deg, #1a2a4a 0%, var(--v9dc-bg-darker) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--v9dc-accent-gold);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}
.v9dc-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--v9dc-gray);
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 0.2rem;
  border-radius: 8px;
  padding: 0.3rem;
}
.v9dc-bottom-nav-btn i,
.v9dc-bottom-nav-btn .material-icons,
.v9dc-bottom-nav-btn ion-icon {
  font-size: 22px;
}
.v9dc-bottom-nav-btn span {
  font-size: 1rem;
  font-weight: 500;
}
.v9dc-bottom-nav-active {
  color: var(--v9dc-accent-pink) !important;
}
.v9dc-bottom-nav-active i,
.v9dc-bottom-nav-active .material-icons,
.v9dc-bottom-nav-active ion-icon {
  color: var(--v9dc-accent-pink);
}
.v9dc-bottom-nav-touched {
  transform: scale(0.92);
  background: rgba(255, 20, 147, 0.08);
}
.v9dc-bottom-nav-btn:hover {
  color: var(--v9dc-text-warm);
}

/* FAQ */
.v9dc-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.2rem 0;
}
.v9dc-faq-q {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v9dc-text-warm);
  margin-bottom: 0.5rem;
}
.v9dc-faq-a {
  font-size: 1.3rem;
  color: var(--v9dc-gray);
  line-height: 2rem;
}

/* Utility */
.v9dc-text-pink { color: var(--v9dc-accent-pink); }
.v9dc-text-gold { color: var(--v9dc-accent-gold); }
.v9dc-text-center { text-align: center; }
.v9dc-mt-1 { margin-top: 1rem; }
.v9dc-mb-1 { margin-bottom: 1rem; }
.v9dc-mb-2 { margin-bottom: 2rem; }

/* Responsive */
@media (min-width: 769px) {
  .v9dc-bottom-nav { display: none; }
  body { max-width: 430px; }
}
@media (max-width: 768px) {
  .v9dc-main { padding-bottom: calc(var(--v9dc-bottom-h) + 2rem); }
}
