/* ===========================================
   MOBILENS REJSE - Design System
   Naturgeografi C, 8 Lektioner
   =========================================== */

/* CSS Custom Properties (Design Tokens) */
:root {
  /* Primære farver - Naturlige toner fra saltbassiner */
  --color-primary: #4a9e96;
  /* Turkis/teal - naturligt vand */
  --color-primary-dark: #3d8880;
  --color-primary-light: #6bb8b0;

  --color-secondary: #c49a82;
  /* Terracotta - varm jord */
  --color-secondary-dark: #a8806a;
  --color-secondary-light: #d4b4a0;

  --color-accent: #7a9e8a;
  /* Dæmpet grøn - naturlig vegetation */
  --color-accent-dark: #5f8570;
  --color-accent-light: #9bbaa8;

  --color-warning: #c9a857;
  /* Varm okker - naturlig */
  --color-warning-light: #f5edd8;

  --color-gray: #6b7280;
  /* Neutral grå */
  --color-gray-light: #f3f4f6;

  /* Baggrund og tekst */
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-text-inverse: #ffffff;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ===========================================
   Reset & Base Styles
   =========================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

/* Overlay for læsbarhed - basis med blur */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(248, 250, 252, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: -1;
  pointer-events: none;
}

/* Stop-specifikke baggrunds-overlays - mørkere version med blur */
body.stop-1::before {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.40) 0%, rgba(37, 99, 235, 0.25) 50%, rgba(248, 250, 252, 0.50) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.stop-2::before {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.40) 0%, rgba(71, 85, 105, 0.25) 50%, rgba(248, 250, 252, 0.50) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.stop-3::before {
  background: linear-gradient(135deg, rgba(139, 69, 87, 0.40) 0%, rgba(166, 93, 106, 0.25) 50%, rgba(248, 250, 252, 0.50) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.stop-4::before {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.40) 0%, rgba(59, 130, 246, 0.25) 50%, rgba(248, 250, 252, 0.50) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.stop-5::before {
  background: linear-gradient(135deg, rgba(124, 45, 18, 0.40) 0%, rgba(234, 88, 12, 0.25) 50%, rgba(248, 250, 252, 0.50) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.stop-6::before {
  background: linear-gradient(135deg, rgba(113, 63, 18, 0.40) 0%, rgba(161, 98, 7, 0.25) 50%, rgba(248, 250, 252, 0.50) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.stop-7::before {
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.40) 0%, rgba(124, 58, 237, 0.25) 50%, rgba(248, 250, 252, 0.50) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.stop-8::before {
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.40) 0%, rgba(22, 163, 74, 0.25) 50%, rgba(248, 250, 252, 0.50) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.homework::before {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.35) 0%, rgba(234, 88, 12, 0.22) 50%, rgba(248, 250, 252, 0.50) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ===========================================
   Typography
   =========================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-md);
}

h4 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
}

ul,
ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-xl);
}

li {
  margin-bottom: var(--spacing-xs);
}

strong {
  font-weight: 600;
}

/* ===========================================
   Layout Components
   =========================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container--narrow {
  max-width: 1000px;
}

.container--wide {
  max-width: 1200px;
  /* Samme som header-container */
}

/* To-kolonne layout til tekst + illustration */
.content-with-figure {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

@media (min-width: 900px) {
  .content-with-figure {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .content-with-figure--reverse {
    grid-template-columns: 1fr 1fr;
  }

  .content-with-figure--reverse .content-text {
    order: 2;
  }

  .content-with-figure--reverse .content-figure {
    order: 1;
  }
}

.content-text {
  /* Tekstindhold */
}

.content-figure {
  position: sticky;
  top: var(--spacing-xl);
}

.content-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.content-figure figcaption {
  margin-top: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  text-align: center;
}

/* ===========================================
   Header & Navigation
   =========================================== */

.site-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: var(--color-text-inverse);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

/* Header med baggrundsbillede */
.site-header--hero {
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-2xl) 0;
  background-size: cover;
  background-position: center;
}

/* Fallback gradienter for hvert stop (bruges når billeder mangler) */
.site-header--stop1 {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #0ea5e9 100%);
}

.site-header--stop2 {
  background: linear-gradient(135deg, #1e293b 0%, #475569 50%, #64748b 100%);
}

.site-header--stop3 {
  background: linear-gradient(135deg, #831843 0%, #ec4899 50%, #f472b6 100%);
}

.site-header--stop4 {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
}

.site-header--stop5 {
  background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #f97316 100%);
}

.site-header--stop6 {
  background: linear-gradient(135deg, #713f12 0%, #a16207 50%, #ca8a04 100%);
}

.site-header--stop7 {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #a78bfa 100%);
}

.site-header--stop8 {
  background: linear-gradient(135deg, #14532d 0%, #16a34a 50%, #4ade80 100%);
}

/* Når billeder tilføjes, brug disse klasser */
.site-header--hero.has-image {
  background-size: cover;
  background-position: center;
}

.site-header--hero.has-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      rgba(30, 41, 59, 0.3) 0%,
      rgba(30, 41, 59, 0.7) 50%,
      rgba(30, 41, 59, 0.95) 100%);
  z-index: 0;
}

/* Fallback for headers uden billeder */
.site-header:not(.site-header--hero)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
  background-size: 200px;
  opacity: 0.5;
}

.site-header .container {
  position: relative;
  z-index: 1;
}

.site-header__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--color-primary-light);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-md);
}

