/**
 * PhLove App Login - Layout Stylesheet
 * All classes use v584- prefix for namespace isolation
 * Color palette: #00BFFF (accent) | #34495E (bg)
 * @version 1.0.0
 */

/* Root variables */
:root {
  --v584-primary: #00BFFF;
  --v584-bg: #34495E;
  --v584-bg-dark: #1a2a3a;
  --v584-bg-card: #2c3e50;
  --v584-text: #ffffff;
  --v584-text-muted: #b0c4de;
  --v584-accent: #00BFFF;
  --v584-accent-hover: #33ccff;
  --v584-border: #4a6278;
  --v584-gold: #ffd700;
  --v584-success: #2ecc71;
  --v584-radius: 8px;
  --v584-radius-lg: 12px;
  --v584-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--v584-bg-dark);
  color: var(--v584-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--v584-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.v584-container { width: 100%; padding: 0 1.2rem; }
.v584-wrapper { max-width: 430px; margin: 0 auto; }
.v584-grid { display: grid; gap: 1rem; }

/* Header */
.v584-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--v584-bg-dark);
  border-bottom: 2px solid var(--v584-primary);
  padding: 0.8rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 430px; margin: 0 auto;
  transition: background 0.3s, box-shadow 0.3s;
}
.v584-header-scrolled {
  background: rgba(26,42,58,0.97);
  box-shadow: 0 2px 10px rgba(0,191,255,0.15);
}
.v584-logo-area {
  display: flex; align-items: center; gap: 0.6rem;
}
.v584-logo-area img { width: 28px; height: 28px; border-radius: 4px; }
.v584-logo-area span {
  font-size: 1.3rem; font-weight: 700;
  color: var(--v584-primary);
  white-space: nowrap;
}
.v584-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.v584-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem; border-radius: var(--v584-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s;
  min-height: 36px;
}
.v584-btn-register {
  background: var(--v584-primary); color: var(--v584-bg-dark);
}
.v584-btn-register:hover { background: var(--v584-accent-hover); transform: scale(1.05); }
.v584-btn-login {
  background: transparent; color: var(--v584-primary);
  border: 1.5px solid var(--v584-primary);
}
.v584-btn-login:hover { background: rgba(0,191,255,0.12); }
.v584-btn-promo {
  background: linear-gradient(135deg, var(--v584-primary), #0088cc);
  color: #fff; font-size: 1.3rem; padding: 0.7rem 1.5rem;
  border-radius: var(--v584-radius-lg); font-weight: 700;
}
.v584-btn-promo:hover { transform: scale(1.03); box-shadow: 0 0 16px rgba(0,191,255,0.4); }

/* Menu toggle */
.v584-menu-toggle {
  background: none; border: none; color: var(--v584-primary);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile menu */
.v584-mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,42,58,0.98);
  z-index: 9999;
  display: none; flex-direction: column;
  padding-top: 6rem;
  max-width: 430px; margin: 0 auto;
}
.v584-menu-active { display: flex !important; }
.v584-mobile-menu a {
  display: block; padding: 1.2rem 2rem;
  color: var(--v584-text); font-size: 1.5rem;
  border-bottom: 1px solid var(--v584-border);
  transition: background 0.2s;
}
.v584-mobile-menu a:hover { background: rgba(0,191,255,0.08); }
.v584-menu-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: none; color: var(--v584-text);
  font-size: 2.4rem; cursor: pointer;
}

/* Main content */
.v584-main {
  padding-top: 5.6rem;
}
@media (max-width: 768px) {
  .v584-main { padding-bottom: 80px; }
}

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

/* Sections */
.v584-section {
  padding: 1.5rem 1.2rem;
}
.v584-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem;
  color: var(--v584-primary);
  border-left: 3px solid var(--v584-primary);
  padding-left: 0.8rem;
}
.v584-section-title-center {
  text-align: center; border-left: none; padding-left: 0;
}

