/* Slotrush.nu — Premium Glassmorphism Theme */

:root {
  /* Colors */
  --bg: #050114;
  /* deep void purple */
  --bg-2: #140a2b;

  /* Glassmorphism Variables */
  --glass-bg: rgba(20, 10, 43, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.05);
  --glass-blur: blur(14px);

  --text: #ffffff;
  --text-2: #d1d5e6;

  /* Accents */
  --accent: #ff2aa2;
  /* Neon Pink */
  --accent-glow: rgba(255, 42, 162, 0.5);

  /* New Premium Gold Accent */
  --gold: #FFD700;
  --gold-2: #FFAA00;
  --gold-glow: rgba(255, 215, 0, 0.45);

  /* Spacing */
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 48px;
  --radius: 20px;

  /* Shadows */
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--accent-glow);
  --shadow-gold: 0 0 20px var(--gold-glow);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(255, 42, 162, 0.15), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(255, 215, 0, 0.08), transparent 40%),
    linear-gradient(180deg, #0b0120 0%, #050110 100%);
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover:not(.cta) {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Glass Card Utility */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

/* Shine Animation Helper */
.shine-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-25deg);
  animation: shine 6s infinite;
}

/* Buttons (CTA) */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 99px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #d10074);
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  z-index: 1;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff5eb3, var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.cta:hover::before {
  opacity: 1;
}

.cta:active {
  transform: translateY(-1px);
}

/* Gold CTA Variant */
.cta.cta--gold {
  color: #1a0505;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 4px 15px var(--gold-glow);
}

.cta.cta--gold::before {
  background: linear-gradient(135deg, #ffec8b, var(--gold));
}

.cta.cta--gold:hover {
  box-shadow: 0 8px 25px var(--gold-glow);
}

/* Header / Sidebar */
/* Mobile Header (Top) */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: rgba(5, 1, 25, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
}

.mobile-header .brand {
  display: flex;
  justify-content: center;
}

/* Increased logo size x1.2 (approx 30px) and removed border-radius */
.mobile-header .brand img {
  height: 30px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.btn-header {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
}

.btn-login {
  color: var(--text-2);
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-register {
  color: #0d021f;
  background: var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 4px 12px var(--gold-glow);
  justify-self: end;
}

.btn-register:active {
  transform: scale(0.96);
}

/* Hide mobile header on desktop */
@media (min-width: 900px) {
  .mobile-header {
    display: none;
  }

  /* Footer Fix: Push footer to right to avoid sidebar overlap */
  .site-footer {
    margin-left: 280px;
  }
}

/* Bottom App Bar */
.bottom-app-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(10, 5, 25, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.app-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-2);
  font-size: 10px;
  flex: 1;
  text-align: center;
}

.app-link i {
  font-size: 20px;
  transition: transform 0.2s cubic-bezier(0.3, 1.5, 0.7, 1);
}

.app-link span {
  font-weight: 500;
  letter-spacing: 0.3px;
}

.app-link:hover,
.app-link:active {
  color: var(--text);
}

.app-link:hover i {
  transform: translateY(-2px);
  color: var(--accent);
}

/* Central Play Button */
.app-link.highlight {
  position: relative;
  top: -15px;
}

.app-link__icon-circle {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), #d10074);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--accent-glow);
  color: #fff;
}

.app-link__icon-circle i {
  font-size: 24px;
  margin-left: 2px;
  /* optical centering */
}

/* Desktop Sidebar */
.site-sidebar {
  display: none;
}

@media (min-width: 900px) {
  .bottom-app-bar {
    display: none;
  }

  /* Premium Sidebar Container */
  .site-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    /* narrowed slightly */
    background: rgba(10, 5, 30, 0.7);
    /* darker glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 30px 20px 20px;
    z-index: 50;
  }

  .site-sidebar__brand {
    margin-bottom: 30px;
    padding-left: 8px;
  }

  .sidebar-scroll {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow-y: auto;
    scrollbar-width: none;
    /* simple scroll */
  }

  /* Nav Sections */
  .nav-section {
    display: grid;
    gap: 4px;
  }

  .nav-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-2);
    opacity: 0.6;
    margin: 0 0 8px 12px;
    font-weight: 600;
  }

  /* Compact Nav Items */
  .site-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-2);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid transparent;
  }

  .site-sidebar__nav a:hover,
  .site-sidebar__nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateX(4px);
  }

  .nav-icon {
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
  }

  .site-sidebar__nav a:hover .nav-icon {
    opacity: 1;
    color: var(--accent);
  }

  /* Sidebar Footer (App & Lang) */
  .sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 16px;
  }

  /* Install App Banner */
  .sidebar-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(255, 42, 162, 0.1), rgba(10, 5, 30, 0.5));
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    transition: transform 0.2s;
  }

  .sidebar-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
  }

  .sidebar-card__icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--accent-glow);
  }

  .sidebar-card__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .sidebar-card__text span {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
  }

  .sidebar-card__text small {
    font-size: 11px;
    color: var(--accent-2);
  }

  /* Lang Switch */
  .lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: var(--text-2);
    font-size: 13px;
    border-top: 1px solid var(--glass-border);
  }

  .lang-switch:hover {
    color: #fff;
  }
}

