/* Zenevadmin — Oktatóanyag modul stílusai.
 * Külön fájlban (nem az inline page-zenevadmin.php <style>-ban), mert az már 2000+ soros.
 * Mind a 4 zenevadmin-témára lefedve, ugyanazokkal a szín/betű-konvenciókkal, mint a többi fül. */

/* A modul minden eleme border-box — különben mobilon a width:100% + padding + border
   túllóg a szülőn, és a keret "kisebb lesz, mint a szöveg" / elcsúszik az alja. */
.zad-tut-wrap, .zad-tut-wrap * { box-sizing: border-box; }

.zad-tut-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

/* --- BAL OLDAL: fejléc, kereső, progress, fa-nav --- */
.zad-tut-side {
  flex: 0 0 260px;
  max-width: 260px;
}
.zad-tut-progress-wrap { margin-bottom: 1rem; }
.zad-tut-progress-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-bottom: 0.4rem;
}
.zad-tut-progress-pct { font-size: 0.85rem; font-weight: 700; opacity: 1; letter-spacing: 0; text-transform: none; }
.zad-tut-progress-track {
  height: 8px; border-radius: 6px; background: rgba(254,246,216,0.12);
  border: 1px solid rgba(254,246,216,0.22); overflow: hidden;
}
.zad-tut-progress-fill {
  height: 100%; border-radius: 6px; background: #6ec98c;
  transition: width 0.3s ease; min-width: 0;
}

