/* ===================================
   RoyalSpin Casino - CSS Stylesheet
   ================================== */

/* CSS Variables (Design Tokens) */
:root {
  /* Colors - Dark Casino Theme */
  --background: hsl(240 10% 4%);
  --foreground: hsl(0 0% 95%);
  --card: hsl(240 10% 8%);
  --card-foreground: hsl(0 0% 95%);
  --primary: hsl(43 96% 56%);
  --primary-foreground: hsl(240 10% 4%);
  --secondary: hsl(240 10% 14%);
  --muted: hsl(240 10% 14%);
  --muted-foreground: hsl(240 5% 55%);
  --accent: hsl(0 72% 51%);
  --accent-foreground: hsl(0 0% 95%);
  --destructive: hsl(0 72% 51%);
  --border: hsl(240 10% 18%);
  
  /* Sizing */
  --radius: 0.75rem;
  --container-max: 1280px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.text-primary {
  color: var(--primary);
}

.hidden {
  display: none !important;
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  color: var(--foreground);
}

.btn-cta {
  background: linear-gradient(135deg, var(--primary), hsl(35 90% 45%));
  color: var(--primary-foreground);
  font-weight: 600;
  box-shadow: 0 4px 20px hsla(43, 96%, 56%, 0.3);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px hsla(43, 96%, 56%, 0.4);
}

.btn-hero {
  background: linear-gradient(135deg, var(--primary), hsl(35 90% 50%));
  color: var(--primary-foreground);
  font-size: 1.125rem;
  font-weight: 700;
  padding: 1.25rem 2.5rem;
  border-radius: 9999px;
  box-shadow: 0 0 40px hsla(43, 96%, 56%, 0.4),
              0 0 80px hsla(43, 96%, 56%, 0.2);
}

.btn-hero:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px hsla(43, 96%, 56%, 0.5),
              0 0 100px hsla(43, 96%, 56%, 0.3);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsla(240 10% 4% / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.navbar-container {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), hsla(43, 96%, 56%, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-buttons {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--foreground);
  cursor: pointer;
}

.mobile-menu {
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.open {
  max-height: 24rem;
  opacity: 1;
}

.mobile-menu .container {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  color: var(--muted-foreground);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--primary);
}

.mobile-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.mobile-menu-buttons .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .nav-buttons {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none;
  }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--background), var(--background), var(--card));
}

.hero-glow-1 {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: hsla(43, 96%, 56%, 0.2);
  border-radius: 50%;
  filter: blur(80px);
}

.hero-glow-2 {
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 200px;
  height: 200px;
  background: hsla(0, 72%, 51%, 0.1);
  border-radius: 50%;
  filter: blur(60px);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
}

.hero-image {
  position: relative;
  max-width: 20rem;
  margin: 0 auto 1.5rem;
  animation: float 6s ease-in-out infinite;
}

.hero-image-glow {
  position: absolute;
  inset: 0;
  background: hsla(43, 96%, 56%, 0.3);
  border-radius: 50%;
  filter: blur(48px);
  transform: scale(0.75);
}

.hero-image img {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.5));
}

.hero h1 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.trust-badges {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: hsla(240, 5%, 55%, 0.6);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.trust-badge svg {
  width: 1rem;
  height: 1rem;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@media (min-width: 768px) {
  .hero-glow-1 {
    width: 600px;
    height: 600px;
    filter: blur(120px);
  }

  .hero-glow-2 {
    width: 400px;
    height: 400px;
    filter: blur(100px);
  }

  .hero-image {
    max-width: 32rem;
    margin-bottom: 2rem;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }

  .trust-badges {
    margin-top: 3rem;
    gap: 2rem;
  }

  .trust-badge {
    font-size: 0.875rem;
  }

  .trust-badge svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

/* ===================================
   Games Section
   =================================== */
.games-section {
  padding: 6rem 0;
  background: var(--card);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.game-card {
  position: relative;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-card:hover {
  border-color: hsla(43, 96%, 56%, 0.5);
}

.game-card:hover .game-icon {
  transform: scale(1.1);
}

.game-card:hover h3 {
  color: var(--primary);
}

.game-card:hover .card-accent {
  transform: scaleX(1);
}

.hot-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--destructive);
  color: var(--accent-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

.game-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.game-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.game-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header h2 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================
   Content Section
   =================================== */
.content-section {
  padding: 4rem 0;
  background: var(--background);
}

.article {
  max-width: 56rem;
  margin: 0 auto;
}

.article > h2 {
  font-size: 1.875rem;
  text-align: center;
  margin-bottom: 2rem;
}

.article-content {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h3 {
  color: var(--foreground);
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .content-section {
    padding: 6rem 0;
  }

  .article > h2 {
    font-size: 2.25rem;
  }

  .article-content h3 {
    font-size: 1.5rem;
  }
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.responsible-gambling {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.gambling-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.age-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 4px solid var(--destructive);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--destructive);
  font-weight: 700;
  font-size: 1.125rem;
}

.icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
}

.gambling-text {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  max-width: 42rem;
}

.gambling-text a {
  color: var(--primary);
  transition: text-decoration 0.2s;
}

.gambling-text a:hover {
  text-decoration: underline;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.copyright p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer {
    padding: 3rem 0;
  }

  .responsible-gambling {
    margin-bottom: 3rem;
  }

  .gambling-icons {
    gap: 1.5rem;
  }

  .age-badge {
    width: 4rem;
    height: 4rem;
    font-size: 1.25rem;
  }

  .footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
}