.site-header__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-inverse);
}

.site-header__subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  margin-bottom: var(--spacing-xl);
}

/* Progress Indicators */
.progress-dots {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.progress-dot {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
  text-decoration: none;
}

.progress-dot--inactive {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

.progress-dot--active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.progress-dot--completed {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

.progress-dot:hover {
  transform: scale(1.1);
  text-decoration: none;
}

/* ===========================================
   Lesson Header
   =========================================== */

.lesson-header {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
}

.lesson-header__top {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-text-inverse);
  padding: var(--spacing-xl);
}

.lesson-header__meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
}

.lesson-header__number {
  background: rgba(255, 255, 255, 0.2);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.lesson-header__time {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
}

.lesson-header__title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-inverse);
}

.lesson-header__description {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  margin: 0;
}

.lesson-header__goals {
  background: var(--color-surface);
  padding: var(--spacing-xl);
  border-top: 3px solid rgba(74, 158, 150, 0.3);
}

.lesson-header__goals h4 {
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.lesson-header__goals h4::before {
  content: '';
  width: 4px;
  height: 1.1em;
  background: var(--color-primary);
  border-radius: 2px;
}

.lesson-header__goals ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.lesson-header__goals li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(74, 158, 150, 0.06);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
  transition: all 0.2s ease;
}

.lesson-header__goals li:hover {
  background: rgba(74, 158, 150, 0.12);
  transform: translateX(4px);
}