.zad-tut-search-wrap { position: relative; margin-bottom: 1.1rem; }
.zad-tut-search-input {
  width: 100%; background: rgba(254,246,216,0.07); border: 1px solid rgba(254,246,216,0.25);
  color: #fef6d8; font-family: inherit; font-size: 0.68rem; padding: 0.5rem 0.7rem 0.5rem 2rem;
  border-radius: 4px; outline: none; box-sizing: border-box;
}
.zad-tut-search-input::placeholder { color: rgba(254,246,216,0.35); }
.zad-tut-search-icon {
  position: absolute; left: 0.55rem; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px; opacity: 0.5; pointer-events: none;
}
.zad-tut-search-results {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60; margin-top: 3px;
  background: #0f0c07; border: 1px solid rgba(254,246,216,0.28); border-radius: 4px;
  max-height: 320px; overflow-y: auto; display: none;
}
.zad-tut-search-results.open { display: block; }
.zad-tut-search-item { padding: 0.55rem 0.7rem; cursor: pointer; border-bottom: 1px solid rgba(254,246,216,0.08); }
.zad-tut-search-item:last-child { border-bottom: none; }
.zad-tut-search-item:hover { background: rgba(254,246,216,0.1); }
.zad-tut-search-item-path { font-size: 0.5rem; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.45; margin-bottom: 0.15rem; }
.zad-tut-search-item-title { font-size: 0.68rem; color: #fef6d8; }
.zad-tut-search-empty { padding: 0.7rem; font-size: 0.62rem; opacity: 0.45; text-align: center; }

/* --- FA-NAVIGÁCIÓ --- */
.zad-tut-tree { font-size: 0.7rem; }
.zad-tut-section { margin-bottom: 0.3rem; }
.zad-tut-section-head {
  display: flex; align-items: center; gap: 0.4rem; width: 100%; background: transparent; border: none;
  color: #fef6d8; font-family: inherit; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.75; padding: 0.5rem 0.2rem; cursor: pointer; text-align: left;
}
.zad-tut-section-head:hover { opacity: 1; }
.zad-tut-section-chevron { width: 12px; height: 12px; flex-shrink: 0; transition: transform 0.15s ease; opacity: 0.6; }
.zad-tut-section.open > .zad-tut-section-head .zad-tut-section-chevron { transform: rotate(90deg); }
.zad-tut-section-pct { margin-left: auto; font-size: 0.56rem; opacity: 0.5; letter-spacing: 0; text-transform: none; }
.zad-tut-section-children { display: none; padding-left: 0.9rem; border-left: 1px solid rgba(254,246,216,0.12); margin-left: 0.5rem; }
.zad-tut-section.open > .zad-tut-section-children { display: block; }

.zad-tut-leaf {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; background: transparent; border: none;
  color: #fef6d8; font-family: inherit; font-size: 0.68rem; padding: 0.45rem 0.4rem; cursor: pointer;
  text-align: left; border-radius: 3px; opacity: 0.85;
}
.zad-tut-leaf:hover:not(.locked) { background: rgba(254,246,216,0.08); opacity: 1; }
.zad-tut-leaf.active { background: rgba(254,246,216,0.14); opacity: 1; font-weight: 700; }
.zad-tut-leaf.locked { opacity: 0.35; cursor: not-allowed; }
.zad-tut-leaf-icon { width: 13px; height: 13px; flex-shrink: 0; }
.zad-tut-leaf.completed .zad-tut-leaf-icon { color: inherit; }
.zad-tut-leaf.locked .zad-tut-leaf-icon { color: rgba(254,246,216,0.4); }
.zad-tut-leaf-title { flex: 1; line-height: 1.25; }

/* Több videós lecke: lenyitható csoport a fában */
.zad-tut-leafgroup { margin-bottom: 0.1rem; }
.zad-tut-leafgroup-head .zad-tut-section-chevron { width: 11px; height: 11px; opacity: 0.55; }
.zad-tut-leafgroup.open > .zad-tut-leafgroup-head .zad-tut-section-chevron { transform: rotate(90deg); }
.zad-tut-leafgroup-children { display: none; padding-left: 0.7rem; border-left: 1px solid rgba(254,246,216,0.12); margin-left: 0.65rem; }
.zad-tut-leafgroup.open > .zad-tut-leafgroup-children { display: block; }
.zad-tut-subvideo { font-size: 0.64rem; padding: 0.38rem 0.4rem; opacity: 0.8; }
.zad-tut-subvideo.completed .zad-tut-leaf-icon { color: inherit; }

/* --- JOBB OLDAL: dia-nézegető --- */
/* Nincs "ablak"/keret a lecke körül egyik nézetben sem — csak egy vastag elválasztó vonal
   választja el a fától. Belül sincs dobozkeret sehol (feladat, videó-placeholder). */
.zad-tut-viewer {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column;
  border-top: 3px solid rgba(254,246,216,0.4);
  padding-top: 1.4rem; margin-top: 0.2rem;
}
.zad-tut-empty-state {
  flex: 1; display: flex; align-items: center; justify-content: center;
  opacity: 0.4; font-size: 0.75rem; text-align: center; padding: 2rem;
}
.zad-tut-slide-crumb { font-size: 0.54rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.45; margin-bottom: 0.5rem; }
.zad-tut-slide-title { font-family: "Fredericka the Great", "Source Serif Pro", Georgia, serif; font-size: 1.15rem; font-weight: 400; margin-bottom: 0.9rem; letter-spacing: 0.01em; }
.zad-tut-flatten-sep { border: none; border-top: 1px solid rgba(254,246,216,0.12); margin: 1.6rem 0; }
.zad-tut-slide-body { font-size: 0.82rem; line-height: 1.65; flex: 1; }
.zad-tut-slide-body p { margin-bottom: 0.8rem; }
.zad-tut-slide-body p:last-child { margin-bottom: 0; }
.zad-tut-slide-body ul, .zad-tut-slide-body ol { margin: 0 0 0.8rem 1.3rem; }
.zad-tut-slide-body li { margin-bottom: 0.45rem; line-height: 1.55; }
.zad-tut-slide-body strong { color: #fef6d8; }
.zad-tut-slide-body em { opacity: 0.9; }

/* "Videó hamarosan" — sima szöveg, nincs doboz */
.zad-tut-video-soon { margin: 1.1rem 0; font-size: 0.78rem; opacity: 0.5; }

/* Feladat-leírás: a videó ALATT jelenik meg, doboz nélkül — csak a felirat jelöli */
.zad-tut-slide-task {
  margin-top: 1.4rem; font-size: 0.82rem; line-height: 1.6;
}
.zad-tut-slide-task-label {
  font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.6; font-weight: 700; margin-bottom: 0.5rem;
}
.zad-tut-slide-task p { margin: 0 0 0.6rem; }
.zad-tut-slide-task p:last-child { margin-bottom: 0; }
.zad-tut-slide-task ul, .zad-tut-slide-task ol { margin: 0 0 0.6rem 1.2rem; }
.zad-tut-slide-task li { margin-bottom: 0.4rem; }
.zad-tut-slide-task strong { color: #fef6d8; }

/* Videó-gomb: a videók "Titkos" YouTube-láthatósággal vannak, ami nem ágyazható be iframe-ként —
   ehelyett egy gomb nyitja meg a videót új fülön/a YouTube appban. */
.zad-tut-video-linkout { margin-top: 1.2rem; }
.zad-tut-video-btn {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; box-sizing: border-box;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(254,246,216,0.15); border-radius: 6px;
  padding: 0.9rem 1.1rem; text-decoration: none; color: #fef6d8; font-family: inherit;
  font-size: 0.78rem; letter-spacing: 0.02em; transition: background 0.2s, border-color 0.2s;
}
.zad-tut-video-btn:hover { background: rgba(0,0,0,0.5); border-color: rgba(254,246,216,0.35); }
.zad-tut-yt-icon { width: 28px; height: 20px; flex-shrink: 0; }

.zad-tut-slide-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(254,246,216,0.1); }
.zad-tut-nav-btn {
  background: transparent; border: 1px solid rgba(254,246,216,0.25); color: #fef6d8; font-family: inherit;
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.5rem 0.9rem; cursor: pointer;
  border-radius: 3px; display: flex; align-items: center; gap: 0.35rem;
}
.zad-tut-nav-btn:hover:not(:disabled) { border-color: rgba(254,246,216,0.55); }
.zad-tut-nav-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.zad-tut-dots { display: flex; gap: 0.4rem; }
.zad-tut-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(254,246,216,0.25); border: none; cursor: pointer; padding: 0; }
.zad-tut-dot.active { background: #fef6d8; }

.zad-tut-complete-row {
  display: flex; align-items: center; gap: 0.6rem; margin-top: 1.2rem; padding: 0;
}
.zad-tut-complete-row input[type=checkbox] { width: 16px; height: 16px; accent-color: #6ec98c; cursor: pointer; flex-shrink: 0; }
.zad-tut-complete-row input[type=checkbox]:disabled { cursor: default; opacity: 1; }
.zad-tut-complete-row span { font-size: 0.66rem; letter-spacing: 0.04em; }

/* Videó-számláló több videós leckénél */
.zad-tut-video-counter { font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.5; margin: -0.4rem 0 0.9rem; }

/* Lecke-szintű navigáció (a régi dia-lapozás helyett) */
.zad-tut-lesson-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid rgba(254,246,216,0.1); }
.zad-tut-nav-btn.primary { border-color: rgba(110,201,140,0.6); color: #6ec98c; }
.zad-tut-nav-btn.primary:hover:not(:disabled) { border-color: #6ec98c; background: rgba(110,201,140,0.12); }
.zad-tut-nav-hint { font-size: 0.6rem; opacity: 0.5; margin-top: 0.5rem; line-height: 1.5; }
.zad-tut-nav-done { font-size: 0.62rem; opacity: 0.7; }

/* Home-csempe % jelvény */
.zad-tut-tile-badge {
  position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
  font-size: 0.52rem; font-weight: 700; letter-spacing: 0.02em; opacity: 0.65;
}

@media (max-width: 760px) {
  .zad-tut-wrap { flex-direction: column; gap: 0; }
  .zad-tut-side { flex: none; max-width: none; width: 100%; }
  .zad-tut-viewer { width: 100%; margin-top: 1.6rem; }
}

/* ===== TÉMA-FELÜLÍRÁSOK ===== */

/* Sárga */
body.zad-theme-yellow .zad-tut-progress-track { background: rgba(47,42,32,0.12) !important; border-color: rgba(47,42,32,0.28) !important; }
body.zad-theme-yellow .zad-tut-search-input { background: rgba(47,42,32,0.07) !important; border-color: rgba(47,42,32,0.3) !important; color: #2f2a20 !important; }
body.zad-theme-yellow .zad-tut-search-input::placeholder { color: rgba(47,42,32,0.35) !important; }
body.zad-theme-yellow .zad-tut-search-results { background: #fff7dc !important; border-color: rgba(47,42,32,0.28) !important; }
body.zad-theme-yellow .zad-tut-search-item { border-bottom-color: rgba(47,42,32,0.1) !important; }
body.zad-theme-yellow .zad-tut-search-item:hover { background: rgba(47,42,32,0.08) !important; }
body.zad-theme-yellow .zad-tut-search-item-title { color: #2f2a20 !important; }
body.zad-theme-yellow .zad-tut-section-head { color: #2f2a20 !important; }
body.zad-theme-yellow .zad-tut-section-children { border-left-color: rgba(47,42,32,0.18) !important; }
body.zad-theme-yellow .zad-tut-leaf { color: #2f2a20 !important; }
body.zad-theme-yellow .zad-tut-leaf:hover:not(.locked) { background: rgba(47,42,32,0.08) !important; }
body.zad-theme-yellow .zad-tut-leaf.active { background: rgba(47,42,32,0.14) !important; }
body.zad-theme-yellow .zad-tut-leaf.locked .zad-tut-leaf-icon { color: rgba(47,42,32,0.4) !important; }
body.zad-theme-yellow .zad-tut-viewer { border-top-color: rgba(47,42,32,0.45) !important; }
body.zad-theme-yellow .zad-tut-slide-body strong, body.zad-theme-yellow .zad-tut-slide-task strong { color: #2f2a20 !important; }
body.zad-theme-yellow .zad-tut-video-btn { background: rgba(47,42,32,0.1) !important; border-color: rgba(47,42,32,0.22) !important; color: #2f2a20 !important; }
body.zad-theme-yellow .zad-tut-flatten-sep { border-top-color: rgba(47,42,32,0.15) !important; }
body.zad-theme-yellow .zad-tut-nav-btn { border-color: rgba(47,42,32,0.3) !important; color: #2f2a20 !important; }
body.zad-theme-yellow .zad-tut-nav-btn:hover:not(:disabled) { border-color: rgba(47,42,32,0.6) !important; }
body.zad-theme-yellow .zad-tut-dot { background: rgba(47,42,32,0.25) !important; }
body.zad-theme-yellow .zad-tut-dot.active { background: #2f2a20 !important; }
body.zad-theme-yellow .zad-tut-complete-row label { color: #2f2a20 !important; }

/* Kék */
body.zad-theme-blue .zad-tut-progress-track { background: rgba(26,39,51,0.1) !important; border-color: rgba(26,39,51,0.25) !important; }
body.zad-theme-blue .zad-tut-search-input { background: rgba(26,39,51,0.07) !important; border-color: rgba(26,39,51,0.28) !important; color: #1a2733 !important; }
body.zad-theme-blue .zad-tut-search-input::placeholder { color: rgba(26,39,51,0.35) !important; }
body.zad-theme-blue .zad-tut-search-results { background: #cfe3f5 !important; border-color: rgba(26,39,51,0.25) !important; }
body.zad-theme-blue .zad-tut-search-item { border-bottom-color: rgba(26,39,51,0.1) !important; }
body.zad-theme-blue .zad-tut-search-item:hover { background: rgba(26,39,51,0.08) !important; }
body.zad-theme-blue .zad-tut-search-item-title { color: #1a2733 !important; }
body.zad-theme-blue .zad-tut-section-head { color: #1a2733 !important; }
body.zad-theme-blue .zad-tut-section-children { border-left-color: rgba(26,39,51,0.18) !important; }
body.zad-theme-blue .zad-tut-leaf { color: #1a2733 !important; }
body.zad-theme-blue .zad-tut-leaf:hover:not(.locked) { background: rgba(26,39,51,0.08) !important; }
body.zad-theme-blue .zad-tut-leaf.active { background: rgba(26,39,51,0.14) !important; }
body.zad-theme-blue .zad-tut-leaf.locked .zad-tut-leaf-icon { color: rgba(26,39,51,0.4) !important; }
body.zad-theme-blue .zad-tut-viewer { border-top-color: rgba(26,39,51,0.45) !important; }
body.zad-theme-blue .zad-tut-slide-body strong, body.zad-theme-blue .zad-tut-slide-task strong { color: #1a2733 !important; }
body.zad-theme-blue .zad-tut-video-btn { background: rgba(26,39,51,0.12) !important; border-color: rgba(26,39,51,0.22) !important; color: #1a2733 !important; }
body.zad-theme-blue .zad-tut-flatten-sep { border-top-color: rgba(26,39,51,0.15) !important; }
body.zad-theme-blue .zad-tut-nav-btn { border-color: rgba(26,39,51,0.3) !important; color: #1a2733 !important; }
body.zad-theme-blue .zad-tut-nav-btn:hover:not(:disabled) { border-color: rgba(26,39,51,0.6) !important; }
body.zad-theme-blue .zad-tut-dot { background: rgba(26,39,51,0.25) !important; }
body.zad-theme-blue .zad-tut-dot.active { background: #1a2733 !important; }
body.zad-theme-blue .zad-tut-complete-row label { color: #1a2733 !important; }

/* Sötét szürke */
body.zad-theme-darkgrey .zad-tut-progress-track { background: rgba(43,42,36,0.1) !important; border-color: rgba(43,42,36,0.25) !important; }
body.zad-theme-darkgrey .zad-tut-search-input { background: rgba(43,42,36,0.07) !important; border-color: rgba(43,42,36,0.28) !important; color: #2b2a24 !important; }
body.zad-theme-darkgrey .zad-tut-search-input::placeholder { color: rgba(43,42,36,0.35) !important; }
body.zad-theme-darkgrey .zad-tut-search-results { background: #c4c0b0 !important; border-color: rgba(43,42,36,0.25) !important; }
body.zad-theme-darkgrey .zad-tut-search-item { border-bottom-color: rgba(43,42,36,0.1) !important; }
body.zad-theme-darkgrey .zad-tut-search-item:hover { background: rgba(43,42,36,0.08) !important; }
body.zad-theme-darkgrey .zad-tut-search-item-title { color: #2b2a24 !important; }
body.zad-theme-darkgrey .zad-tut-section-head { color: #2b2a24 !important; }
body.zad-theme-darkgrey .zad-tut-section-children { border-left-color: rgba(43,42,36,0.18) !important; }
body.zad-theme-darkgrey .zad-tut-leaf { color: #2b2a24 !important; }
body.zad-theme-darkgrey .zad-tut-leaf:hover:not(.locked) { background: rgba(43,42,36,0.08) !important; }
body.zad-theme-darkgrey .zad-tut-leaf.active { background: rgba(43,42,36,0.14) !important; }
body.zad-theme-darkgrey .zad-tut-leaf.locked .zad-tut-leaf-icon { color: rgba(43,42,36,0.4) !important; }
body.zad-theme-darkgrey .zad-tut-viewer { border-top-color: rgba(43,42,36,0.45) !important; }
body.zad-theme-darkgrey .zad-tut-slide-body strong, body.zad-theme-darkgrey .zad-tut-slide-task strong { color: #2b2a24 !important; }
body.zad-theme-darkgrey .zad-tut-video-btn { background: rgba(43,42,36,0.12) !important; border-color: rgba(43,42,36,0.22) !important; color: #2b2a24 !important; }
body.zad-theme-darkgrey .zad-tut-flatten-sep { border-top-color: rgba(43,42,36,0.15) !important; }
body.zad-theme-darkgrey .zad-tut-nav-btn { border-color: rgba(43,42,36,0.3) !important; color: #2b2a24 !important; }
body.zad-theme-darkgrey .zad-tut-nav-btn:hover:not(:disabled) { border-color: rgba(43,42,36,0.6) !important; }
body.zad-theme-darkgrey .zad-tut-dot { background: rgba(43,42,36,0.25) !important; }
body.zad-theme-darkgrey .zad-tut-dot.active { background: #2b2a24 !important; }
body.zad-theme-darkgrey .zad-tut-complete-row label { color: #2b2a24 !important; }
