/* ============================================
   WildlifeGame - Unique Social Casino Design
   ============================================ */

:root {
  /* Color Palette - Unique Western/Cowboy Theme */
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --primary-light: #ff8c5a;
  --secondary: #8b4c9f;
  --secondary-dark: #6b3a7a;
  --accent: #f4a261;
  --accent-dark: #e76f51;

  --bg-dark: #0a0e1a;
  --bg-darker: #050810;
  --bg-card: #1a1f2e;
  --bg-card-light: #242938;

  --text-primary: #ffffff;
  --text-secondary: #b8c5d6;
  --text-muted: #7a8a9f;

  --border-color: #2a3441;
  --border-light: #3a4451;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.4);
  --shadow-glow-strong: 0 0 50px rgba(255, 107, 53, 0.6);

  --gradient-primary: linear-gradient(
    135deg,
    #ff6b35 0%,
    #f4a261 50%,
    #ff9a52 100%
  );
  --gradient-secondary: linear-gradient(135deg, #8b4c9f 0%, #ff6b35 100%);
  --gradient-bg: linear-gradient(180deg, #0a0e1a 0%, #1a1f2e 50%, #0a0e1a 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-dark);
  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: radial-gradient(
      circle at 20% 50%,
      rgba(139, 76, 159, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 107, 53, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar {
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-image {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.3));
}

.logo:hover .logo-image {
  filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.5));
  transform: scale(1.05);
}

.footer-brand .logo-image {
  height: 45px;
  margin-bottom: 0.5rem;
}

.logo-icon {
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 30% 80%, white, transparent),
    radial-gradient(1px 1px at 90% 40%, white, transparent);
  background-size: 200% 200%;
  animation: stars 20s linear infinite;
  opacity: 0.6;
}

@keyframes stars {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("../images/bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.particles::before,
.particles::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  filter: blur(60px);
  animation: particle-float 8s ease-in-out infinite;
}

.particles::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particles::after {
  bottom: 20%;
  right: 10%;
  animation-delay: 4s;
}

@keyframes particle-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -50px) scale(1.2);
  }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-shadow: 0 0 40px rgba(255, 107, 53, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.2);
  }
}

.hero-subtitle {
  display: block;
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  color: var(--text-primary);
  margin-top: 0.5rem;
  font-weight: 700;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.45rem);
  color: white;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-muted);
  border-radius: 25px;
  position: relative;
}

.scroll-indicator::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    top: 10px;
    opacity: 1;
  }
  100% {
    top: 30px;
    opacity: 0;
  }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-small {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.btn-play {
  background: var(--gradient-primary);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(5px);
}

/* ============================================
   Sections
   ============================================ */

section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.title-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-accent-secondary {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================
   Games Grid
   ============================================ */

.top-games {
  background: var(--bg-darker);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.game-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-glow-strong);
  border-color: var(--primary);
}

.game-card:hover::before {
  opacity: 0.1;
}

.game-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

.game-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card:hover .game-image {
  transform: scale(1.15) rotate(2deg);
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-info {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.game-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================
   Free Play Section
   ============================================ */

.free-play {
  background: var(--gradient-bg);
  position: relative;
  overflow: hidden;
}

.free-play::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.free-play-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.free-play-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.free-play-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.free-play-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* ============================================
   Why Choose Section
   ============================================ */

.why-choose {
  background: var(--bg-card);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card-light);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 0.1;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--text-primary);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.feature-text {
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* ============================================
   Content Blocks
   ============================================ */

.content-block {
  padding: 100px 0;
}

.content-block-1 {
  background: var(--bg-darker);
}

.content-block-2 {
  background: var(--bg-card);
}

.content-block-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-block-wrapper.reverse {
  direction: rtl;
}

.content-block-wrapper.reverse > * {
  direction: ltr;
}

.content-block-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.content-block-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.content-block-image:hover::after {
  opacity: 0.2;
}

.block-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.content-block-image:hover .block-image {
  transform: scale(1.1);
}

.content-block-text {
  padding: 2rem;
}

.block-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.block-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ============================================
   About Section
   ============================================ */

.about {
  background: var(--gradient-bg);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 2rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact {
  list-style: none;
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer-contact a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   Modals
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(139, 76, 159, 0.3) 0%,
    rgba(0, 0, 0, 0.95) 70%
  );
  backdrop-filter: blur(15px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.modal-overlay::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.1) 0%,
    transparent 50%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: linear-gradient(
    135deg,
    rgba(26, 31, 46, 0.98) 0%,
    rgba(42, 52, 65, 0.98) 100%
  );
  border-radius: 25px;
  padding: 3.5rem;
  max-width: 520px;
  width: 90%;
  text-align: center;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 107, 53, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.1;
  border-radius: 25px;
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(1);
  }
  50% {
    opacity: 0.15;
    transform: scale(1.02);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: bounce 1.2s ease infinite,
    glow-icon 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.6));
  display: inline-block;
  transform-origin: center;
}

@keyframes glow-icon {
  from {
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.6)) brightness(1);
  }
  to {
    filter: drop-shadow(0 0 30px rgba(139, 76, 159, 0.8)) brightness(1.2);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.age-modal h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.age-modal p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 400;
}

.modal-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 1rem;
}

.modal-buttons .btn {
  min-width: 140px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.modal-buttons .btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.modal-buttons .btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ============================================
   Cookie Banner
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    135deg,
    rgba(26, 31, 46, 0.98) 0%,
    rgba(42, 52, 65, 0.98) 100%
  );
  border-radius: 15px;
  padding: 1.2rem 2rem;
  max-width: 90%;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 53, 0.15);
  border: 1px solid var(--border-color);
  z-index: 9999;
  animation: slideInUp 0.5s ease;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner.hidden {
  transform: translateX(-50%) translateY(150%);
  opacity: 0;
  pointer-events: none;
}

@keyframes slideInUp {
  from {
    transform: translateY(150%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-direction: row;
}

.cookie-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  animation: cookie-rotate 3s ease-in-out infinite;
}

@keyframes cookie-rotate {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(15deg) scale(1.1);
  }
}

.cookie-text {
  flex: 1;
  text-align: left;
}

.cookie-text h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  font-weight: 700;
}

.cookie-text p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 0;
  margin-right: 1rem;
}

.cookie-buttons {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.cookie-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.cookie-close:hover {
  color: var(--text-primary);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(
      135deg,
      rgba(26, 31, 46, 0.98) 0%,
      rgba(42, 52, 65, 0.98) 100%
    );
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 2rem 2rem;
    gap: 0;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--border-color);
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 1.2rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--primary);
    padding-left: 1rem;
    background: linear-gradient(
      90deg,
      rgba(255, 107, 53, 0.1) 0%,
      transparent 100%
    );
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .content-block-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-block-wrapper.reverse {
    direction: ltr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    transform: translateX(0);
    max-width: none;
    padding: 1rem 1.5rem;
  }

  .cookie-banner.hidden {
    transform: translateY(150%);
  }

  .cookie-content {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .cookie-text {
    flex: 1 1 100%;
    text-align: center;
  }

  .cookie-text p {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .cookie-buttons {
    flex: 1 1 100%;
    justify-content: center;
  }

  .modal-content {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .modal-buttons {
    flex-direction: column;
  }
}
