/* fanlabs.io — shared styles */

html, body { margin: 0; padding: 0; }
body {
  background: #0b1220;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }

.glass { background: rgba(23, 32, 51, 0.5); backdrop-filter: blur(12px); border: 1px solid rgba(139, 92, 246, 0.15); }
.gradient-text { background: linear-gradient(135deg, #c4b5fd 0%, #67e8f9 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gradient-bg { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }

.hero-glow {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
  top: -100px; right: -200px; pointer-events: none; z-index: 0;
}
.hero-glow-2 {
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, transparent 70%);
  bottom: -100px; left: -150px; pointer-events: none; z-index: 0;
}

.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, #8b5cf6, #22d3ee);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

[data-lang="de"] { display: none; }
body.lang-de [data-lang="en"] { display: none; }
body.lang-de [data-lang="de"] { display: revert; }
body.lang-de [data-lang-grid="en"] { display: none !important; }
body.lang-de [data-lang-grid="de"] { display: grid !important; }
body.lang-de [data-lang-flex="en"] { display: none !important; }
body.lang-de [data-lang-flex="de"] { display: flex !important; }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.card-tool { transition: transform 0.2s ease, border-color 0.2s ease; }
.card-tool:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.5); }

.pricing-card-recommended {
  position: relative;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.08) 100%);
  border: 2px solid #8b5cf6;
}
.pricing-card-recommended::before {
  content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%); padding: 4px 16px; border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
}
body.lang-de .pricing-card-recommended::before { content: 'AM BELIEBTESTEN'; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.6s ease-out forwards; }

/* Cookie banner */
#cookieBanner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 640px; margin: 0 auto;
  z-index: 60; padding: 16px 20px;
  background: rgba(15, 23, 41, 0.95); backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  display: flex; gap: 12px; align-items: center;
  font-size: 13px; color: #cbd5e1;
}
#cookieBanner.hidden { display: none; }
#cookieBanner .btn-accept {
  padding: 8px 16px; border-radius: 8px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white; font-weight: 600; font-size: 12px;
  border: none; cursor: pointer; flex-shrink: 0;
}
#cookieBanner .btn-decline {
  padding: 8px 12px; background: transparent;
  color: #94a3b8; font-size: 12px; border: none; cursor: pointer; flex-shrink: 0;
}

/* Mobile-first responsive helpers */
/* Hero glow scaled down on mobile so it doesn't overflow */
@media (max-width: 768px) {
  .hero-glow, .hero-glow-2 { width: 320px; height: 320px; }
  h1 { font-size: 2.25rem !important; line-height: 1.1; }
  h2 { font-size: 1.875rem !important; }
}

/* Smooth fade-in for mobile menu */
#mobileMenu:not(.hidden) {
  animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Better tap targets on mobile */
@media (max-width: 768px) {
  a, button { min-height: 40px; }
  .pill { padding: 6px 14px; font-size: 11px; }
}
