/* ═══════════════════════════════════════════════════════════════════════════
   QUACKBYTE STUDIOS — BOLD, BIG, EXPRESSIVE
   A duck-themed game studio that means business
   ═══════════════════════════════════════════════════════════════════════════ */

/* 🎨 COLOR SYSTEM */
:root {
  /* Core */
  --bg-deep: #0a0a0f;
  --bg: #12121a;
  --bg-elevated: #1a1a26;
  
  /* Brand */
  --duck-yellow: #fbbf24;
  --duck-orange: #f97316;
  --duck-gold: #eab308;
  
  /* Accents */
  --accent-cyan: #22d3ee;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  
  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* UI */
  --border: #2e2e3a;
  --border-bright: #404052;
  --glow-yellow: rgba(251, 191, 36, 0.3);
  --glow-cyan: rgba(34, 211, 238, 0.2);
}

/* 🌐 GLOBAL STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 📦 LAYOUT */
.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

/* 🔝 TOPBAR */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(20px, 5vw, 80px);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand::before {
  content: '🦆';
  font-size: 24px;
  filter: drop-shadow(0 0 10px var(--duck-yellow));
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s, transform 0.2s;
}

nav a:hover {
  color: var(--duck-yellow);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   🌟 HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.hero-epic {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 20px 80px;
}

/* Animated background grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(251, 191, 36, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 191, 36, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridMove 20s linear infinite;
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(2px 2px at 20% 30%, var(--duck-yellow), transparent),
    radial-gradient(2px 2px at 80% 20%, var(--accent-cyan), transparent),
    radial-gradient(3px 3px at 60% 80%, var(--accent-purple), transparent),
    radial-gradient(2px 2px at 40% 60%, var(--duck-orange), transparent),
    radial-gradient(4px 4px at 90% 50%, var(--duck-gold), transparent);
  background-repeat: repeat;
  background-size: 300px 300px;
  animation: particleFloat 30s linear infinite;
  opacity: 0.6;
}

/* Giant duck silhouette */
.duck-silhouette {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(251, 191, 36, 0.05), transparent 60%);
  border-radius: 50%;
  filter: blur(60px);
}

/* Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
  animation: fadeSlideDown 0.8s ease-out;
}

.badge-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 8px var(--duck-yellow));
}

.badge-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--duck-yellow);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  animation: fadeSlideDown 0.8s ease-out 0.1s both;
}

.title-line {
  font-size: clamp(48px, 12vw, 120px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -4px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line.accent {
  background: linear-gradient(135deg, var(--duck-yellow) 0%, var(--duck-orange) 50%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px var(--glow-yellow);
}

.hero-tagline {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hero-tagline strong {
  color: var(--duck-yellow);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeSlideDown 0.8s ease-out 0.2s both;
}

/* CTAs */
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeSlideDown 0.8s ease-out 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--duck-yellow) 0%, var(--duck-orange) 100%);
  color: #0a0a0f;
  padding: 18px 36px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 
    0 4px 20px var(--glow-yellow),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 8px 40px var(--glow-yellow),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  padding: 18px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--border);
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--duck-yellow);
  color: var(--duck-yellow);
  transform: translateY(-2px);
}

/* Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  animation: fadeSlideDown 0.8s ease-out 0.4s both;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 2px;
  animation: fadeSlideDown 0.8s ease-out 0.6s both;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   🎮 GAMES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.section-games {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  position: relative;
}

.section-games::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--duck-yellow), transparent);
  opacity: 0.3;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.header-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.label-icon {
  font-size: 16px;
}

.section-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Game Cards */
.games-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border-color: var(--duck-yellow);
}

.game-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.play-icon {
  font-size: 48px;
  color: var(--text-primary);
  text-shadow: 0 0 20px var(--duck-yellow);
}

.game-info {
  padding: 24px;
}

.game-badge {
  display: inline-block;
  margin-bottom: 12px;
}

.price-tag {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  color: #0a0a0f;
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 14px;
}

.game-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.game-desc {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.game-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--duck-yellow);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  transition: gap 0.2s;
}

.game-link:hover {
  gap: 12px;
}

.section-footer {
  text-align: center;
  margin-top: 48px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  padding: 16px 32px;
  border: 2px solid var(--border-bright);
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--duck-yellow);
  color: var(--duck-yellow);
  transform: translateY(-2px);
}

.btn-count {
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   📖 ABOUT SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.section-about {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 50%, rgba(251, 191, 36, 0.05), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(168, 85, 247, 0.05), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content {
  position: relative;
  z-index: 10;
}

.about-text {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}

.about-text strong {
  color: var(--duck-yellow);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value {
  text-align: center;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.2s, border-color 0.2s;
}

.value:hover {
  transform: translateY(-4px);
  border-color: var(--duck-yellow);
}

.value-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.value h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.value p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Visual side */
.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.duck-logo-large {
  font-size: 200px;
  filter: drop-shadow(0 0 60px var(--glow-yellow));
  animation: duckFloat 4s ease-in-out infinite;
}

.brand-name {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--duck-yellow), var(--duck-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 8px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   📝 BLOG SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.section-blog {
  padding: 120px 0;
  background: var(--bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.3s, border-color 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
}

.blog-card-header {
  margin-bottom: 16px;
}

.blog-category {
  display: inline-block;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-purple);
  text-transform: uppercase;
}

.blog-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.blog-excerpt {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-purple);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  transition: gap 0.2s;
}

.blog-link:hover {
  gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   🚀 CTA SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.section-cta {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg) 0%, #1a1520 50%, var(--bg) 100%);
}

.cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(251, 191, 36, 0.1), transparent);
}

.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.cta-text {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-large {
  padding: 20px 40px;
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   📋 FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 48px 20px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  font-size: 32px;
  filter: drop-shadow(0 0 12px var(--glow-yellow));
}

.footer-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--duck-yellow);
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   🎭 ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

@keyframes particleFloat {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-300px, -300px); }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(10px) rotate(45deg); }
}

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

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-20deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   📱 RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-values {
    grid-template-columns: 1fr;
  }
  
  .duck-logo-large {
    font-size: 120px;
  }
}

