/* RUNA Casino - Styles */

/* CSS Variables */
:root {
  /* Brand Colors */
  --primary: #ffee00;
  --primary-dark: #b2a017;
  --ink: #1e1d1b;
  --paper: #ffffff;
  --sand: #dec8aa;
  --stone: #36332e;
  --shadow: #24231f;
  --coal: #131313;
  --ink2: #1f1e1c;
  --sand2: #e0c9ae;
  
  /* Typography */
  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  
  /* Font Sizes */
  --h1: 28px;
  --h2: 22px;
  --h3: 18px;
  --body: 15px;
  --small: 13px;
  --button: 15px;
  
  /* Line Heights */
  --line-tight: 1.15;
  --line-normal: 1.5;
  --line-loose: 1.7;
  
  /* Layout */
  --container-max-width: 1140px;
  --container-padding: 16px;
  --border-radius-soft: 14px;
  --border-radius-pill: 999px;
  --elevation-card: 0 6px 20px rgba(0,0,0,.35);
  
  /* Breakpoints */
  --breakpoint-sm: 480px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-text);
  font-size: var(--body);
  line-height: var(--line-normal);
  color: var(--paper);
  background: linear-gradient(180deg, var(--ink2) 0%, var(--coal) 100%);
  min-height: 100vh;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: var(--ink);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 6px;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--line-tight);
  color: var(--paper);
}

h1 {
  font-size: clamp(32px, 6vw, 56px);
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 1.25rem;
  color: var(--primary);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  letter-spacing: -0.01em;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
}

h3 {
  font-size: clamp(18px, 3vw, 24px);
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.01em;
}

p {
  margin-bottom: 1rem;
  line-height: var(--line-normal);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--button);
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius-pill);
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-height: 44px;
}

.btn:focus {
  outline: 2px dashed var(--primary);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--stone);
  color: var(--paper);
}

.btn-secondary:hover {
  background: var(--ink2);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--sand2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 14px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, var(--ink2) 0%, var(--coal) 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,.5);
  z-index: 100;
  height: 64px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .header {
    height: 72px;
  }
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-img {
  height: 40px;
  width: auto;
}

@media (min-width: 768px) {
  .logo-img {
    height: 48px;
  }
}

/* Navigation */
.nav-list {
  display: none;
  list-style: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-list {
    display: flex;
  }
}

.nav-link {
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: none;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .header-actions {
    display: flex;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--paper);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 22.5vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 1rem 0;
  margin-top: 2rem;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-max-width);
  height: 100%;
  z-index: -2;
  border-radius: var(--border-radius-soft);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-soft);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-max-width);
  height: 100%;
  background: linear-gradient(0deg, rgba(31,30,28,.8) 0%, rgba(31,30,28,.2) 60%);
  z-index: -1;
  border-radius: var(--border-radius-soft);
}

.hero-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.hero-badge span {
  background: var(--primary);
  color: var(--ink);
  padding: 3px 8px;
  border-radius: var(--border-radius-pill);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(18px, 3.5vw, 28px);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(13px, 2.2vw, 15px);
  margin-bottom: 1.25rem;
  opacity: 0.9;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-legal {
  font-size: 11px;
  opacity: 0.7;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.3;
}

/* Cards */
.card {
  background: linear-gradient(180deg, var(--shadow) 0%, var(--ink) 100%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--border-radius-soft);
  padding: 2rem;
  box-shadow: var(--elevation-card);
}

/* Sections */
.text-section,
.features-section,
.howto-section,
.games-section,
.bonuses-section,
.vip-section,
.chests-section,
.payments-section,
.why-choose-section {
  padding: 2rem 0;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(20px, 4vw, 32px);
}

/* Features List */
.features-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.features-list li {
  position: relative;
  padding-left: 2rem;
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2em;
}

/* How To List */
.howto-list {
  counter-reset: step-counter;
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

.howto-list li {
  position: relative;
  padding-left: 3rem;
  counter-increment: step-counter;
}

.howto-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary);
  color: var(--ink);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

/* Promotions Carousel */
.promo-section {
  padding: 4rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-container {
  display: flex;
  overflow: hidden;
  border-radius: var(--border-radius-soft);
}

.carousel-slide {
  min-width: 100%;
  transition: transform 0.5s ease;
}

.promo-card {
  background: linear-gradient(180deg, var(--shadow) 0%, var(--ink) 100%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--border-radius-soft);
  overflow: hidden;
  box-shadow: var(--elevation-card);
}

.promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.promo-content {
  padding: 1.5rem;
}

.promo-badge {
  display: inline-block;
  background: rgba(255,238,0,.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: var(--small);
  font-weight: 600;
  margin-bottom: 1rem;
}

.promo-content h3 {
  margin-bottom: 0.5rem;
}

.promo-content p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  background: var(--stone);
  color: var(--paper);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--ink);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary);
}

