/* ═══════════════════════════════════════════════════════════════════
   Flvto — YouTube Video Downloader — Global Theme
   Primary:   #dc2626 (red-600)
   Secondary: #ea580c (orange-600)
   Accent:    #f59e0b (amber-500)
   ═══════════════════════════════════════════════════════════════════ */

/* Google Font — Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  border-color: #e5e7eb;
}

body {
  background-color: #ffffff;
  color: #111827;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: "rlig" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* ── Brand Gradient ──────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Glass Effect ─────────────────────────────────────────────────── */
.glass-effect {
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ── Primary Button ────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: white;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.30), 0 2px 8px rgba(220, 38, 38, 0.15);
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b91c1c, #c2410c);
  box-shadow: 0 16px 36px rgba(220, 38, 38, 0.40), 0 4px 12px rgba(220, 38, 38, 0.20);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

/* ── Secondary Button ──────────────────────────────────────────────── */
.btn-secondary {
  background-color: white;
  color: #374151;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: #fca5a5;
  color: #dc2626;
  background-color: #fef2f2;
}

/* ── Utilities ─────────────────────────────────────────────────────── */
.text-balance {
  text-wrap: balance;
}

/* ── Animations ────────────────────────────────────────────────────── */
@keyframes progress {
  0%   { width: 0%; }
  50%  { width: 70%; }
  100% { width: 100%; }
}

@keyframes slideInFromLeft {
  0%   { transform: translateX(-100%); opacity: 0; }
  100% { transform: translateX(0);     opacity: 1; }
}

@keyframes slideInFromRight {
  0%   { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0);    opacity: 1; }
}

@keyframes fadeInUp {
  0%   { transform: translateY(24px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

@keyframes pulseSlow {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

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

/* ── Animation Classes ─────────────────────────────────────────────── */
.animate-slide-in-left  { animation: slideInFromLeft  0.35s ease-out; }
.animate-slide-in-right { animation: slideInFromRight 0.35s ease-out; }
.animate-fade-in-up     { animation: fadeInUp         0.45s ease-out; }
.animate-pulse-slow     { animation: pulseSlow 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-float          { animation: float 3s ease-in-out infinite; }

/* ── Download Button State ─────────────────────────────────────────── */
#download-submit-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Scrollbar ─────────────────────────────────────────────────────── */
::-webkit-scrollbar              { width: 6px; }
::-webkit-scrollbar-track        { background: rgba(0,0,0,0.04); }
::-webkit-scrollbar-thumb        { background: rgba(220,38,38,0.55); border-radius: 999px; backdrop-filter: blur(8px); }
::-webkit-scrollbar-thumb:hover  { background: rgba(234,88,12,0.80); }

/* ── FAQ Accordion ─────────────────────────────────────────────────── */
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-item.open .faq-answer {
  max-height: 400px !important;
  opacity: 1 !important;
}

/* ── Prose Styles ──────────────────────────────────────────────────── */
.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p {
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ── Hero Decorative Blobs ─────────────────────────────────────────── */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
}

/* ── Card Hover Lift ───────────────────────────────────────────────── */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10);
}

/* ── Active/Inactive type tabs ─────────────────────────────────────── */
.active-type {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.30);
  transform: scale(1.04);
}

.inactive-type {
  background-color: #ffffff;
  color: #374151;
  border-color: #e5e7eb;
}

/* ── Download Results Styling ──────────────────────────────────────── */
.download-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #fee2e2;
  box-shadow: 0 4px 24px rgba(220, 38, 38, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.download-card:hover {
  box-shadow: 0 8px 32px rgba(220, 38, 38, 0.14);
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: white;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.download-link:hover {
  background: linear-gradient(135deg, #b91c1c, #c2410c);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

/* ── Responsive Nav Link Underline ─────────────────────────────────── */
.nav-link {
  position: relative;
  color: #374151;
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #dc2626, #ea580c);
  border-radius: 1px;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #dc2626;
}

.nav-link:hover::after {
  width: 100%;
}