/* Circus Fantasy Slots Social Gaming - Main Stylesheet */

/* ==================== ROOT VARIABLES ==================== */
:root {
  --color-primary: #ffa500;
  --color-primary-glow: #ffbb33;
  --color-secondary: #00d4ff;
  --color-accent: #ff6b00;
  --color-bg-dark: #0a0a0f;
  --color-bg-darker: #050508;
  --color-bg-card: rgba(20, 20, 30, 0.8);
  --color-text-primary: #ffffff;
  --color-text-secondary: #b8b8c8;
  --color-border: rgba(255, 165, 0, 0.2);
  --color-border-hover: rgba(255, 165, 0, 0.6);

  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Arial Black', Arial, sans-serif;

  --transition-smooth: all 0.3s ease;
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  --shadow-glow: 0 0 20px rgba(255, 165, 0, 0.3);
  --shadow-glow-strong: 0 0 40px rgba(255, 165, 0, 0.6);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--color-bg-dark);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Animated cosmic background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 40% 20%, rgba(255, 107, 0, 0.06) 0%, transparent 50%);
  z-index: -1;
  animation: cosmicPulse 15s ease-in-out infinite;
}

@keyframes cosmicPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Floating particles */
.cosmic-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: floatParticle 20s infinite linear;
  box-shadow: 0 0 10px var(--color-primary);
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100vh) translateX(100px) rotate(360deg); opacity: 0; }
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-shadow: 0 0 30px rgba(255, 165, 0, 0.5);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-primary-glow);
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.header.scrolled {
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-primary);
  text-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: var(--shadow-glow-strong);
}

.logo-icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 10px var(--color-primary));
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--color-text-primary);
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
  box-shadow: var(--shadow-glow);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.age-badge {
  background: var(--color-accent);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
  box-shadow: 0 0 5px var(--color-primary);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(255, 165, 0, 0.4);
}

.btn-primary::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-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 165, 0, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.2);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 165, 0, 0.5);
}

/* ==================== CONTAINER & LAYOUT ==================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

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

.section-title {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* ==================== HERO SECTION ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  animation: fadeInLeft 1s ease-out;
}

.hero-title {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  animation: fadeInRight 1s ease-out;
}

.hero-image img {
  width: 100%;
  max-width: 600px;
  filter: drop-shadow(0 0 40px rgba(255, 165, 0, 0.4));
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

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

/* ==================== GAME CARDS ==================== */
.games-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.game-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  max-width: 500px;
  width: 100%;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 1;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-border-hover);
  box-shadow: 0 20px 40px rgba(255, 165, 0, 0.2);
}

.game-card:hover::before {
  opacity: 1;
}

.game-image {
  width: 100%;
  height: 300px;
  object-fit: contain;
  transition: var(--transition-smooth);
  background: rgba(0, 0, 0, 0.2);
}

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

.game-info {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.game-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.game-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.game-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 165, 0, 0.2);
  color: var(--color-primary);
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
}

/* ==================== FEATURES SECTION ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 165, 0, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  filter: drop-shadow(0 0 10px var(--color-primary));
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.feature-description {
  color: var(--color-text-secondary);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--color-bg-darker);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1.5rem;
  margin-top: 6rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--color-text-secondary);
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.footer-disclaimer {
  max-width: 900px;
  margin: 0 auto 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(20, 20, 30, 0.98);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--color-border);
  padding: 1.5rem 2rem;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text p {
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-small {
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
}

/* ==================== CONTENT PAGES ==================== */
.content-page {
  padding-top: 120px;
  min-height: 100vh;
}

.content-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, transparent 100%);
  border-radius: 20px;
}

.content-body {
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 3rem;
  line-height: 1.8;
}

.content-body h2 {
  color: var(--color-primary);
  margin: 2rem 0 1rem;
  font-size: 2rem;
}

.content-body h3 {
  color: var(--color-primary-glow);
  margin: 1.5rem 0 0.75rem;
  font-size: 1.5rem;
}

.content-body ul, .content-body ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

.content-body li {
  margin-bottom: 0.5rem;
}

.content-body strong {
  color: var(--color-primary);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    transition: left 0.3s ease;
    border-right: 1px solid var(--color-border);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image img {
    max-width: 400px;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .content-body {
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .nav-container {
    padding: 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
    width: 100%;
  }

  .hero-image img {
    max-width: 300px;
  }

  .content-body {
    padding: 1.5rem;
  }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.glow-text {
  text-shadow: 0 0 20px currentColor;
}

.hidden {
  display: none;
}

/* ==================== ANIMATIONS ==================== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 3s linear infinite;
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
