@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --radius: 0.875rem;
  --background: #faf9f6;
  --foreground: #0d131a;
  --card: #ffffff;
  --card-foreground: #0d131a;
  --popover: #ffffff;
  --popover-foreground: #0d131a;
  --primary: #07111b;
  --primary-foreground: #ffffff;
  --secondary: #f0eee8;
  --secondary-foreground: #0d131a;
  --muted: #f0eee8;
  --muted-foreground: #616a75;
  --accent: #f0eee8;
  --accent-foreground: #0d131a;
  --destructive: #dd0000;
  --destructive-foreground: #ffffff;
  --border: #e2dfd7;
  --input: #e2dfd7;
  --ring: #ffce00;

  /* German palette */
  --navy: #07111b;
  --navy-soft: #131f2c;
  --navy-foreground: #f7f7f6;
  --de-red: #dd0000;
  --de-black: #0a0a0a;
  --paper: #ffffff;
  --gold: #ffce00;
  --gold-foreground: #07111b;
  --cream: #faf8f5;

  /* CEFR Level Colors */
  --level-a1: #10b981;
  --level-a2: #0ea5e9;
  --level-b1: #f59e0b;
  --level-b2: #dc2626;

  /* Gradients & Shadows */
  --gradient-hero: linear-gradient(0deg, rgba(7, 17, 27, 0.8) 0%, transparent 45%), linear-gradient(90deg, rgba(7, 17, 27, 0.88) 0%, rgba(7, 17, 27, 0.55) 50%, rgba(7, 17, 27, 0.15) 100%);
  --gradient-side: linear-gradient(90deg, rgba(7, 17, 27, 0.9) 0%, rgba(7, 17, 27, 0.7) 50%, rgba(7, 17, 27, 0.45) 100%);
  --gradient-dark: linear-gradient(180deg, rgba(7, 17, 27, 0.75), rgba(7, 17, 27, 0.92));
  --shadow-card: 0 1px 2px rgba(7, 17, 27, 0.05), 0 12px 32px -12px rgba(7, 17, 27, 0.18);
  --shadow-gold: 0 10px 30px -10px rgba(255, 206, 0, 0.55);
}

html {
  scroll-behavior: smooth;
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-script {
  font-family: 'Caveat', cursive;
}

/* Colors */
.bg-navy { background-color: var(--navy) !important; }
.bg-navy-soft { background-color: var(--navy-soft) !important; }
.text-navy { color: var(--navy) !important; }
.text-navy-foreground { color: var(--navy-foreground) !important; }
.border-navy { border-color: var(--navy) !important; }

.bg-gold { background-color: var(--gold) !important; }
.text-gold { color: var(--gold) !important; }
.text-gold-foreground { color: var(--gold-foreground) !important; }
.border-gold { border-color: var(--gold) !important; }

.bg-de-red { background-color: var(--de-red) !important; }
.text-de-red { color: var(--de-red) !important; }
.border-de-red { border-color: var(--de-red) !important; }

.bg-de-black { background-color: var(--de-black) !important; }

.bg-paper { background-color: var(--paper) !important; }
.bg-cream { background-color: var(--cream) !important; }

/* CEFR level badges */
.bg-level-a1 { background-color: var(--level-a1) !important; color: #ffffff !important; }
.bg-level-a2 { background-color: var(--level-a2) !important; color: #ffffff !important; }
.bg-level-b1 { background-color: var(--level-b1) !important; color: #ffffff !important; }
.bg-level-b2 { background-color: var(--level-b2) !important; color: #ffffff !important; }
.text-level-a1 { color: var(--level-a1) !important; }
.text-level-a2 { color: var(--level-a2) !important; }
.text-level-b1 { color: var(--level-b1) !important; }
.text-level-b2 { color: var(--level-b2) !important; }

/* Gradients */
.bg-hero-overlay { background-image: var(--gradient-hero) !important; }
.bg-dark-overlay { background-image: var(--gradient-dark) !important; }
.bg-side-overlay { background-image: var(--gradient-side) !important; }

/* German Flag Elements */
.flag-bar {
  background: linear-gradient(90deg, #0a0a0a 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%) !important;
}

.flag-v {
  background: linear-gradient(180deg, #0a0a0a 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%) !important;
}

.flag-ribbon {
  background: linear-gradient(135deg, var(--navy) 0 33.33%, var(--de-red) 33.33% 66.66%, var(--gold) 66.66% 100%) !important;
}

.fill-de-black { fill: #0a0a0a !important; }
.fill-de-red { fill: #dd0000 !important; }
.fill-gold { fill: #ffce00 !important; }

/* Elevation Shadows */
.shadow-card {
  box-shadow: var(--shadow-card) !important;
}

.shadow-gold {
  box-shadow: var(--shadow-gold) !important;
}

/* Scrollbar Utility */
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Scroll Animation */
.reveal.will-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Button Component Classes */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  background-color: var(--gold);
  color: var(--gold-foreground);
  box-shadow: var(--shadow-gold);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
  line-height: 1.25;
}
.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid rgba(247, 247, 246, 0.4);
  color: var(--navy-foreground);
  transition: all 0.3s ease;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  line-height: 1.25;
}
.btn-ghost-light:hover {
  background-color: rgba(247, 247, 246, 0.1);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  background-color: var(--navy);
  color: var(--navy-foreground);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
  line-height: 1.25;
}
.btn-dark:hover {
  background-color: var(--navy-soft);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid rgba(13, 19, 26, 0.2);
  color: var(--foreground);
  transition: all 0.3s ease;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  line-height: 1.25;
}
.btn-outline:hover {
  border-color: var(--foreground);
  background-color: rgba(13, 19, 26, 0.05);
}