/* Providers Section */
.providers-section {
  padding: 4rem 0;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.provider-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-soft);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.provider-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.provider-logo {
  max-width: 100%;
  max-height: 60px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.provider-item:hover .provider-logo {
  opacity: 1;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(50deg);
  box-shadow: 0 0 15px rgba(255, 238, 0, 0.6);
}

/* Footer */
.footer {
  background: var(--ink2);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-column h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-column a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-badge {
  height: 40px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-badge:hover {
  opacity: 1;
}

.footer-payments {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.payment-logo {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.payment-logo:hover {
  opacity: 1;
}

.footer-copyright {
  font-size: var(--small);
  opacity: 0.6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 767px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .provider-item {
    padding: 1rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px dashed var(--primary);
  outline-offset: 3px;
}

/* Games Grid */
.games-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.game-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-soft);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.game-category:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.game-category h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Bonus Carousel */
.bonus-carousel {
  position: relative;
  max-width: var(--container-max-width);
  margin: 2rem auto;
  background-image: url('img/banner2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--border-radius-soft);
  overflow: hidden;
  padding: 2rem;
}

.bonus-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  border-radius: var(--border-radius-soft);
}

.bonus-carousel-container {
  display: flex;
  overflow: hidden;
  border-radius: var(--border-radius-soft);
  position: relative;
  height: auto;
  min-height: 280px;
  width: 100%;
}

.bonus-carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  transition: transform 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: none;
  height: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-soft);
}

.bonus-carousel-slide.active {
  display: block;
  z-index: 3;
}

.bonus-carousel-slide:not(.active) {
  z-index: 2;
}

.bonus-slide-content {
  background: rgba(255, 238, 0, 0.05);
  border: 1px solid rgba(255, 238, 0, 0.2);
  border-radius: var(--border-radius-soft);
  padding: 2rem;
  padding-top: 3rem;
  text-align: center;
  position: relative;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.bonus-slide-content:hover {
  background: rgba(255, 238, 0, 0.08);
}

.bonus-number {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--ink);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bonus-slide-content h4 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.25rem;
}

.bonus-slide-content p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.bonus-slide-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bonus-slide-content li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.bonus-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 5;
}

.bonus-carousel-btn {
  background: var(--stone);
  color: var(--paper);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 5;
}

.bonus-carousel-btn:hover {
  background: var(--primary);
  color: var(--ink);
}

.bonus-carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.bonus-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 5;
}

.bonus-dot.active {
  background: var(--primary);
}

.bonus-terms {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-soft);
  padding: 1.5rem;
  margin-top: 2rem;
}

.bonus-terms p {
  margin: 0;
  font-size: var(--small);
  opacity: 0.9;
}

/* Payment Methods */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.payment-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-soft);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.payment-category:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.payment-category h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.payment-category p {
  margin: 0;
  opacity: 0.8;
}

/* VIP Section */
.vip-section {
  background: rgba(0, 0, 0, 0.2);
}

/* Chests Section */
.chests-section {
  /* No special background - same as other sections */
}

/* Responsive Design Updates */
@media (max-width: 767px) {
  .bonus-grid {
    grid-template-columns: 1fr;
  }
  
  .payment-methods {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .games-grid {
    gap: 1.5rem;
  }
  
  .game-category {
    padding: 1rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary: #ffff00;
    --paper: #ffffff;
    --ink: #000000;
  }
}

