/* =========================================================
   arcadehive.games-1 — Cosmic / Space Theme
   Color Scheme: Deep Purple + Gold
   Hero: full-screen-bg | Cards: rounded-large-image
   Animation: parallax-hero
   ========================================================= */

/* 1. CSS Custom Properties */
:root {
  --color-primary: #7c3aed;
  --color-primary-light: #a855f7;
  --color-secondary: #f59e0b;
  --color-bg: #05030f;
  --color-surface: #0f0a24;
  --color-surface-2: #1a1040;
  --color-text: #e8e0ff;
  --color-text-muted: #9b8ec4;
  --color-gold: #f59e0b;
  --color-gold-light: #fcd34d;
  --font-heading: "Georgia", serif;
  --font-body: "Segoe UI", system-ui, sans-serif;
  --radius-card: 16px;
  --radius-btn: 8px;
  --shadow-card: 0 4px 24px rgba(124, 58, 237, 0.25);
  --shadow-gold: 0 4px 24px rgba(245, 158, 11, 0.3);
  --nav-height: 70px;
}

/* 2. Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--color-primary-light);
  text-decoration: none;
}
a:hover {
  color: var(--color-gold);
}
ul {
  list-style: none;
}

/* 3. Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 80px 0;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-gold);
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

/* 4. Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(5, 3, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-gold);
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  letter-spacing: 2px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  transition: color 0.2s;
  letter-spacing: 0.5px;
}
.nav-links a:hover {
  color: var(--color-gold);
}
.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.nav-cta:hover {
  background: var(--color-primary-light) !important;
  box-shadow: var(--shadow-card);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* 5. Hero — full-screen-bg with parallax */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero.webp");
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: scale(1.08);
  transition: transform 0.1s linear;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 3, 15, 0.3) 0%,
    rgba(5, 3, 15, 0.6) 60%,
    rgba(5, 3, 15, 0.95) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
}
.hero-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 30px rgba(124, 58, 237, 0.6);
  margin-bottom: 20px;
}
.hero-title span {
  color: var(--color-gold);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  color: #fff;
  padding: 16px 40px;
  border-radius: var(--radius-btn);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: var(--shadow-card);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.45);
  color: #fff;
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-gold);
  padding: 14px 36px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--color-gold);
  transition:
    background 0.2s,
    color 0.2s;
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-gold);
  display: block;
}
.hero-stat-lbl {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 6. Stars particles overlay */
.stars-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  opacity: var(--op, 0.6);
}
@keyframes twinkle {
  0%,
  100% {
    opacity: var(--op, 0.6);
  }
  50% {
    opacity: 0.1;
  }
}

/* 7. Promo Cards */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.promo-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.2);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  box-shadow: var(--shadow-card);
}
.promo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.4);
}
.promo-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.promo-card-body {
  padding: 20px;
}
.promo-card-tag {
  font-size: 0.7rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.promo-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px;
}
.promo-card-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.promo-card-cta {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 9px 22px;
  border-radius: var(--radius-btn);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s;
}
.promo-card-cta:hover {
  background: var(--color-primary-light);
  color: #fff;
}

/* 8. Game Cards — rounded-large-image */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.game-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.2);
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  position: relative;
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}
.game-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(124, 58, 237, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.game-card:hover .game-card-overlay {
  opacity: 1;
}
.game-card-play {
  background: var(--color-gold);
  color: var(--color-bg);
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.9rem;
}
.game-card-name {
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
}

/* 9. Categories */
.categories-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.cat-chip {
  padding: 10px 22px;
  border-radius: 24px;
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: var(--color-text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  background: var(--color-surface);
}
.cat-chip:hover,
.cat-chip.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* 10. Wins Ticker */
.wins-section {
  background: var(--color-surface);
}
.wins-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.win-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-surface-2);
  border-radius: 10px;
  padding: 14px 18px;
  border-left: 3px solid var(--color-primary);
  animation: slideInLeft 0.4s ease;
}
@keyframes slideInLeft {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.win-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.win-info {
  flex: 1;
}
.win-user {
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
}
.win-game {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.win-amount {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-gold);
  font-weight: 700;
  white-space: nowrap;
}

/* 11. Providers */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.provider-card {
  background: var(--color-surface);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.provider-card:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

/* 12. Register Section */
.register-section {
  background: linear-gradient(
    135deg,
    var(--color-surface) 0%,
    var(--color-surface-2) 100%
  );
  border-top: 1px solid rgba(124, 58, 237, 0.3);
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}
.register-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 20px;
}
.register-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--color-gold);
  margin-bottom: 12px;
}
.register-inner p {
  color: var(--color-text-muted);
  margin-bottom: 28px;
  font-size: 1rem;
}
.register-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.register-form input {
  padding: 14px 18px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(124, 58, 237, 0.3);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.register-form input:focus {
  border-color: var(--color-primary);
}
.register-form input::placeholder {
  color: var(--color-text-muted);
}
.register-form .btn-primary {
  width: 100%;
  font-size: 1.05rem;
  padding: 16px;
}
.register-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 14px;
}

/* 13. Popup */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 15, 0.85);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-inner {
  background: var(--color-surface-2);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-card);
  padding: 40px;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.popup-inner p {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 24px;
}
.popup-inner button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 12px 36px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.popup-inner button:hover {
  background: var(--color-primary-light);
}

/* 14. Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1040;
  color: #e8e0ff;
  padding: 16px 24px;
  z-index: 9999;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(124, 58, 237, 0.4);
}
#cookie-banner p {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
}
#cookie-banner a {
  color: var(--color-primary-light);
}
.cookie-accept {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}
.cookie-decline {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid rgba(124, 58, 237, 0.4);
  padding: 9px 22px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-size: 0.88rem;
}

/* 15. Footer */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-gold);
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.footer-compliance {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border-left: 3px solid var(--color-primary);
}
.footer-col h4 {
  color: var(--color-text);
  font-size: 0.9rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col a {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--color-gold);
}
.footer-bottom {
  border-top: 1px solid rgba(124, 58, 237, 0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.age-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* 16. Game Page */
.game-page {
  padding: calc(var(--nav-height) + 40px) 0 60px;
}
.game-page-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.game-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-gold);
  margin-bottom: 24px;
}
.game-frame-wrapper {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.3);
  margin-bottom: 20px;
}
.game-frame-wrapper iframe {
  display: block;
  width: 100%;
  height: 560px;
}
.game-legal {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding: 12px 0;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
}

/* 17. Inner page hero */
.page-hero {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  background: linear-gradient(
    135deg,
    var(--color-surface) 0%,
    var(--color-bg) 100%
  );
  text-align: center;
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-gold);
  margin-bottom: 12px;
}
.page-hero p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* 18. FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
  padding: 24px 0;
}
.faq-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
  cursor: pointer;
}
.faq-answer {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* 19. Legal pages */
.legal-content {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px;
}
.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-gold);
  margin: 32px 0 12px;
}
.legal-content h3 {
  font-size: 1.1rem;
  color: var(--color-primary-light);
  margin: 22px 0 8px;
}
.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: 14px;
  line-height: 1.75;
  font-size: 0.93rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 24px;
}
.legal-content ul li {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  margin-bottom: 6px;
}
.legal-content a {
  color: var(--color-primary-light);
}

/* 20. Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: 20px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    gap: 16px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 24px;
  }
  .promo-grid {
    grid-template-columns: 1fr;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .game-frame-wrapper iframe {
    height: 320px;
  }
}
@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .categories-bar {
    gap: 8px;
  }
  .cat-chip {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}
