/* ========== Lesson Page Styles ========== */

/* Wrapper za ceo sadržaj */
.lesson {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  line-height: 1.7;
  color: var(--text, #0b1220);
}

/* Naslov lekcije */
.lesson h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--brand, #0ea5e9);
}

/* Uvod */
.lesson .intro {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--muted, #475569);
}

/* Podnaslovi sekcija */
.lesson h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--brand, #0ea5e9);
  padding-left: 0.6rem;
}

/* Paragrafi */
.lesson p {
  margin-bottom: 1rem;
}

/* Liste */
.lesson ul,
.lesson ol {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}

.lesson li {
  margin-bottom: 0.5rem;
}

/* Tipične greške sekcija */
.lesson .mistakes {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}
.lesson .mistakes h2 {
  border-left-color: #ef4444;
  color: #b91c1c;
}

/* Rubrika po nivou (FAQ / dileme / pro saveti) */
.lesson .level-box {
  background: #f0f9ff;
  border-left: 4px solid var(--brand, #0ea5e9);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}
.lesson .level-box h2 {
  margin-top: 0;
}

/* Q&A format */
.lesson .qa {
  margin-bottom: 1rem;
}
.lesson .qa q {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
}
.lesson .qa span {
  display: block;
  margin-left: 1rem;
}

/* Savet instruktora */
.lesson .instructor-tip {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
  padding: 1rem;
  border-radius: 0.5rem;
  font-style: italic;
  margin-bottom: 2rem;
}
.lesson .instructor-tip h2 {
  border-left-color: #10b981;
  color: #065f46;
}

/* Zaključak */
.lesson .conclusion {
  font-weight: bold;
  background: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px dashed var(--muted, #475569);
}

/* Responsive prilagodljivost */
@media (max-width: 600px) {
  .lesson {
    padding: 1rem;
  }
  .lesson h1 {
    font-size: 1.6rem;
  }
  .lesson h2 {
    font-size: 1.2rem;
  }
}
/* ===== Lesson meta header ===== */
.lesson-meta {
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  padding: 1.25rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(2, 6, 23, 0.04);
}

.lesson-meta .lesson-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--text, #0b1220);
}

/* ===== Badges (lekcija meta) ===== */
.lesson-meta .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1rem 0;
  padding: 0;
  list-style: none;
}

.lesson-meta .badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lesson-meta .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

/* Label (K) */
.lesson-meta .badge .k {
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* Value (V) */
.lesson-meta .badge .v {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* ===== Colors by type ===== */
.badge.level   { background: linear-gradient(135deg, #3b82f6, #2563eb); } /* plava */
.badge.sport   { background: linear-gradient(135deg, #10b981, #059669); } /* zelena */
.badge.topic   { background: linear-gradient(135deg, #f97316, #ea580c); } /* narandžasta */


/* Practice time (sa ikonicom sata) */
.lesson-meta .practice-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #0f172a;
  font-size: 0.98rem;
}

.lesson-meta .practice-time .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.8;
}

/* Breadcrumbs malo zategnuti za lekcije */
.breadcrumbs {
  max-width: 900px;
  margin: 0 auto 0.75rem auto;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.9rem;
  color: #64748b;
}
.breadcrumbs a {
  color: #0ea5e9;
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li+li::before {
  content: "›";
  margin: 0 0.25rem 0 0.125rem;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 640px) {
  .lesson-meta { padding: 1rem; }
  .lesson-meta .lesson-title { font-size: 1.35rem; }
}
.lesson-nav {
  display: flex;
  justify-content: center;   /* centrirano u sredini */
  gap: 1.5rem;               /* razmak između dugmadi */
  margin: 2rem 0;
}

.lesson-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  padding: 0.5rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.25s ease;
  background: var(--bg);
  color: var(--brand);
  border: 1px solid var(--brand);
  font-size: 0.95rem;
}

.lesson-nav a.prev::before {
  content: "«";
  font-size: 1.6rem;  /* veća strelica */
  line-height: 1;
}

.lesson-nav a.next::after {
  content: "»";
  font-size: 1.6rem;
  line-height: 1;
}

.lesson-nav a:hover {
  background: var(--brand);
  color: #fff;
}
.lesson-figure {
  margin: 2rem auto;
  text-align: center;
}

.lesson-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lesson-figure.small img {
  max-width: 50%;   /* duplo manja */
  margin: auto;
}

.lesson-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}
