/* ============================================================
   Podcasty — webová aplikace
   Autor: SIM
   ============================================================ */

:root {
  --bg: #0f1115;
  --bg-elev: #181b22;
  --bg-elev-2: #1f232c;
  --border: #2a2f3a;
  --border-strong: #3b4150;
  --text: #e6e8ee;
  --text-muted: #9aa3b2;
  --text-faint: #6b7384;
  --accent: #8b5cf6;
  --accent-strong: #a78bfa;
  --accent-soft: rgba(139, 92, 246, 0.15);
  --danger: #ef4444;

  /* Barvy kategorií */
  --cat-volnocasove: #f59e0b;
  --cat-seberozvojove: #10b981;
  --cat-byznys: #3b82f6;
  --cat-zpravodajske: #ef4444;
  --cat-sportovni: #f97316;
  --cat-spolecenske: #ec4899;
  --cat-rozhovorove: #06b6d4;
  --cat-kriminalni: #6b7280;
  --cat-bez: #4b5563;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.4);
  --transition: 150ms ease;
}

/* Auto (system) light theme */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-elev: #ffffff;
    --bg-elev-2: #f0f2f7;
    --border: #e3e6ee;
    --border-strong: #c8cdd9;
    --text: #1a1d24;
    --text-muted: #5c6473;
    --text-faint: #8a93a4;
    --shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 4px 16px rgba(15, 23, 42, 0.1);
    --accent-soft: rgba(139, 92, 246, 0.12);
  }
}

/* Manuální override z toggle tlačítka */
:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-elev: #ffffff;
  --bg-elev-2: #f0f2f7;
  --border: #e3e6ee;
  --border-strong: #c8cdd9;
  --text: #1a1d24;
  --text-muted: #5c6473;
  --text-faint: #8a93a4;
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 4px 16px rgba(15, 23, 42, 0.1);
  --accent-soft: rgba(139, 92, 246, 0.12);
}

:root[data-theme="dark"] {
  --bg: #0f1115;
  --bg-elev: #181b22;
  --bg-elev-2: #1f232c;
  --border: #2a2f3a;
  --border-strong: #3b4150;
  --text: #e6e8ee;
  --text-muted: #9aa3b2;
  --text-faint: #6b7384;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.4);
  --accent-soft: rgba(139, 92, 246, 0.15);
}

* { box-sizing: border-box; }

/* `display: flex/grid` na elementech přebíjí default `[hidden] {display:none}`,
   takže atribut `hidden` přestává fungovat. Tohle ho vrací zpět. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family-base, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-meta {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
}

.header-meta span {
  font-weight: 600;
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-toggle {
  display: inline-flex;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px;
  gap: 2px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius) - 4px);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  background: var(--bg-elev);
  color: var(--text);
}

.view-toggle .icon-btn[aria-pressed="true"] {
  background: var(--bg-elev);
  color: var(--accent-strong);
  box-shadow: var(--shadow);
}

#themeToggle {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

#themeToggle svg {
  position: absolute;
  transition: opacity var(--transition), transform var(--transition);
}

/* Tlačítko ukazuje ikonu reprezentující AKTUÁLNÍ režim:
   - tmavý režim → měsíc
   - světlý režim → slunce */
#themeToggle .icon-sun  { opacity: 0; transform: scale(0.6); }
#themeToggle .icon-moon { opacity: 1; transform: scale(1); }

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) #themeToggle .icon-sun  { opacity: 1; transform: scale(1); }
  :root:not([data-theme]) #themeToggle .icon-moon { opacity: 0; transform: scale(0.6); }
}

:root[data-theme="light"] #themeToggle .icon-sun  { opacity: 1; transform: scale(1); }
:root[data-theme="light"] #themeToggle .icon-moon { opacity: 0; transform: scale(0.6); }

:root[data-theme="dark"] #themeToggle .icon-sun  { opacity: 0; transform: scale(0.6); }
:root[data-theme="dark"] #themeToggle .icon-moon { opacity: 1; transform: scale(1); }

