/**
 * KKK77 - Theme Stylesheet
 * File: css/theme-e988.css
 * All classes use prefix "v8e2-" for namespace isolation
 * Color palette: #495057 | #FFB3FF | #FFDFBA | #880E4F | #1B263B
 */

:root {
  --v8e2-primary: #880E4F;
  --v8e2-secondary: #FFB3FF;
  --v8e2-accent: #FFDFBA;
  --v8e2-bg-dark: #1B263B;
  --v8e2-bg-medium: #495057;
  --v8e2-text-light: #FFDFBA;
  --v8e2-text-white: #ffffff;
  --v8e2-text-muted: #c4c4c4;
  --v8e2-bg-card: #2a3550;
  --v8e2-border: rgba(255, 179, 255, 0.2);
  --v8e2-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --v8e2-radius: 8px;
  --v8e2-radius-lg: 12px;
  --v8e2-transition: all 0.3s ease;
  font-size: 62.5%;
}

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

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

a {
  color: var(--v8e2-secondary);
  text-decoration: none;
  transition: var(--v8e2-transition);
}
a:hover { color: var(--v8e2-accent); }

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

/* ===== HEADER ===== */
.v8e2-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 52px;
  background: linear-gradient(135deg, var(--v8e2-bg-dark) 0%, var(--v8e2-bg-medium) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  border-bottom: 1px solid var(--v8e2-border);
  box-shadow: var(--v8e2-shadow);
}

.v8e2-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v8e2-header-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.v8e2-header-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v8e2-secondary);
  letter-spacing: 0.5px;
}

.v8e2-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v8e2-header-btn {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--v8e2-transition);
  touch-action: manipulation;
}

.v8e2-btn-register {
  background: linear-gradient(135deg, var(--v8e2-primary), #a8125f);
  color: var(--v8e2-text-white);
}
.v8e2-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(136, 14, 79, 0.5); }

.v8e2-btn-login {
  background: transparent;
  color: var(--v8e2-accent);
  border: 1px solid var(--v8e2-accent);
}
.v8e2-btn-login:hover { background: rgba(255, 223, 186, 0.1); }

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

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

.v8e2-mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 260px;
  height: 100%;
  background: var(--v8e2-bg-dark);
  z-index: 9999;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--v8e2-border);
  overflow-y: auto;
}

.v8e2-mobile-menu-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--v8e2-border);
}

.v8e2-mobile-menu-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.v8e2-mobile-menu-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v8e2-secondary);
}

.v8e2-mobile-menu-nav {
  list-style: none;
}

.v8e2-mobile-menu-nav li {
  margin-bottom: 0.5rem;
}

.v8e2-mobile-menu-nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  color: var(--v8e2-text-white);
  font-size: 1.4rem;
  border-radius: var(--v8e2-radius);
  transition: var(--v8e2-transition);
}
.v8e2-mobile-menu-nav a:hover {
  background: rgba(255, 179, 255, 0.1);
  color: var(--v8e2-secondary);
}

.v8e2-mobile-menu-nav .v8e2-menu-icon {
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
}

/* ===== MAIN CONTENT ===== */
.v8e2-main {
  padding-top: 56px;
  padding-bottom: 2rem;
  min-height: 100vh;
}

/* ===== CAROUSEL ===== */
.v8e2-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--v8e2-radius) var(--v8e2-radius);
}

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

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

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

.v8e2-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  transition: var(--v8e2-transition);
}
.v8e2-carousel-dot-active {
  background: var(--v8e2-secondary);
  width: 20px;
  border-radius: 4px;
}

/* ===== SECTIONS ===== */
.v8e2-section {
  padding: 1.5rem 1rem;
}

.v8e2-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v8e2-secondary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v8e2-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v8e2-section-title i {
  font-size: 2rem;
  color: var(--v8e2-accent);
}

/* ===== GAME GRID ===== */
.v8e2-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.v8e2-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--v8e2-transition);
  border-radius: var(--v8e2-radius);
  padding: 0.4rem;
}

.v8e2-game-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 179, 255, 0.08);
}

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

.v8e2-game-item:hover img {
  border-color: var(--v8e2-secondary);
}