@media (max-width: 768px) {
  nav {
    gap: 16px;
  }
  
  nav a {
    font-size: 12px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  
  .stat-divider {
    display: none;
  }
  
  .title-line {
    letter-spacing: -2px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEGACY SUPPORT (existing pages)
   ═══════════════════════════════════════════════════════════════════════════ */
.container { max-width: 1400px; margin: 0 auto; padding: 24px 20px; }
.card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.muted { color: var(--text-muted); }

/* Form styles */
input, textarea, select {
  width: 100%;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 16px;
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--duck-yellow);
}

label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 600;
  color: var(--text-secondary);
}

button {
  background: linear-gradient(135deg, var(--duck-yellow), var(--duck-orange));
  color: #0a0a0f;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--glow-yellow);
}

/* Price display */
.price { color: var(--duck-yellow); font-weight: 800; font-size: 18px; }

/* Footer class for legacy */
.footer { padding: 48px 20px; color: var(--text-muted); text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════════
   📄 ADDITIONAL PAGE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Small hero variant */
.hero-small {
  min-height: 50vh;
  padding: 140px 20px 80px;
}

.hero-small .hero-title {
  font-size: clamp(32px, 8vw, 72px);
}

/* Profile hero - compact */
.hero-profile {
  min-height: auto;
  padding: 140px 20px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-profile .hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-title-small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-title-small .title-line {
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 900;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: -1px;
}

.title-accent {
  font-size: clamp(28px, 5vw, 52px);
  animation: wave 1s ease-in-out infinite;
}

.hero-profile .hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
}

/* Search form */
.section-search {
  padding: 40px 0;
  background: var(--bg-deep);
}

.search-form {
  max-width: 600px;
  margin: 0 auto;
}

.search-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: 100px;
  padding: 8px 8px 8px 24px;
  transition: border-color 0.2s;
}

.search-wrapper:focus-within {
  border-color: var(--duck-yellow);
}

.search-icon {
  font-size: 20px;
}

.search-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 16px;
  color: var(--text-primary);
}

.search-wrapper input:focus {
  outline: none;
}

.search-wrapper input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
}

.search-clear:hover {
  color: var(--duck-yellow);
}

.search-btn {
  background: linear-gradient(135deg, var(--duck-yellow), var(--duck-orange));
  color: #0a0a0f;
  border: none;
  border-radius: 100px;
  padding: 12px 24px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s;
}

.search-btn:hover {
  transform: scale(1.05);
}

/* Games list */
.section-games-list {
  padding: 60px 0 120px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 80px;
  margin-bottom: 24px;
}

.empty-state h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.empty-state a {
  color: var(--duck-yellow);
}

/* Blog posts grid */
.section-blog-posts {
  padding: 60px 0 120px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.3s, border-color 0.3s;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.post-category {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-purple);
  text-transform: uppercase;
}

.post-date {
  color: var(--text-muted);
  font-size: 13px;
}

.post-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.3;
}

.post-excerpt {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.post-footer {
  margin-top: auto;
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-purple);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  transition: gap 0.2s;
}

.post-link:hover {
  gap: 12px;
}

/* Cart styles */
.section-cart {
  padding: 60px 0 120px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.cart-item-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.cart-item-price {
  color: var(--duck-yellow);
  font-weight: 800;
  font-size: 16px;
}

.cart-item-remove {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

.cart-item-remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(249, 115, 22, 0.1));
  border: 1px solid var(--duck-yellow);
  border-radius: 16px;
}

.cart-total {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-total span:first-child {
  color: var(--text-muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.total-price {
  font-size: 32px;
  font-weight: 900;
  color: var(--duck-yellow);
}

/* Profile styles */
.section-profile {
  padding: 60px 0 120px;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
}

.profile-stat {
  text-align: center;
  padding: 24px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-width: 120px;
}

.profile-stat .stat-num {
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: var(--duck-yellow);
}

.profile-stat .stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.profile-section {
  margin-bottom: 48px;
}

.profile-section .section-header {
  margin-bottom: 24px;
}

.profile-section h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.orders-table-wrapper {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  border-radius: 16px;
  overflow: hidden;
}

.orders-table th,
.orders-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.orders-table th {
  background: var(--bg);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

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

.order-id {
  font-weight: 700;
  color: var(--accent-cyan);
}

.order-price {
  font-weight: 800;
  color: var(--duck-yellow);
}

.order-date {
  color: var(--text-secondary);
}

.order-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}

.order-status-complete {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
}

.profile-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

/* Responsive */
@media (max-width: 768px) {
  .search-wrapper {
    flex-direction: column;
    border-radius: 16px;
    padding: 16px;
    gap: 12px;
  }
  
  .search-wrapper input {
    width: 100%;
    text-align: center;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-stats {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .cart-summary {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