.lesson-header__goals li::before {
  content: '✓';
  color: var(--color-surface);
  background: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ===========================================
   Expandable Sections
   =========================================== */

.expandable {
  margin-bottom: var(--spacing-lg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.expandable__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  border: none;
  cursor: pointer;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-inverse);
  transition: all var(--transition-base);
  position: relative;
}

.expandable__header:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.expandable__header:active {
  transform: translateY(0);
}

.expandable__header-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.expandable__icon {
  width: 28px;
  height: 28px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: transform var(--transition-base), background var(--transition-base);
}

.expandable__header:hover .expandable__icon {
  background: rgba(255, 255, 255, 0.35);
}

.expandable--open .expandable__icon {
  transform: rotate(180deg);
}

/* Fold-indikator label */
.expandable__header::after {
  content: 'Fold ud';
  position: absolute;
  right: 60px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.expandable--open .expandable__header::after {
  content: 'Fold ind';
}

.expandable__header:hover::after {
  opacity: 0.7;
}

.expandable__content {
  background: var(--color-surface);
  padding: var(--spacing-xl);
  border: 2px solid;
  border-top: none;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  display: none;
}

.expandable--open .expandable__content {
  display: block;
}

/* Expandable color variants */
.expandable--blue .expandable__header {
  background: var(--color-primary);
}

.expandable--blue .expandable__content {
  border-color: var(--color-primary);
}

.expandable--orange .expandable__header {
  background: var(--color-secondary);
}

.expandable--orange .expandable__content {
  border-color: var(--color-secondary);
}

.expandable--green .expandable__header {
  background: var(--color-accent);
}

.expandable--green .expandable__content {
  border-color: var(--color-accent);
}

.expandable--yellow .expandable__header {
  background: var(--color-warning);
  color: var(--color-text);
}

.expandable--yellow .expandable__content {
  border-color: var(--color-warning);
}

.expandable--gray .expandable__header {
  background: var(--color-gray);
}

.expandable--gray .expandable__content {
  border-color: var(--color-gray);
}

/* Ny expandable stil - tydeligere og renere */
.expandable:not(.expandable--blue):not(.expandable--orange):not(.expandable--green):not(.expandable--yellow):not(.expandable--gray) .expandable__header {
  background: var(--color-gray-light);
  color: var(--color-text);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.expandable:not(.expandable--open):not(.expandable--blue):not(.expandable--orange):not(.expandable--green):not(.expandable--yellow):not(.expandable--gray) .expandable__header {
  border-radius: var(--radius-lg);
}

.expandable:not(.expandable--blue):not(.expandable--orange):not(.expandable--green):not(.expandable--yellow):not(.expandable--gray) .expandable__content {
  border-color: #e2e8f0;
}

.expandable__label {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-right: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.expandable__title {
  flex: 1;
  margin: 0;
  font-size: var(--font-size-lg);
}

.expandable__icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: transform var(--transition-base);
  min-width: 24px;
  text-align: center;
}

.expandable--open .expandable__icon {
  transform: rotate(45deg);
}

/* ===========================================
   Section Labels
   =========================================== */

.section-label {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.section-label--required {
  background: var(--color-primary);
  color: white;
}

.section-label--optional {
  background: var(--color-gray-light);
  color: var(--color-text-light);
  border: 1px solid #e2e8f0;
}

.section-label--deep {
  background: #a855f7;
  color: white;
}

/* ===========================================
   Notes box variant
   =========================================== */

.box--task--notes {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: var(--color-warning);
}

/* ===========================================
   Content Boxes (Boks-typer)
   =========================================== */

/* 1. Læseboks (blå kant) */
.box--reading {
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* 2. Opgaveboks (orange kant) */
.box--task {
  background: #fff7ed;
  border-left: 4px solid var(--color-secondary);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.box--task__meta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.box--task__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: rgba(249, 115, 22, 0.15);
  color: var(--color-secondary-dark);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* 3. Begrebsboks (grøn kant) */
.box--concept {
  background: #ecfdf5;
  border-left: 4px solid var(--color-accent);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.concept-card {
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
}

.concept-card__term {
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: var(--spacing-xs);
}

.concept-card__definition {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Metal-kort (til detaljeret metalguide) */
.metal-card {
  background: var(--color-surface);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.metal-card h3 {
  font-size: var(--font-size-lg);
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.metal-card p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

.metal-card p:last-child {
  margin-bottom: 0;
}

.metal-card strong {
  color: var(--color-text);
}

/* 4. Tipboks (gul kant) */
.box--tip {
  background: var(--color-warning-light);
  border-left: 4px solid var(--color-warning);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  display: flex;
  gap: var(--spacing-md);
}

.box--tip__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.box--tip__content h4 {
  color: #92400e;
  margin-bottom: var(--spacing-xs);
}

.box--tip__content p {
  color: #78350f;
  margin: 0;
}

/* 5. Kildeboks (grå kant) */
.box--sources {
  background: var(--color-gray-light);
  border-left: 4px solid var(--color-gray);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.box--sources h4 {
  color: var(--color-gray);
  margin-bottom: var(--spacing-sm);
}

.box--sources ul {
  margin: 0;
  padding-left: var(--spacing-lg);
}

.box--sources li {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

/* ===========================================
   Info Box (Highlight)
   =========================================== */

.info-box {
  background: rgba(37, 99, 235, 0.1);
  border-left: 4px solid var(--color-primary);
  padding: var(--spacing-md) var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.info-box p {
  margin: 0;
  color: var(--color-primary-dark);
}

.info-box strong {
  color: var(--color-primary);
}

/* ===========================================
   Fact Box
   =========================================== */

.fact-box {
  background: #fff7ed;
  border: 1px solid var(--color-secondary-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  display: flex;
  gap: var(--spacing-md);
}

.fact-box__icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.fact-box__content h4 {
  color: var(--color-secondary-dark);
  margin-bottom: var(--spacing-xs);
}

.fact-box__content p {
  color: var(--color-secondary-dark);
  margin: 0;
}

/* ===========================================
   Tables
   =========================================== */

.table-wrapper {
  overflow-x: auto;
  margin: var(--spacing-lg) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background: var(--color-gray-light);
}

th {
  text-align: left;
  padding: var(--spacing-md);
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 2px solid #e2e8f0;
}

td {
  padding: var(--spacing-md);
  border-bottom: 1px solid #e2e8f0;
}

tr:hover {
  background: var(--color-gray-light);
}

tr:last-child td {
  border-bottom: none;
}

/* Metal percentage bars */
.metal-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.metal-bar__fill {
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}

/* ===========================================
   Charts (Simple CSS Charts)
   =========================================== */

.pie-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
}

@media (min-width: 640px) {
  .pie-chart-container {
    flex-direction: row;
    justify-content: center;
  }
}

.pie-chart {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  background: conic-gradient(var(--color-primary) 0deg 144deg,
      var(--color-secondary) 144deg 288deg,
      var(--color-accent) 288deg 342deg,
      #8b5cf6 342deg 360deg);
  position: relative;
}

.pie-chart::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: var(--color-surface);
  border-radius: var(--radius-full);
}

.pie-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
}

.pie-legend__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.pie-legend__color {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* ===========================================
   World Map Simplified
   =========================================== */

.world-map-simple {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.world-map-simple h4 {
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-md);
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
}

.country-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  text-align: center;
  transition: transform var(--transition-fast);
}

.country-card:hover {
  transform: translateY(-2px);
}

.country-card__flag {
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
}

.country-card__name {
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-xs);
}

.country-card__material {
  color: var(--color-primary);
  font-size: var(--font-size-sm);
}

.country-card__use {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

/* ===========================================
   Figurer og Illustrationer
   =========================================== */

.figure {
  margin: var(--spacing-xl) 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.figure img {
  width: 100%;
  height: auto;
  display: block;
}

.figure__caption {
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--color-gray-light);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  border-top: 1px solid #e2e8f0;
}

.figure__caption strong {
  color: var(--color-text);
}

/* Full-width figur */
.figure--full {
  margin-left: calc(-1 * var(--spacing-lg));
  margin-right: calc(-1 * var(--spacing-lg));
  border-radius: 0;
}

/* Figur med ramme */
.figure--bordered {
  border: 2px solid var(--color-primary);
}

/* Side-by-side figurer */
.figure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

@media (min-width: 768px) {
  .figure-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.figure-grid .figure {
  margin: 0;
}

/* ===========================================
   Two-Column Text + Figure Layout
   =========================================== */

.text-figure-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: start;
  margin: var(--spacing-lg) 0;
}

@media (min-width: 768px) {
  .text-figure-row {
    grid-template-columns: 1fr 1fr;
  }

  .text-figure-row--figure-left {
    grid-template-columns: 1fr 1fr;
  }

  .text-figure-row--figure-left .text-figure-row__figure {
    order: -1;
  }

  .text-figure-row--wide-figure {
    grid-template-columns: 2fr 3fr;
  }

  .text-figure-row--wide-text {
    grid-template-columns: 3fr 2fr;
  }
}

.text-figure-row__text {
  font-size: 1rem;
  line-height: 1.7;
}

.text-figure-row__text h3,
.text-figure-row__text h4 {
  margin-bottom: 0.75rem;
  color: var(--color-coffee, #2d1810);
}

.text-figure-row__text p {
  margin-bottom: 1rem;
}

.text-figure-row__text p:last-child {
  margin-bottom: 0;
}

.text-figure-row__figure {
  position: relative;
}

.text-figure-row__figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.text-figure-row__figure img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.text-figure-row__figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-align: center;
  font-style: italic;
}

/* Compact variant for smaller boxes */
.text-figure-row--compact {
  gap: var(--spacing-md);
}

.text-figure-row--compact .text-figure-row__text {
  font-size: 0.95rem;
}

/* ===========================================
   Begrebsmodeller / Flowcharts
   =========================================== */

.concept-model {
  background: linear-gradient(135deg, var(--color-gray-light) 0%, #fff 100%);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
}

.concept-model__title {
  text-align: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
  color: var(--color-text);
}

/* Vertikal flowchart */
.flow-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.flow-step__box {
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.flow-step__icon {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

.flow-step__title {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
}

.flow-step__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin: 0;
}

.flow-step__location {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: 500;
  margin-top: var(--spacing-xs);
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--color-primary);
  padding: var(--spacing-sm) 0;
}

/* Horisontal flowchart (til desktop) */
@media (min-width: 992px) {
  .flow-horizontal {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
  }

  .flow-horizontal .flow-step {
    flex: 1;
    max-width: 200px;
  }

  .flow-horizontal .flow-arrow {
    transform: rotate(-90deg);
    padding: var(--spacing-xl) var(--spacing-sm);
    align-self: center;
  }
}

/* Farvekodede flowchart-trin */
.flow-step--raw .flow-step__box {
  border-color: #a855f7;
  background: linear-gradient(135deg, #faf5ff 0%, #fff 100%);
}

.flow-step--process .flow-step__box {
  border-color: var(--color-secondary);
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
}

.flow-step--assembly .flow-step__box {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
}

.flow-step--sale .flow-step__box {
  border-color: var(--color-accent);
  background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
}

.flow-step--waste .flow-step__box {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
}

/* ===========================================
   Infografik / Stats
   =========================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-primary);
}

.stat-card__number {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.stat-card__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.stat-card--orange {
  border-top-color: var(--color-secondary);
}

.stat-card--orange .stat-card__number {
  color: var(--color-secondary);
}

.stat-card--green {
  border-top-color: var(--color-accent);
}

.stat-card--green .stat-card__number {
  color: var(--color-accent);
}

.stat-card--red {
  border-top-color: #ef4444;
}

.stat-card--red .stat-card__number {
  color: #ef4444;
}

/* ===========================================
   Illustration placeholders
   =========================================== */

.illustration-placeholder {
  background: linear-gradient(135deg, var(--color-gray-light) 0%, #e2e8f0 100%);
  border: 2px dashed var(--color-gray);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  text-align: center;
  margin: var(--spacing-xl) 0;
}

.illustration-placeholder__icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.illustration-placeholder__text {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

/* ===========================================
   Task Numbering
   =========================================== */

.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-item {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.task-number {
  width: 32px;
  height: 32px;
  background: var(--color-secondary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-sm);
  flex-shrink: 0;
}

/* ===========================================
   Links / Resources
   =========================================== */

.resource-box {
  background: var(--color-gray-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.resource-box h4 {
  margin-bottom: var(--spacing-md);
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--color-secondary);
  color: var(--color-text-inverse);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.resource-link:hover {
  background: var(--color-secondary-dark);
  color: var(--color-text-inverse);
  text-decoration: none;
  transform: translateY(-1px);
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-list li {
  margin-bottom: var(--spacing-sm);
}

.resource-list a {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* ===========================================
   Navigation (Prev/Next)
   =========================================== */

.lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-3xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.lesson-nav__link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.lesson-nav__link--prev {
  background: var(--color-gray-light);
  color: var(--color-text);
}

.lesson-nav__link--prev:hover {
  background: #e2e8f0;
  color: var(--color-text);
  text-decoration: none;
}

.lesson-nav__link--next {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.lesson-nav__link--next:hover {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
  text-decoration: none;
}

/* Next lesson card */
.next-lesson-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: var(--spacing-xl);
}

.next-lesson-card__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, var(--color-gray-light) 0%, #e2e8f0 100%);
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.next-lesson-card__text p {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-xs);
}

.next-lesson-card__text h3 {
  margin: 0;
  color: var(--color-text);
}

/* ===========================================
   Footer
   =========================================== */

.site-footer {
  background: #2d1810;
  color: rgba(255, 255, 255, 0.7);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-3xl);
  text-align: center;
}

.site-footer p {
  margin-bottom: var(--spacing-xs);
}

.site-footer p:last-child {
  margin-bottom: 0;
  font-size: var(--font-size-sm);
}

.site-footer strong {
  color: white;
}

.site-footer a {
  color: #c9a227;
  text-decoration: none;
}

.site-footer a:hover {
  color: #d4b84a;
  text-decoration: underline;
}

/* ===========================================
   Index Page Specifics
   =========================================== */

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.lesson-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
}

.lesson-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
}

.lesson-card__header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-text-inverse);
  padding: var(--spacing-lg);
}

.lesson-card__number {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  margin-bottom: var(--spacing-xs);
}

.lesson-card__title {
  font-size: var(--font-size-xl);
  margin: 0;
  color: var(--color-text-inverse);
}

.lesson-card__body {
  padding: var(--spacing-lg);
}

.lesson-card__description {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.lesson-card__meta {
  display: flex;
  gap: var(--spacing-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* Color variants for lesson cards - Copper/Coffee theme */
.lesson-card--1 .lesson-card__header {
  background: linear-gradient(135deg, #b87333 0%, #8b5a2b 100%);
}

.lesson-card--2 .lesson-card__header {
  background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
}

.lesson-card--3 .lesson-card__header {
  background: linear-gradient(135deg, #cd853f 0%, #a0522d 100%);
}

.lesson-card--4 .lesson-card__header {
  background: linear-gradient(135deg, #8b4513 0%, #5c3317 100%);
}

.lesson-card--5 .lesson-card__header {
  background: linear-gradient(135deg, #c9a227 0%, #a68521 100%);
}

.lesson-card--6 .lesson-card__header {
  background: linear-gradient(135deg, #6b4423 0%, #4a2c17 100%);
}

.lesson-card--7 .lesson-card__header {
  background: linear-gradient(135deg, #4a7c59 0%, #3d6b4a 100%);
}

/* Lesson card tag styling */
.lesson-card__tag {
  display: inline-block;
  background: rgba(184, 115, 51, 0.15);
  color: #8b5a2b;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===========================================
   Concept/Term Tooltip
   =========================================== */

.term {
  border-bottom: 2px dotted var(--color-accent);
  cursor: help;
  position: relative;
}

.term:hover::after {
  content: attr(data-definition);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: var(--color-text-inverse);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  max-width: 300px;
  white-space: normal;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

/* ===========================================
   Breadcrumb
   =========================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb__separator {
  color: #cbd5e1;
}

/* Breadcrumb i header - lysere og mere synlig */
.site-header .breadcrumb {
  color: rgba(255, 255, 255, 0.95);
}

.site-header .breadcrumb a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
}

.site-header .breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-header .breadcrumb__separator {
  color: rgba(255, 255, 255, 0.7);
}

/* ===========================================
   Main Content Area
   =========================================== */

main {
  padding: var(--spacing-xl) 0;
}

.content-section {
  margin-bottom: var(--spacing-2xl);
}

/* ===========================================
   Images
   =========================================== */

.content-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: var(--spacing-lg) 0;
}

.content-image--float-right {
  float: right;
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  max-width: 280px;
}

.image-caption {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  text-align: center;
  margin-top: var(--spacing-sm);
}

/* ===========================================
   Value Distribution Chart
   =========================================== */

.value-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--spacing-md);
  height: 250px;
  padding: var(--spacing-lg);
  background: var(--color-gray-light);
  border-radius: var(--radius-lg);
  margin: var(--spacing-lg) 0;
}

.value-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.value-bar__fill {
  width: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--spacing-sm);
  color: var(--color-text-inverse);
  font-weight: 700;
}

.value-bar__label {
  font-size: var(--font-size-sm);
  text-align: center;
  color: var(--color-text);
}

/* ===========================================
   Responsive Adjustments
   =========================================== */

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  .site-header {
    padding: var(--spacing-lg) 0;
  }

  .site-header__title {
    font-size: var(--font-size-3xl);
  }

  .lesson-header__top {
    padding: var(--spacing-lg);
  }

  .lesson-header__title {
    font-size: var(--font-size-2xl);
  }

  .expandable__header {
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
  }

  .expandable__content {
    padding: var(--spacing-md);
  }

  .content-image--float-right {
    float: none;
    margin-left: 0;
    max-width: 100%;
  }

  .lesson-nav {
    flex-direction: column;
  }

  .lesson-nav__link {
    width: 100%;
    justify-content: center;
  }

  .fact-box,
  .box--tip {
    flex-direction: column;
  }
}

/* ===========================================
   Print Styles
   =========================================== */

@media print {

  .site-header,
  .site-footer,
  .lesson-nav,
  .expandable__header {
    display: none;
  }

  .expandable__content {
    display: block !important;
    border: 1px solid #ccc;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}

/* ===========================================
   Utility Classes
   =========================================== */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===========================================
   Image Lightbox / Zoom
   =========================================== */

.zoomable-image {
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zoomable-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  overflow: auto;
  cursor: grab;
}

.lightbox-container:active {
  cursor: grabbing;
}

.lightbox-image {
  display: block;
  max-width: none;
  transform-origin: center center;
  transition: transform 0.1s ease;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
  background: #fff;
  transform: scale(1.1);
}

.lightbox-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10001;
}

.lightbox-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lightbox-btn:hover {
  background: #fff;
  transform: scale(1.1);
}

.lightbox-info {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  z-index: 10001;
}