.v8e2-game-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--v8e2-text-muted);
  margin-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== CARD / MODULE ===== */
.v8e2-card {
  background: var(--v8e2-bg-card);
  border-radius: var(--v8e2-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--v8e2-border);
}

.v8e2-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--v8e2-accent);
  margin-bottom: 0.8rem;
}

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

/* ===== PROMO BUTTONS ===== */
.v8e2-promo-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, var(--v8e2-primary), #a8125f);
  color: var(--v8e2-text-white);
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--v8e2-transition);
  text-align: center;
  border: none;
}

.v8e2-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(136, 14, 79, 0.5);
}

.v8e2-promo-text {
  color: var(--v8e2-secondary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.v8e2-footer {
  background: linear-gradient(180deg, var(--v8e2-bg-medium) 0%, var(--v8e2-bg-dark) 100%);
  padding: 2rem 1rem 6rem;
  border-top: 1px solid var(--v8e2-border);
}

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

.v8e2-footer-brand strong {
  color: var(--v8e2-secondary);
}

.v8e2-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

.v8e2-footer-links a {
  font-size: 1.2rem;
  color: var(--v8e2-text-muted);
}
.v8e2-footer-links a:hover { color: var(--v8e2-secondary); }

.v8e2-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.v8e2-footer-promos .v8e2-promo-btn {
  font-size: 1.1rem;
  padding: 0.4rem 1rem;
}

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

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

.v8e2-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(--v8e2-text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--v8e2-transition);
  gap: 2px;
  touch-action: manipulation;
}

.v8e2-bottom-nav-btn i,
.v8e2-bottom-nav-btn .material-icons,
.v8e2-bottom-nav-btn ion-icon,
.v8e2-bottom-nav-btn bi {
  font-size: 22px;
}

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

.v8e2-bottom-nav-btn:hover,
.v8e2-bottom-nav-current {
  color: var(--v8e2-secondary);
}

.v8e2-bottom-nav-active {
  transform: scale(0.92);
}

.v8e2-bottom-nav-btn.v8e2-bottom-nav-highlight {
  color: var(--v8e2-accent);
}

/* ===== UTILITY ===== */
.v8e2-container { width: 100%; max-width: 430px; margin: 0 auto; }
.v8e2-wrapper { padding: 0 1rem; }
.v8e2-text-center { text-align: center; }
.v8e2-mt-1 { margin-top: 0.8rem; }
.v8e2-mt-2 { margin-top: 1.6rem; }
.v8e2-mb-1 { margin-bottom: 0.8rem; }
.v8e2-mb-2 { margin-bottom: 1.6rem; }
.v8e2-hidden { display: none; }

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

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

/* ===== PARTNER LOGOS ===== */
.v8e2-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.v8e2-partners img {
  height: 24px;
  opacity: 0.7;
  transition: var(--v8e2-transition);
}
.v8e2-partners img:hover { opacity: 1; }

/* ===== TESTIMONIAL ===== */
.v8e2-testimonial {
  background: var(--v8e2-bg-card);
  border-radius: var(--v8e2-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--v8e2-primary);
}

.v8e2-testimonial-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--v8e2-secondary);
  margin-bottom: 0.3rem;
}

.v8e2-testimonial-text {
  font-size: 1.2rem;
  color: var(--v8e2-text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* ===== WINNER LIST ===== */
.v8e2-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.2rem;
}

.v8e2-winner-name {
  color: var(--v8e2-accent);
  font-weight: 600;
}

.v8e2-winner-amount {
  color: var(--v8e2-secondary);
  font-weight: 700;
}

.v8e2-winner-game {
  color: var(--v8e2-text-muted);
  font-size: 1.1rem;
}

/* ===== PAYMENT ICONS ===== */
.v8e2-payment-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.v8e2-payment-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1rem;
  border-radius: var(--v8e2-radius);
  font-size: 1.2rem;
  color: var(--v8e2-text-light);
  font-weight: 500;
}

/* ===== H TAGS ===== */
h1.v8e2-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--v8e2-text-white);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h2.v8e2-h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--v8e2-secondary);
  margin-bottom: 0.8rem;
}

h3.v8e2-h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--v8e2-accent);
  margin-bottom: 0.6rem;
}
