/* RankUp – Custom styles on top of Tailwind */

:root {
  --brand: #E60000;
  --brand-hover: #cc0000;
  --dark: #0a0a0a;
  --dark-2: #141414;
  --gold: #D4AF37;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }

/* Navbar */
#navbar { transition: background-color 220ms ease, box-shadow 220ms ease; }
#navbar.scrolled { box-shadow: 0 4px 24px -8px rgba(0,0,0,0.12); }

/* Language switcher */
.lang-btn {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.45rem 0.55rem;
  text-transform: uppercase;
  transition: all 180ms ease;
  background: transparent;
  cursor: pointer;
}
.lang-btn:hover { border-color: #9ca3af; color: #111827; }
.lang-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(230,0,0,0.28);
}

/* Hero video */
.hero-video-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.85) 60%, #f9fafb 100%);
  z-index: 1;
}
.hero-overlay-dark {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 60%, rgba(10,10,10,1) 100%);
  z-index: 1;
}

/* Cinematic (dark) */
.cinematic {
  background: var(--dark);
  color: #f5f5f5;
}
.cinematic .text-muted { color: #9a9a9a; }

/* Video cards (reels portfolio) */
.reel-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 1rem;
  overflow: hidden;
  background: #111;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.reel-card:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 30px 80px -20px rgba(230,0,0,0.4); }
.reel-card video { width: 100%; height: 100%; object-fit: cover; }
.reel-card .reel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem; color: #fff;
  pointer-events: none;
}

/* Ticker for reels showcase */
.reel-ticker {
  display: flex; gap: 1.25rem;
  animation: reelScroll 40s linear infinite;
  width: max-content;
}
@keyframes reelScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.reel-ticker:hover { animation-play-state: paused; }

/* Bundle builder */
.bundle-option {
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 200ms ease;
  background: #fff;
}
.bundle-option:hover { border-color: #9ca3af; }
.bundle-option.selected {
  border-color: var(--brand);
  box-shadow: 0 8px 24px -8px rgba(230,0,0,0.35);
  background: #fff5f5;
}
.bundle-option input { accent-color: var(--brand); }

/* Price card highlight */
.price-card {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fff;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px rgba(0,0,0,0.15); }
.price-card.featured { border-color: var(--brand); box-shadow: 0 20px 40px -12px rgba(230,0,0,0.3); }

/* Vorher / Nachher */
.vs-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* CTAs */
.btn-brand {
  background: var(--brand); color: #fff; font-weight: 700;
  padding: 0.9rem 1.6rem; border-radius: 0.5rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background 150ms ease, transform 150ms ease;
}
.btn-brand:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-outline-dark {
  border: 2px solid #fff; color: #fff;
  padding: 0.85rem 1.55rem; border-radius: 0.5rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 150ms ease;
}
.btn-outline-dark:hover { background: #fff; color: #0a0a0a; }

/* Pulse ring on primary CTA */
.pulse-ring { position: relative; }
.pulse-ring::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(230,0,0,0.6);
  animation: pulseRing 2s infinite;
  pointer-events: none;
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(230,0,0,0.55); }
  70%  { box-shadow: 0 0 0 18px rgba(230,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,0,0,0); }
}

/* Ranking demo */
.rank-row { transition: background 400ms ease, color 400ms ease, transform 400ms ease; }
.rank-row.pos-top { background: #ecfdf5; color: #065f46; font-weight: 700; transform: scale(1.02); }
.rank-row.pos-mid { background: #fffbeb; color: #92400e; }
.rank-row.pos-low { color: #6b7280; }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reel-ticker { animation: none; }
  .pulse-ring::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
