/**
 * S5 Arena - Design Stylesheet
 * All classes prefixed with v80f- to avoid conflicts
 * Color palette: #228B22 #48D1CC #C0C0C0 #32CD32 #1E1E1E
 * Mobile-first design (max-width: 430px base)
 */

/* CSS Variables */
:root {
  --v80f-primary: #228B22;
  --v80f-secondary: #48D1CC;
  --v80f-text: #C0C0C0;
  --v80f-accent: #32CD32;
  --v80f-bg: #1E1E1E;
  --v80f-bg-light: #2a2a2a;
  --v80f-bg-card: #252525;
  --v80f-border: #333333;
  --v80f-white: #ffffff;
  --v80f-gold: #FFD700;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background-color: var(--v80f-bg);
  color: var(--v80f-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--v80f-accent); text-decoration: none; }
a:hover { color: var(--v80f-secondary); }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.v80f-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.v80f-wrapper { width: 100%; overflow-x: hidden; }

/* Header */
.v80f-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1a3a1a, var(--v80f-bg));
  border-bottom: 2px solid var(--v80f-primary);
  padding: 0 1rem;
  height: 5.6rem;
  display: flex; align-items: center; justify-content: space-between;
}
.v80f-header-left { display: flex; align-items: center; gap: 0.8rem; }
.v80f-header-logo { width: 3.2rem; height: 3.2rem; border-radius: 0.6rem; }
.v80f-header-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v80f-accent);
  letter-spacing: 0.5px;
}
.v80f-header-right { display: flex; align-items: center; gap: 0.6rem; }
.v80f-btn-register, .v80f-btn-login {
  padding: 0.6rem 1.2rem; border-radius: 2rem; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.v80f-btn-register {
  background: linear-gradient(135deg, var(--v80f-accent), var(--v80f-primary));
  color: var(--v80f-white);
}
.v80f-btn-login {
  background: transparent; color: var(--v80f-accent);
  border: 1.5px solid var(--v80f-accent);
}
.v80f-btn-register:hover, .v80f-btn-login:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(50,205,50,0.3);
}
.v80f-menu-toggle {
  background: none; border: none; color: var(--v80f-accent);
  font-size: 2.4rem; cursor: pointer; padding: 0.4rem;
}

/* Mobile Menu */
.v80f-mobile-menu {
  display: none; position: fixed; top: 5.6rem; left: 0; right: 0;
  z-index: 9999; background: var(--v80f-bg);
  border-bottom: 2px solid var(--v80f-primary);
  padding: 1rem 0;
  animation: v80f-slideDown 0.3s ease;
}
@keyframes v80f-slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.v80f-mobile-menu a {
  display: block; padding: 1.2rem 2rem; color: var(--v80f-text);
  font-size: 1.4rem; border-bottom: 1px solid var(--v80f-border);
  transition: background 0.2s, color 0.2s;
}
.v80f-mobile-menu a:hover {
  background: var(--v80f-bg-light); color: var(--v80f-accent);
}

/* Carousel */
.v80f-carousel {
  position: relative; width: 100%; margin-top: 5.6rem;
  overflow: hidden; border-radius: 0 0 1rem 1rem;
}
.v80f-carousel-slide {
  display: none; width: 100%; cursor: pointer;
}
.v80f-carousel-slide.v80f-slide-active { display: block; }
.v80f-carousel-slide img {
  width: 100%; height: auto; min-height: 16rem; object-fit: cover;
}
.v80f-carousel-dots {
  position: absolute; bottom: 1rem; left: 50%;
  transform: translateX(-50%); display: flex; gap: 0.6rem;
}
.v80f-carousel-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: background 0.3s;
}
.v80f-carousel-dot.v80f-dot-active { background: var(--v80f-accent); }

/* Section Headings */
.v80f-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v80f-white);
  margin: 2rem 0 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v80f-primary);
}
.v80f-section-title span { color: var(--v80f-accent); }

/* Game Grid */
.v80f-game-section { margin: 1.5rem 0; }
.v80f-game-section h3 {
  font-size: 1.5rem; color: var(--v80f-secondary);
  margin-bottom: 0.8rem; padding-left: 0.5rem;
  border-left: 3px solid var(--v80f-accent);
}
.v80f-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.v80f-game-card {
  background: var(--v80f-bg-card); border-radius: 0.8rem;
  overflow: hidden; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--v80f-border);
}
.v80f-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(50,205,50,0.15);
}
.v80f-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
}
.v80f-game-card p {
  padding: 0.4rem 0.3rem; font-size: 1rem; color: var(--v80f-text);
  text-align: center; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Modules */
.v80f-content-block {
  background: var(--v80f-bg-card); border-radius: 1rem;
  padding: 1.5rem; margin: 1.5rem 0;
  border: 1px solid var(--v80f-border);
}
.v80f-content-block h2 {
  font-size: 1.6rem; color: var(--v80f-white); margin-bottom: 1rem;
}
.v80f-content-block h3 {
  font-size: 1.4rem; color: var(--v80f-secondary); margin: 0.8rem 0 0.5rem;
}
.v80f-content-block p {
  line-height: 1.6; margin-bottom: 0.8rem; color: var(--v80f-text);
}
.v80f-content-block ul {
  padding-left: 1.5rem; margin-bottom: 0.8rem;
}
.v80f-content-block li {
  margin-bottom: 0.4rem; color: var(--v80f-text);
}

/* Promo CTA */
.v80f-cta-box {
  background: linear-gradient(135deg, var(--v80f-primary), #1a5c1a);
  border-radius: 1rem; padding: 1.5rem; margin: 1.5rem 0;
  text-align: center; border: 1px solid var(--v80f-accent);
}
.v80f-cta-box h2 {
  color: var(--v80f-accent); font-size: 1.6rem; margin-bottom: 0.8rem;
}
.v80f-cta-box p { color: var(--v80f-white); margin-bottom: 1rem; }
.v80f-cta-btn {
  display: inline-block; padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--v80f-accent), #2aae2a);
  color: var(--v80f-white); font-size: 1.4rem; font-weight: 700;
  border-radius: 3rem; cursor: pointer; border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.v80f-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(50,205,50,0.4);
}

/* Testimonial Cards */
.v80f-testimonial {
  background: var(--v80f-bg-card); border-radius: 0.8rem;
  padding: 1.2rem; margin: 0.8rem 0;
  border-left: 3px solid var(--v80f-accent);
}
.v80f-testimonial p { font-style: italic; font-size: 1.3rem; }
.v80f-testimonial cite {
  display: block; margin-top: 0.5rem;
  color: var(--v80f-secondary); font-size: 1.1rem;
}

/* Winner List */
.v80f-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; border-bottom: 1px solid var(--v80f-border);
}
.v80f-winner-name { color: var(--v80f-text); font-size: 1.2rem; }
.v80f-winner-game { color: var(--v80f-secondary); font-size: 1.1rem; }
.v80f-winner-amount { color: var(--v80f-accent); font-weight: 700; font-size: 1.3rem; }