/* ----- Container ----- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

/* ----- Controls ----- */
.controls {
  margin-bottom: 24px;
}

.search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-field {
  flex: 1 1 320px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-field .icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.sort-field select {
  padding: 12px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--transition);
  min-width: 200px;
}

.sort-field select:focus,
.sort-field select:hover {
  border-color: var(--border-strong);
  outline: none;
}

.btn-ghost {
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.btn-ghost.active:hover {
  background: var(--accent-soft);
  border-color: var(--accent-strong);
}

.btn-primary {
  padding: 12px 24px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ----- Kategorie chips ----- */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subcategory-filters {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  overflow: hidden;
}

.subcategory-filters summary {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.subcategory-filters summary::-webkit-details-marker { display: none; }

.subcategory-filters summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  transition: transform var(--transition);
  color: var(--text-faint);
}

.subcategory-filters[open] summary::before {
  transform: rotate(90deg);
}

.sub-summary-label {
  flex: 1;
}

.sub-summary-count {
  font-size: 12px;
  color: var(--accent-strong);
  font-weight: 600;
}

.sub-summary-count:empty { display: none; }

.subcategories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 12px;
}

.sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.sub-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.sub-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.sub-chip .count {
  font-size: 11px;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.cat-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.cat-chip.active {
  background: var(--cat-color, var(--accent));
  border-color: var(--cat-color, var(--accent));
  color: #fff;
}

.cat-chip .count {
  font-size: 12px;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.cat-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cat-color, var(--accent));
  flex-shrink: 0;
}

.cat-chip.active .dot {
  background: rgba(255, 255, 255, 0.9);
}

/* ----- Results bar (nad seznamem) ----- */
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
}

.results-info strong {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* ----- Seznam ----- */
.podcast-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.podcast-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
  position: relative;
}

.podcast-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--transition);
}

.card-title a:hover {
  background-size: 100% 1px;
}

.google-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-faint);
  text-decoration: none;
  transition: all var(--transition);
  background: var(--bg-elev-2);
}

.google-btn:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
  transform: scale(1.05);
}

.google-btn svg {
  width: 14px;
  height: 14px;
}

.card-author {
  font-size: 13px;
  color: var(--text-muted);
}

.card-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.card-url {
  font-size: 11px;
  color: var(--text-faint);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.card-url a {
  color: inherit;
  text-decoration: none;
}

.card-url a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.card-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sub-tag {
  font-family: inherit;
  font-size: 11px;
  padding: 2px 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.sub-tag:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.sub-tag.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-faint);
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.cat-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cat-color, var(--cat-bez));
  flex-shrink: 0;
}

.card-stats {
  display: flex;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}

.card-stats .stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-stats .stat svg {
  width: 12px;
  height: 12px;
}

/* ----- Empty / Load more ----- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 16px;
}

.load-more-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ----- Loading skeleton ----- */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ----- Footer ----- */
.site-footer {
  margin-top: 48px;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
}

.site-footer code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ----- Kompaktní řádkový režim ----- */
:root[data-view="compact"] .podcast-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