/* Main Layout */
.content {
  padding: 20px 20px 90px;
  /* Add bottom padding for app bar */
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .content {
    margin-left: 280px;
    padding: 40px 60px;
  }
}

/* Page Sections Spacing */
.section {
  margin-bottom: 60px;
  position: relative;
  /* Contain absolute elements if any */
}

@media (min-width: 900px) {
  .section {
    margin-bottom: 90px;
  }
}

/* Typography Headings */
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 4px;
  background: linear-gradient(90deg, #fff, #b4b4b4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section__sub {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 24px;
}

/* Hero Section - Clean Style */
.hero__list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
}

.hero-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  /* Removing card bg to rely on image */
  background: #000;
  transition: transform 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* The text floats directly on the image now */
.hero-card__body {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: auto;
  right: auto;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-card__body p {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  color: #fff;
  max-width: 80%;
}

/* Categories - Smaller & Centered */
.categories__row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 24px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 40px;
  /* Centering on PC (via media query below, but flexbox needs width to center) */
}

.category {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Smaller dimensions */
  width: 90px;
  height: 90px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  transition: all 0.3s;
  text-align: center;
}

.category:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Smaller icons/text */
.category__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3));
}

.category__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
}

.category:hover .category__label {
  color: white;
}

/* Slots Grid */
.slots__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  /* Smaller mobile gap */
}

.slot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.slot:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(255, 42, 162, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.slot img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* Bonuses */
.bonuses__grid {
  display: grid;
  gap: 24px;
  /* Increased breathing room */
  grid-template-columns: 1fr;
  /* Default mobile 1 col */
}

.bonus-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.bonus-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.bonus-card img {
  width: 100%;
  height: 200px;
  /* Slightly taller image */
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.bonus-card__body {
  padding: 24px;
  /* More internal spacing */
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.bonus-card__body h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  background: linear-gradient(90deg, #fff, #e0e0e0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bonus-card__body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: auto;
}

.bonus-card .cta {
  width: 100%;
  font-size: 15px;
  padding: 14px;
}

/* Text Sections */
.prose {
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  color: #adb2c5;
}

.faq-item {
  background: rgba(25, 20, 50, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 10px;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item p {
  padding: 0 20px 20px;
  color: #adb2c5;
}

/* Footer */
.site-footer {
  margin-top: 60px;
  padding: 40px 20px;
  background: #020108;
  border-top: 1px solid #1a1a1a;
  text-align: center;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer__nav a {
  color: #888;
}

.footer__nav a:hover {
  color: #fff;
}

/* Responsive adjustments */
@media (min-width: 600px) {
  .slots__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .bonuses__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .hero__list {
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-card {
    flex: auto;
    scroll-snap-align: none;
  }

  .hero-card__body {
    position: absolute;
    bottom: 20px;
    left: 24px;
    width: auto;
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
    display: block;
  }

  .hero-card__body p {
    font-size: 1.4rem;
    max-width: 70%;
    margin-bottom: 16px;
  }

  .slots__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  /* More columns on PC */
  .bonuses__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .categories__row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 16px;
  }

  .category {
    width: 100px;
    height: 100px;
  }

  /* Smaller desktop size */
  .category__icon {
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 1200px) {
  .bonuses__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Animations */
@keyframes shine {
  0% {
    left: -100%;
    opacity: 0;
  }

  5% {
    opacity: 0.5;
  }

  20% {
    left: 200%;
    opacity: 0;
  }

  100% {
    left: 200%;
    opacity: 0;
  }
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}

/* Premium Promo Modal */
.promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  /* Topmost */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.promo-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 1, 20, 0.6);
  backdrop-filter: blur(12px);
  /* The requested blur effect */
  -webkit-backdrop-filter: blur(12px);
}

.promo-card {
  position: relative;
  width: 90%;
  max-width: 420px;
  aspect-ratio: 1/1;
  /* Square Banner */
  background: radial-gradient(circle at 50% 0%, rgba(50, 20, 60, 0.95), #050110);
  border: 1px solid rgba(255, 215, 0, 0.3);
  /* Gold border */
  border-radius: 32px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(255, 215, 0, 0.2);
  /* Gold glow */
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.promo-overlay.visible .promo-card {
  transform: scale(1);
}

.promo-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Promo Content */
.promo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.promo-badge {
  display: inline-flex;
  /* Shrink to fit text */
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 16px;
  /* Slightly more padding for 'button' feel but fit to text */
  border-radius: 99px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.promo-card h2 {
  font-size: 2.2rem;
  /* Big impact */
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #ffd700 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.promo-card p {
  color: var(--text-2);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 80%;
}

.cta--pulse {
  animation: pulse-gold 2s infinite;
  font-size: 1.1rem;
  padding: 16px 40px;
}