/* ================================
   Reset & Base Styles
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* StarDrift Color Palette */
  --primary: #bb0420;
  --primary-dark: #8b0318;
  --primary-light: #d4052a;
  --secondary: #bb0420;
  --accent: #ff6b35;
  --accent-yellow: #bb0420;

  /* Background Colors */
  --bg-dark: #1a1a1a;
  --bg-darker: #0f0f0f;
  --bg-card: #262626;
  --bg-card-hover: #333333;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;

  /* Border & Shadow */
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(187, 4, 32, 0.3);
  --shadow-lg: 0 8px 32px rgba(187, 4, 32, 0.4);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #bb0420 0%, #d4052a 100%);
  --gradient-accent: linear-gradient(135deg, #bb0420 0%, #b11b1b 100%);
  --gradient-dark: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/background.jpg") center top/cover no-repeat;
  filter: grayscale(100%);
  z-index: -1;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
}

/* ================================
   Popup Overlay
   ================================ */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 500px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.age-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: white;
  box-shadow: var(--shadow-md);
}

.popup-content h2 {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 800;
}

.popup-content p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 16px;
}

.age-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-confirm,
.btn-decline {
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-confirm {
  background: var(--gradient-primary);
  color: white;
}

.btn-confirm:hover {
  box-shadow: var(--shadow-md);
}

.btn-decline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-decline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ================================
   Cookie Banner
   ================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-icon {
  font-size: 32px;
}

.cookie-text {
  flex: 1;
}

.cookie-text h3 {
  font-size: 18px;
  margin-bottom: 4px;
  font-weight: 700;
}

.cookie-text p {
  font-size: 14px;
  color: var(--text-secondary);
}

.cookie-text a {
  color: var(--secondary);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
}

.btn-accept,
.btn-decline-cookie {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-accept {
  background: var(--gradient-primary);
  color: white;
}

.btn-decline-cookie {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-decline-cookie:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ================================
   Top Banner
   ================================ */
.top-banner {
  background: var(--gradient-accent);
  padding: 12px 0;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

/* ================================
   Header
   ================================ */
.header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(26, 26, 26, 0.8);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo img {
  height: 60px;
  width: auto;
}

.logo-text {
  font-size: 28px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-badge {
  background: var(--gradient-accent);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--text-primary);
}

/* ================================
   Burger Menu
   ================================ */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: relative;
  background: none;
  border: none;
}

.burger-menu span {
  display: block;
  width: 28px;
  height: 3px;
  background: rgb(255, 255, 255);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: var(--bg-darker);
  border-left: 1px solid var(--border-color);
  padding: 80px 24px 24px;
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.mobile-nav a:hover {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--secondary);
}

.btn-login,
.btn-signup {
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-login {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-signup {
  background: var(--gradient-primary);
  color: white;
}

.btn-signup:hover {
  box-shadow: var(--shadow-md);
}

/* ================================
   Hero Section
   ================================ */
.hero {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(187, 4, 32, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(187, 4, 32, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 72px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.highlight {
  color: var(--accent-yellow);
  font-weight: 800;
  font-size: 42px;
}

.hero-rewards {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 48px;
}

/* ================================
   Countdown Timer
   ================================ */
.countdown {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
}

.countdown-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px 32px;
  min-width: 120px;
}

.countdown-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--secondary);
  margin-bottom: 8px;
}

.countdown-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ================================
   Buttons
   ================================ */
.btn-cta {
  background: var(--gradient-accent);
  color: white;
  padding: 20px 48px;
  border: none;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  display: inline-block;
  text-decoration: none;
}

.btn-cta:hover {
  box-shadow: var(--shadow-lg);
}

.btn-cta:visited {
  color: white;
}

/* ================================
   Packages Section
   ================================ */
.packages {
  padding: 100px 0;
}

.section-title {
  font-size: 48px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 64px;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.package-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.package-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.package-card.featured {
  border-color: var(--accent);
  background: linear-gradient(
    135deg,
    var(--bg-card) 0%,
    rgba(255, 61, 0, 0.05) 100%
  );
}

.package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.package-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
}

.package-details {
  display: flex;
  justify-content: space-around;
  margin-bottom: 32px;
}

.package-value {
  font-size: 48px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.package-label {
  font-size: 14px;
  color: var(--text-muted);
}

.btn-claim {
  width: 100%;
  padding: 16px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-claim:hover {
  box-shadow: var(--shadow-md);
}

/* ================================
   Features Section
   ================================ */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ================================
   Footer
   ================================ */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 80px 0 32px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--secondary);
}

.responsible-gaming {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 48px;
}

.responsible-gaming h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--accent-yellow);
}

.responsible-gaming p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}

.footer-organizations {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.org-item img {
  height: 50px;
  width: auto;
  filter: grayscale(100%) brightness(0.8);
  transition: all 0.3s ease;
}

.org-item img:hover {
  filter: grayscale(0%) brightness(1);
}

.age-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
}

.license-info {
  text-align: center;
  padding: 32px;
  background: rgba(187, 4, 32, 0.05);
  border: 1px solid var(--primary);
  border-radius: 12px;
  margin-bottom: 32px;
}

.license-info p {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.license-info strong {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 13px;
  font-style: italic;
}

/* Footer Logo Section */
.footer-logo-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.footer-logo {
  font-size: 32px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.footer-partner-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-partner-logos img {
  height: 120px;
  width: 120px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-partner-logos img:hover {
  opacity: 1;
}

/* Payment Methods Section */
.footer-payment-methods {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.footer-payment-methods a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  transition: transform 0.3s ease;
}

.footer-payment-methods a:hover {
  transform: scale(1.1);
}

.footer-payment-methods img {
  height: 30px;
  width: auto;
  max-width: 80px;
}

/* Regional Availability */
.footer-regions {
  text-align: center;
  padding: 24px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-regions strong {
  color: var(--text-primary);
  margin-right: 8px;
}

.footer-regions span {
  color: var(--text-muted);
  margin: 0 8px;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 56px;
  }

  .section-title {
    font-size: 40px;
  }

  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header {
    padding: 16px 0;
  }

  .logo img {
    height: 50px;
  }

  .logo-text {
    font-size: 24px;
  }

  .nav {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 40px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .highlight {
    font-size: 28px;
  }

  .hero-rewards {
    font-size: 28px;
  }

  .countdown {
    flex-wrap: wrap;
    gap: 12px;
  }

  .countdown-item {
    min-width: 80px;
    padding: 16px 12px;
    flex: 1;
    min-width: calc(50% - 6px);
  }

  .countdown-number {
    font-size: 36px;
  }

  .countdown-label {
    font-size: 12px;
  }

  .btn-cta {
    padding: 16px 32px;
    font-size: 18px;
  }

  .packages {
    padding: 60px 0;
  }

  .section-title {
    font-size: 32px;
  }

  .section-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .packages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .package-card {
    padding: 24px 20px;
  }

  .package-title {
    font-size: 20px;
  }

  .package-value {
    font-size: 40px;
  }

  .features {
    padding: 60px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 32px 24px;
  }

  .feature-icon {
    font-size: 40px;
  }

  .top-banner {
    padding: 10px 0;
    font-size: 12px;
  }

  .popup-content {
    padding: 32px 24px;
    margin: 20px;
    max-width: calc(100% - 40px);
  }

  .age-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .popup-content h2 {
    font-size: 24px;
  }

  .popup-content p {
    font-size: 14px;
  }

  .age-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn-confirm,
  .btn-decline {
    width: 100%;
    padding: 14px 24px;
  }

  .cookie-banner {
    padding: 16px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cookie-icon {
    font-size: 28px;
  }

  .cookie-text h3 {
    font-size: 16px;
  }

  .cookie-text p {
    font-size: 13px;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-accept,
  .btn-decline-cookie {
    width: 100%;
  }

  .footer {
    padding: 60px 0 24px;
  }

  .footer-logo-section {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    padding-bottom: 24px;
  }

  .footer-logo {
    font-size: 28px;
  }

  .footer-partner-logos {
    justify-content: center;
    gap: 16px;
  }

  .footer-partner-logos img {
    height: 80px;
    width: 80px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col h4 {
    font-size: 16px;
  }

  .footer-payment-methods {
    gap: 12px;
    padding: 20px 0;
  }

  .footer-payment-methods img {
    height: 24px;
  }

  .license-info {
    padding: 24px 20px;
    font-size: 14px;
  }

  .footer-regions {
    font-size: 11px;
    padding: 20px 0;
  }

  .footer-regions span {
    display: block;
    margin: 4px 0;
  }

  .footer-bottom {
    padding-top: 24px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  .page-content {
    padding: 60px 0 !important;
  }

  .page-content h1 {
    font-size: 32px !important;
  }

  .page-content .container > div {
    padding: 0 8px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .highlight {
    font-size: 24px;
  }

  .hero-rewards {
    font-size: 24px;
  }

  .countdown-item {
    min-width: 100%;
  }

  .countdown-number {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .package-value {
    font-size: 36px;
  }

  .logo-text {
    font-size: 20px;
  }

  .logo img {
    height: 40px;
  }

  .mobile-menu {
    max-width: 100%;
  }
}
