/**
 * phlwin app - Main Stylesheet
 * All classes use prefix: v36f-
 * Color palette: #FFEFD5 (light) | #1A1A2E (dark bg) | #D2691E (accent)
 * Mobile-first design, max-width 430px
 */

:root {
  --v36f-primary: #D2691E;
  --v36f-bg: #1A1A2E;
  --v36f-bg-light: #222240;
  --v36f-bg-card: #2A2A4A;
  --v36f-text: #FFEFD5;
  --v36f-text-muted: #C4A882;
  --v36f-accent: #D2691E;
  --v36f-accent-hover: #E8792A;
  --v36f-gold: #FFD700;
  --v36f-border: #3A3A5A;
  --v36f-shadow: rgba(0,0,0,0.3);
  --v36f-radius: 0.8rem;
  --v36f-radius-sm: 0.4rem;
}

/* Base reset and typography */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--v36f-bg);
  color: var(--v36f-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--v36f-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--v36f-accent-hover); }
img { max-width: 100%; height: auto; display: block; }

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

/* ===== HEADER ===== */
.v36f-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v36f-bg) 0%, var(--v36f-bg-light) 100%);
  border-bottom: 1px solid var(--v36f-border);
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
  backdrop-filter: blur(10px);
}
.v36f-header-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--v36f-text);
}
.v36f-header-logo img { width: 28px; height: 28px; border-radius: 4px; }
.v36f-header-logo span { font-size: 1.6rem; font-weight: 700; color: var(--v36f-gold); }
.v36f-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.v36f-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.2rem; border-radius: var(--v36f-radius-sm);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; min-height: 36px;
}
.v36f-btn-register {
  background: linear-gradient(135deg, var(--v36f-accent), #E8792A);
  color: #fff;
}
.v36f-btn-register:hover { background: linear-gradient(135deg, #E8792A, var(--v36f-accent)); transform: translateY(-1px); }
.v36f-btn-login {
  background: transparent; color: var(--v36f-gold);
  border: 1px solid var(--v36f-gold);
}
.v36f-btn-login:hover { background: rgba(255,215,0,0.1); }
.v36f-menu-toggle {
  background: none; border: none; color: var(--v36f-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; min-height: 36px;
}

/* ===== MOBILE MENU ===== */
.v36f-mobile-menu {
  position: fixed; top: 0; right: -280px;
  width: 280px; height: 100vh;
  background: var(--v36f-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.6rem;
  overflow-y: auto;
}
.v36f-menu-active { right: 0; }
.v36f-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--v36f-text);
  font-size: 2.4rem; cursor: pointer;
}
.v36f-menu-list { list-style: none; margin-top: 3rem; }
.v36f-menu-list li { margin-bottom: 0.4rem; }
.v36f-menu-list a {
  display: block; padding: 1rem 1.2rem;
  color: var(--v36f-text); font-size: 1.4rem;
  border-radius: var(--v36f-radius-sm);
  transition: background 0.2s;
}
.v36f-menu-list a:hover { background: var(--v36f-bg-card); color: var(--v36f-gold); }
.v36f-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 9998;
  display: none;
}
.v36f-overlay-active { display: block; }

/* ===== MAIN CONTENT ===== */
.v36f-main { margin-top: 56px; padding-bottom: 2rem; }

/* ===== CAROUSEL ===== */
.v36f-carousel { position: relative; overflow: hidden; border-radius: var(--v36f-radius); margin: 1rem 0; }
.v36f-carousel-slide { display: none; width: 100%; cursor: pointer; }
.v36f-carousel-slide img { width: 100%; border-radius: var(--v36f-radius); }
.v36f-carousel-dots { display: flex; justify-content: center; gap: 0.6rem; padding: 0.8rem 0; }
.v36f-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--v36f-border); cursor: pointer;
  transition: background 0.2s;
}
.v36f-dot-active { background: var(--v36f-accent); }

/* ===== SECTION ===== */
.v36f-section { padding: 2rem 0; }
.v36f-section-title {
  font-size: 1.8rem; font-weight: 700;
  color: var(--v36f-gold); margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--v36f-accent);
}
.v36f-section-title i, .v36f-section-title span.material-symbols-outlined {
  margin-right: 0.4rem; vertical-align: middle;
}
.v36f-section-subtitle {
  font-size: 1.4rem; font-weight: 600;
  color: var(--v36f-accent); margin: 1.6rem 0 0.8rem;
}