/* Game grid */
.v584-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.v584-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: transform 0.2s;
  padding: 0.5rem; border-radius: var(--v584-radius);
  background: var(--v584-bg-card);
}
.v584-game-item:hover { transform: scale(1.05); }
.v584-game-item img {
  width: 56px; height: 56px; border-radius: var(--v584-radius);
  margin-bottom: 0.3rem; object-fit: cover;
}
.v584-game-item span {
  font-size: 1rem; text-align: center; color: var(--v584-text-muted);
  line-height: 1.2rem; max-width: 70px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* Cards */
.v584-card {
  background: var(--v584-bg-card); border-radius: var(--v584-radius-lg);
  padding: 1.5rem; margin-bottom: 1rem; box-shadow: var(--v584-shadow);
}
.v584-card h3 {
  font-size: 1.5rem; margin-bottom: 0.6rem; color: var(--v584-primary);
}
.v584-card p {
  font-size: 1.3rem; color: var(--v584-text-muted); line-height: 1.6rem;
}

/* Footer */
.v584-footer {
  background: var(--v584-bg-dark); padding: 2rem 1.2rem 1rem;
  border-top: 1px solid var(--v584-border);
  text-align: center;
}
.v584-footer-brand {
  font-size: 1.2rem; color: var(--v584-text-muted);
  line-height: 1.6rem; margin-bottom: 1rem;
}
.v584-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.v584-footer-links a {
  color: var(--v584-accent); font-size: 1.1rem; padding: 0.3rem 0.6rem;
  border: 1px solid var(--v584-border); border-radius: 4px;
  transition: all 0.2s;
}
.v584-footer-links a:hover { background: rgba(0,191,255,0.1); }
.v584-partners {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
  margin-bottom: 1rem;
}
.v584-partners img { width: 32px; height: 32px; border-radius: 4px; opacity: 0.7; }
.v584-partners img:hover { opacity: 1; }
.v584-copyright {
  font-size: 1rem; color: var(--v584-text-muted); opacity: 0.6;
  margin-top: 0.5rem;
}

/* Bottom nav */
.v584-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--v584-bg) 0%, var(--v584-bg-dark) 100%);
  border-top: 2px solid var(--v584-primary);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px;
  max-width: 430px; margin: 0 auto;
}
.v584-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 56px;
  background: none; border: none; cursor: pointer;
  color: var(--v584-text-muted); transition: all 0.2s;
  padding: 0.3rem;
}
.v584-bottom-btn:hover, .v584-bottom-btn:focus {
  color: var(--v584-primary); transform: scale(1.1);
}
.v584-bottom-btn .v584-bnav-icon { font-size: 2.2rem; line-height: 1; }
.v584-bottom-btn .v584-bnav-text { font-size: 1rem; margin-top: 0.2rem; }
.v584-bottom-btn.v584-bnav-active { color: var(--v584-primary); }
.v584-bottom-btn.v584-bnav-active .v584-bnav-icon {
  filter: drop-shadow(0 0 4px rgba(0,191,255,0.5));
}

/* FAQ section */
.v584-faq-item { margin-bottom: 0.8rem; }
.v584-faq-item h4 {
  font-size: 1.3rem; color: var(--v584-primary); margin-bottom: 0.3rem;
}
.v584-faq-item p { font-size: 1.2rem; color: var(--v584-text-muted); line-height: 1.5rem; }

/* Testimonials */
.v584-testimonial {
  background: var(--v584-bg-card); border-radius: var(--v584-radius);
  padding: 1rem; margin-bottom: 0.8rem; border-left: 3px solid var(--v584-primary);
}
.v584-testimonial p { font-size: 1.2rem; color: var(--v584-text-muted); font-style: italic; }
.v584-testimonial strong { color: var(--v584-primary); }

/* Winner showcase */
.v584-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.v584-winner-name { font-size: 1.2rem; color: var(--v584-text); }
.v584-winner-game { font-size: 1rem; color: var(--v584-text-muted); }
.v584-winner-amount { font-size: 1.2rem; color: var(--v584-gold); font-weight: 700; }

/* Payment icons */
.v584-payment-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 0.8rem; }
.v584-payment-item {
  background: var(--v584-bg-card); padding: 0.6rem 1rem;
  border-radius: var(--v584-radius); font-size: 1.1rem; color: var(--v584-text-muted);
  border: 1px solid var(--v584-border);
}

/* App download CTA */
.v584-app-cta {
  background: linear-gradient(135deg, var(--v584-bg-card), var(--v584-bg));
  border-radius: var(--v584-radius-lg); padding: 1.5rem; text-align: center;
  border: 1px solid var(--v584-primary);
}
.v584-app-cta h3 { font-size: 1.6rem; color: var(--v584-primary); margin-bottom: 0.6rem; }

/* Achievement badge */
.v584-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(0,191,255,0.12); padding: 0.3rem 0.8rem;
  border-radius: 20px; font-size: 1.1rem; color: var(--v584-primary);
}

/* Responsive: hide bottom nav on desktop */
@media (min-width: 769px) {
  .v584-bottom-nav { display: none; }
}

/* Utilities */
.v584-text-center { text-align: center; }
.v584-mt-1 { margin-top: 0.8rem; }
.v584-mt-2 { margin-top: 1.6rem; }
.v584-mb-1 { margin-bottom: 0.8rem; }
.v584-mb-2 { margin-bottom: 1.6rem; }
.v584-text-accent { color: var(--v584-accent); }
.v584-text-gold { color: var(--v584-gold); }
.v584-text-muted { color: var(--v584-text-muted); }
.v584-promo-text {
  font-size: 1.3rem; font-weight: 600; color: var(--v584-primary);
  cursor: pointer; text-decoration: underline;
}
.v584-promo-text:hover { color: var(--v584-accent-hover); }