/* Payment Icons */
.v80f-payment-row {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  justify-content: center; margin: 1rem 0;
}
.v80f-payment-item {
  background: var(--v80f-bg-light); border-radius: 0.6rem;
  padding: 0.6rem 1.2rem; font-size: 1.1rem;
  color: var(--v80f-text); border: 1px solid var(--v80f-border);
}

/* Footer */
.v80f-footer {
  background: var(--v80f-bg-light); padding: 2rem 1rem;
  border-top: 2px solid var(--v80f-primary); margin-top: 2rem;
}
.v80f-footer-desc {
  font-size: 1.2rem; color: var(--v80f-text);
  line-height: 1.5; margin-bottom: 1rem;
}
.v80f-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center; margin: 1rem 0;
}
.v80f-footer-link {
  padding: 0.5rem 1rem; background: var(--v80f-bg-card);
  border: 1px solid var(--v80f-border); border-radius: 0.5rem;
  font-size: 1.1rem; color: var(--v80f-accent);
  transition: background 0.2s;
}
.v80f-footer-link:hover { background: var(--v80f-primary); color: var(--v80f-white); }
.v80f-footer-copy {
  text-align: center; font-size: 1.1rem;
  color: #666; margin-top: 1rem;
}

/* Bottom Navigation */
.v80f-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; height: 6rem;
  background: linear-gradient(180deg, #1a3a1a, #0d1f0d);
  border-top: 2px solid var(--v80f-primary);
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 0.5rem;
}
.v80f-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 6rem; min-height: 5rem;
  background: none; border: none; cursor: pointer;
  color: var(--v80f-text); transition: color 0.2s, transform 0.2s;
}
.v80f-bottom-nav-btn:hover, .v80f-bottom-nav-btn.v80f-nav-active {
  color: var(--v80f-accent); transform: scale(1.08);
}
.v80f-bottom-nav-btn i,
.v80f-bottom-nav-btn .material-icons {
  font-size: 2.4rem; margin-bottom: 0.2rem;
}
.v80f-bottom-nav-btn span {
  font-size: 1rem; line-height: 1.2;
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .v80f-bottom-nav { display: none; }
}
/* Mobile: bottom padding */
@media (max-width: 768px) {
  main { padding-bottom: 8rem; }
  .v80f-footer { padding-bottom: 8rem; }
}

/* Desktop nav */
.v80f-desktop-nav { display: none; }
@media (min-width: 769px) {
  .v80f-desktop-nav {
    display: flex; gap: 1.5rem; align-items: center;
  }
  .v80f-desktop-nav a {
    color: var(--v80f-text); font-size: 1.3rem;
    transition: color 0.2s;
  }
  .v80f-desktop-nav a:hover { color: var(--v80f-accent); }
  .v80f-container { max-width: 768px; }
  .v80f-game-grid { grid-template-columns: repeat(6, 1fr); }
}

/* FAQ styles */
.v80f-faq-item {
  margin: 0.8rem 0; padding: 1rem;
  background: var(--v80f-bg-card); border-radius: 0.8rem;
  border: 1px solid var(--v80f-border);
}
.v80f-faq-item strong {
  display: block; color: var(--v80f-accent);
  font-size: 1.3rem; margin-bottom: 0.4rem;
}

/* Feature cards */
.v80f-feature-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem; margin: 0.6rem 0;
  background: var(--v80f-bg-card); border-radius: 0.8rem;
  border: 1px solid var(--v80f-border);
}
.v80f-feature-card i {
  font-size: 2rem; color: var(--v80f-accent); flex-shrink: 0;
  margin-top: 0.2rem;
}
.v80f-feature-card h4 {
  font-size: 1.3rem; color: var(--v80f-white); margin-bottom: 0.3rem;
}
.v80f-feature-card p {
  font-size: 1.2rem; color: var(--v80f-text); line-height: 1.4;
}

/* Promo text link */
.v80f-promo-text {
  color: var(--v80f-accent); font-weight: 600;
  cursor: pointer; text-decoration: underline;
  transition: color 0.2s;
}
.v80f-promo-text:hover { color: var(--v80f-secondary); }

/* Badge */
.v80f-badge {
  display: inline-block; padding: 0.2rem 0.6rem;
  background: var(--v80f-accent); color: var(--v80f-bg);
  border-radius: 1rem; font-size: 0.9rem; font-weight: 700;
}