/* ===== GAME GRID ===== */
.v36f-game-category-title {
  font-size: 1.5rem; font-weight: 600;
  color: var(--v36f-accent); margin: 1.6rem 0 0.8rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.v36f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.v36f-game-item {
  text-align: center; cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--v36f-radius-sm);
  padding: 0.4rem;
}
.v36f-game-item:hover { transform: scale(1.05); background: var(--v36f-bg-card); }
.v36f-game-item img {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--v36f-radius-sm);
  margin-bottom: 0.3rem;
}
.v36f-game-item span {
  display: block; font-size: 1rem;
  color: var(--v36f-text-muted);
  line-height: 1.2rem;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== CONTENT CARDS ===== */
.v36f-card {
  background: var(--v36f-bg-card);
  border-radius: var(--v36f-radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--v36f-border);
}
.v36f-card h3 { color: var(--v36f-gold); font-size: 1.5rem; margin-bottom: 0.8rem; }
.v36f-card p { color: var(--v36f-text-muted); line-height: 1.8rem; margin-bottom: 0.6rem; }
.v36f-card ul { list-style: none; padding-left: 0; }
.v36f-card li { padding: 0.4rem 0; color: var(--v36f-text-muted); line-height: 1.6rem; }
.v36f-card li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--v36f-accent); margin-right: 0.6rem; font-size: 1rem; }

/* Promo text link */
.v36f-promo-text { color: var(--v36f-gold); font-weight: 700; cursor: pointer; transition: color 0.2s; }
.v36f-promo-text:hover { color: var(--v36f-accent-hover); text-decoration: underline; }
.v36f-promo-btn {
  display: inline-block; padding: 1rem 2.4rem;
  background: linear-gradient(135deg, var(--v36f-accent), #E8792A);
  color: #fff; font-size: 1.4rem; font-weight: 700;
  border-radius: var(--v36f-radius); cursor: pointer;
  border: none; text-align: center; transition: all 0.2s;
}
.v36f-promo-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px var(--v36f-shadow); }

/* ===== FAQ ===== */
.v36f-faq-item { margin-bottom: 1rem; }
.v36f-faq-q {
  font-weight: 600; color: var(--v36f-gold);
  font-size: 1.3rem; margin-bottom: 0.3rem;
}
.v36f-faq-a { color: var(--v36f-text-muted); line-height: 1.7rem; padding-left: 1rem; border-left: 2px solid var(--v36f-accent); }

/* ===== FOOTER ===== */
.v36f-footer {
  background: var(--v36f-bg-light);
  border-top: 1px solid var(--v36f-border);
  padding: 2rem 0 8rem;
  text-align: center;
}
.v36f-footer-brand { color: var(--v36f-text-muted); font-size: 1.2rem; line-height: 1.6rem; margin-bottom: 1.2rem; }
.v36f-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 1.2rem; }
.v36f-footer-links a {
  color: var(--v36f-text); font-size: 1.1rem;
  padding: 0.4rem 0.8rem; background: var(--v36f-bg-card);
  border-radius: var(--v36f-radius-sm); transition: all 0.2s;
}
.v36f-footer-links a:hover { background: var(--v36f-accent); color: #fff; }
.v36f-footer-copy { color: var(--v36f-text-muted); font-size: 1rem; margin-top: 0.8rem; }

/* ===== BOTTOM NAV ===== */
.v36f-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--v36f-bg-light) 0%, var(--v36f-bg) 100%);
  border-top: 1px solid var(--v36f-border);
  height: 60px;
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 0.4rem;
}
.v36f-bottom-nav-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px;
  cursor: pointer; color: var(--v36f-text-muted);
  transition: all 0.2s; background: none; border: none;
  padding: 0.4rem;
}
.v36f-bottom-nav-item i,
.v36f-bottom-nav-item span.material-symbols-outlined,
.v36f-bottom-nav-item ion-icon {
  font-size: 22px; margin-bottom: 0.2rem;
}
.v36f-bottom-nav-item span { font-size: 1rem; }
.v36f-bottom-nav-item:hover,
.v36f-bottom-nav-item.v36f-nav-active {
  color: var(--v36f-gold);
}
.v36f-bottom-nav-item.v36f-nav-active {
  transform: scale(1.1);
}
.v36f-nav-badge {
  position: absolute; top: 0.2rem; right: 0.6rem;
  background: #FF4444; color: #fff;
  font-size: 0.8rem; padding: 0.1rem 0.3rem;
  border-radius: 50%; min-width: 14px; text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
  .v36f-bottom-nav { display: none; }
  .v36f-container { max-width: 430px; }
  .v36f-footer { padding-bottom: 2rem; }
}
@media (max-width: 768px) {
  .v36f-main { padding-bottom: 80px; }
  .v36f-footer { padding-bottom: 8rem; }
}

/* ===== UTILITY ===== */
.v36f-text-center { text-align: center; }
.v36f-text-gold { color: var(--v36f-gold); }
.v36f-text-accent { color: var(--v36f-accent); }
.v36f-mt-1 { margin-top: 0.8rem; }
.v36f-mt-2 { margin-top: 1.6rem; }
.v36f-mb-1 { margin-bottom: 0.8rem; }
.v36f-mb-2 { margin-bottom: 1.6rem; }
.v36f-p-1 { padding: 0.8rem; }
.v36f-hidden { display: none; }
.v36f-promo-inline { color: var(--v36f-gold); font-weight: 700; cursor: pointer; }
.v36f-promo-inline:hover { text-decoration: underline; }