:root[data-view="compact"] .podcast-card {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

:root[data-view="compact"] .podcast-card:hover {
  transform: none;
}

:root[data-view="compact"] .card-header {
  flex: 1 1 30%;
  min-width: 200px;
  max-width: 360px;
  align-items: center;
}

:root[data-view="compact"] .card-title {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:root[data-view="compact"] .card-author {
  flex: 0 0 140px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:root[data-view="compact"] .card-description {
  flex: 1 1 0;
  -webkit-line-clamp: 1;
  font-size: 12px;
  min-width: 0;
}

:root[data-view="compact"] .card-url,
:root[data-view="compact"] .card-subs {
  display: none;
}

:root[data-view="compact"] .card-footer {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  flex: 0 0 auto;
  gap: 12px;
}

:root[data-view="compact"] .cat-badge {
  font-size: 10px;
  padding: 2px 8px 2px 6px;
}

:root[data-view="compact"] .cat-badge::before {
  width: 6px;
  height: 6px;
}

@media (max-width: 880px) {
  :root[data-view="compact"] .card-author,
  :root[data-view="compact"] .card-description {
    display: none;
  }
}

/* ----- Back to top tlačítko ----- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition),
    background var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-strong);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ----- Responsive ----- */
@media (max-width: 640px) {
  .container { padding: 16px; }
  .header-inner { padding: 12px 16px; }
  .brand h1 { font-size: 18px; }
  .podcast-list { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; }
  .sort-field select { width: 100%; }
  .btn-ghost { width: 100%; }
}

/* ============================================================
   Skin styly (dropdown #styleSelect → atribut data-style)
   Každý skin přebije CSS proměnné definované v :root.
   Autor: SIM
   ============================================================ */

.style-select {
  height: 38px;
  padding: 0 30px 0 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'><path fill='%239aa3b2' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.style-select:hover { border-color: var(--border-strong); }
.style-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ----- 1. Matrix (mono, neon green on black) ----- */
:root[data-style="matrix"] {
  --bg: #000000;
  --bg-elev: #050a05;
  --bg-elev-2: #0a160a;
  --border: #1a3a1a;
  --border-strong: #2d6b2d;
  --text: #00ff41;
  --text-muted: #00b82d;
  --text-faint: #007a1d;
  --accent: #00ff41;
  --accent-strong: #6dff8e;
  --accent-soft: rgba(0, 255, 65, 0.14);
  --shadow: 0 0 12px rgba(0, 255, 65, 0.25);
  --shadow-hover: 0 0 24px rgba(0, 255, 65, 0.45);
  --font-family-base: "Consolas", "JetBrains Mono", ui-monospace, "Courier New", monospace;
}
:root[data-style="matrix"] .brand-icon { filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.6)); }
:root[data-style="matrix"] .brand h1 { text-shadow: 0 0 8px rgba(0, 255, 65, 0.5); }

/* ----- 2. Hacker (terminal, amber accent) ----- */
:root[data-style="hacker"] {
  --bg: #0a0e0a;
  --bg-elev: #0f140f;
  --bg-elev-2: #161d16;
  --border: #2a3a2a;
  --border-strong: #3d563d;
  --text: #d4f4dd;
  --text-muted: #82a78a;
  --text-faint: #5c7c63;
  --accent: #ffb200;
  --accent-strong: #ffd152;
  --accent-soft: rgba(255, 178, 0, 0.16);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 6px 24px rgba(255, 178, 0, 0.18);
  --font-family-base: "Consolas", "JetBrains Mono", ui-monospace, "Courier New", monospace;
}

/* ----- 3. Cyberpunk (neon pink + cyan on near-black) ----- */
:root[data-style="cyberpunk"] {
  --bg: #0a0014;
  --bg-elev: #14002a;
  --bg-elev-2: #1f0040;
  --border: #ff00aa44;
  --border-strong: #ff00aa99;
  --text: #f0f8ff;
  --text-muted: #b3aacc;
  --text-faint: #6e6688;
  --accent: #ff00aa;
  --accent-strong: #00f0ff;
  --accent-soft: rgba(255, 0, 170, 0.18);
  --shadow: 0 0 16px rgba(255, 0, 170, 0.25);
  --shadow-hover: 0 0 28px rgba(0, 240, 255, 0.4);
}
:root[data-style="cyberpunk"] .brand h1 {
  background: linear-gradient(90deg, #ff00aa, #00f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- 4. Synthwave (retro 80s magenta/violet) ----- */
:root[data-style="synthwave"] {
  --bg: #0c0524;
  --bg-elev: #150a3a;
  --bg-elev-2: #1f1058;
  --border: #ff2d92;
  --border-strong: #ff7ab8;
  --text: #fef0ff;
  --text-muted: #c2a3e3;
  --text-faint: #806497;
  --accent: #ff2d92;
  --accent-strong: #ff77c1;
  --accent-soft: rgba(255, 45, 146, 0.18);
  --shadow: 0 4px 24px rgba(255, 45, 146, 0.3);
  --shadow-hover: 0 6px 32px rgba(120, 60, 255, 0.45);
}

/* ----- 5. Terminal (vintage amber CRT) ----- */
:root[data-style="terminal"] {
  --bg: #1a1410;
  --bg-elev: #261c14;
  --bg-elev-2: #2e2218;
  --border: #4a3823;
  --border-strong: #6b5230;
  --text: #ffb000;
  --text-muted: #cc8800;
  --text-faint: #8a5e00;
  --accent: #ffd147;
  --accent-strong: #ffe082;
  --accent-soft: rgba(255, 176, 0, 0.16);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 6px 24px rgba(255, 176, 0, 0.18);
  --font-family-base: "Consolas", "JetBrains Mono", ui-monospace, "Courier New", monospace;
}

/* ----- 6. Midnight (deep blue professional dark) ----- */
:root[data-style="midnight"] {
  --bg: #0a0e1a;
  --bg-elev: #111726;
  --bg-elev-2: #1a2235;
  --border: #2c3650;
  --border-strong: #3f4d6c;
  --text: #e6ecff;
  --text-muted: #98a4c8;
  --text-faint: #5e6a8a;
  --accent: #4d8fff;
  --accent-strong: #7ab0ff;
  --accent-soft: rgba(77, 143, 255, 0.16);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.55);
}

/* ----- 7. Dracula (známá paleta) ----- */
:root[data-style="dracula"] {
  --bg: #282a36;
  --bg-elev: #343746;
  --bg-elev-2: #3e4156;
  --border: #44475a;
  --border-strong: #6272a4;
  --text: #f8f8f2;
  --text-muted: #bdbde0;
  --text-faint: #6272a4;
  --accent: #bd93f9;
  --accent-strong: #ff79c6;
  --accent-soft: rgba(189, 147, 249, 0.18);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.55);
}

/* ----- 8. Nord (skandinávská paleta) ----- */
:root[data-style="nord"] {
  --bg: #2e3440;
  --bg-elev: #3b4252;
  --bg-elev-2: #434c5e;
  --border: #4c566a;
  --border-strong: #5e6779;
  --text: #eceff4;
  --text-muted: #d8dee9;
  --text-faint: #7e8694;
  --accent: #88c0d0;
  --accent-strong: #8fbcbb;
  --accent-soft: rgba(136, 192, 208, 0.2);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.45);
}

/* ----- 9. Solarized Dark ----- */
:root[data-style="solarized"] {
  --bg: #002b36;
  --bg-elev: #073642;
  --bg-elev-2: #0a4453;
  --border: #1d4e5c;
  --border-strong: #2e6878;
  --text: #fdf6e3;
  --text-muted: #93a1a1;
  --text-faint: #586e75;
  --accent: #b58900;
  --accent-strong: #d4a429;
  --accent-soft: rgba(181, 137, 0, 0.18);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.55);
}

/* ----- 10. Paper (light, serif, papírový dojem) ----- */
:root[data-style="paper"] {
  --bg: #f5efe6;
  --bg-elev: #fbf7f0;
  --bg-elev-2: #ede5d6;
  --border: #d4c8b5;
  --border-strong: #b09a78;
  --text: #2a241a;
  --text-muted: #5e5343;
  --text-faint: #8b7e6a;
  --accent: #8b5a2b;
  --accent-strong: #a8703f;
  --accent-soft: rgba(139, 90, 43, 0.14);
  --shadow: 0 2px 6px rgba(50, 30, 10, 0.08);
  --shadow-hover: 0 4px 14px rgba(50, 30, 10, 0.15);
  --font-family-base: Georgia, "Iowan Old Style", "Apple Garamond", "Times New Roman", serif;
}
