/* ============================================================
   HARCOVNÍK web — Táborový deník (#107, denní časová osa)
   Staví na styles.css + themes.css (theme-stopa). Port z Claude Designu.
   ============================================================ */

.td-hero { padding: clamp(28px, 4vw, 52px) 0 0; }
.td-preview { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: 13.5px; color: #8a5a12; background: color-mix(in oklab, var(--zluta) 18%, transparent); border: 1px solid color-mix(in oklab, var(--zluta) 40%, transparent); padding: 8px 14px; border-radius: 10px; }
.td-preview svg { width: 15px; height: 15px; }
.td-live { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--zelena); background: color-mix(in oklab, var(--zelena) 12%, transparent); border: 1px solid color-mix(in oklab, var(--zelena) 28%, transparent); padding: 6px 13px; border-radius: 999px; margin-top: 14px; }
.td-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--zelena); animation: td-pulse 1.4s infinite; }
@keyframes td-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.td-hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1; margin-top: 16px; }
.td-hero h1 .script { font-family: var(--script); color: var(--accent); }
.td-hero p { margin-top: 14px; color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); max-width: 56ch; line-height: 1.55; }
.td-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
.td-meta .l { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.td-meta .v { font-family: var(--display); font-weight: 800; font-size: 22px; margin-top: 4px; }

/* —— denní osa —— */
.td-tl { position: relative; display: flex; flex-direction: column; }
.td-day { display: grid; grid-template-columns: 92px 1fr; gap: clamp(16px, 2.4vw, 30px); }
.td-day__rail { position: relative; display: flex; flex-direction: column; align-items: center; }
.td-day__dot { width: 64px; height: 64px; border-radius: 50%; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--accent); color: #fff; z-index: 1; box-shadow: 0 8px 20px -8px var(--accent); }
.td-day__dot--special { background: var(--zluta); color: #3a2a00; box-shadow: 0 8px 20px -8px var(--zluta); }
.td-day__dot b { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; }
.td-day__dot span { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-top: 1px; }
.td-day:not(:last-child) .td-day__rail::after { content: ""; position: absolute; top: 64px; bottom: -10px; width: 2.5px; background: linear-gradient(var(--accent), color-mix(in oklab, var(--accent) 25%, var(--line))); border-radius: 2px; }
.td-day__card { padding-bottom: clamp(26px, 4vw, 46px); min-width: 0; }
.td-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.td-card__head { padding: 20px 24px 0; }
.td-card__date { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.td-card__head h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 8px; line-height: 1.1; }
.td-card__text { padding: 14px 24px 4px; font-size: 16px; line-height: 1.65; color: var(--ink); }
.td-card__text p { margin: 0 0 12px; }

/* fotomřížka */
.td-photos { padding: 8px 24px 24px; }
.td-photos__lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.td-photos__lbl svg { width: 14px; height: 14px; }
.td-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.td-shot { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); cursor: pointer; }
.td-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.td-shot:hover img { transform: scale(1.05); }
.td-shot--more span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20,16,10,.55); color: #fff; font-family: var(--display); font-weight: 800; font-size: 22px; }

/* Videa z YouTube – náhled (thumbnail + play), na klik se nahradí přehrávačem (nic se nenačte, dokud neklikneš) */
.td-videos { padding: 0 24px 24px; }
.td-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.td-video { position: relative; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background-size: cover; background-position: center; background-color: var(--surface-2); cursor: pointer; }
.td-video__play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(20, 16, 10, .62); transition: background .2s var(--ease), transform .2s var(--ease); }
.td-video__play::after { content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.td-video:hover .td-video__play { background: var(--accent, #c8362b); transform: scale(1.06); }
.td-video__frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; display: block; }

/* prázdný stav + odkaz na fotogalerii */
.td-empty { background: var(--surface-2); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 38px 24px; text-align: center; }
.td-empty b { font-family: var(--display); font-size: 19px; }
.td-empty p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.td-empty a { color: var(--accent); text-decoration: underline; }
.td-gallink { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14.5px; }
.td-gallink a { color: var(--accent); font-weight: 600; text-decoration: none; }
.td-gallink a:hover { text-decoration: underline; }

/* —— lightbox: navigace mezi fotkami příspěvku (šipky + počítadlo; swipe řeší JS).
   Skryté ve výchozím stavu; ukáže se jen u vícefotkové galerie (data-multi="1"),
   takže jednoobrázkový lightbox jinde na webu zůstává beze změny. —— */
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; place-items: center; transition: background .2s; z-index: 2; display: none; }
.lightbox[data-multi="1"] .lb-nav { display: grid; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,.28); }
.lightbox .lb-prev { left: clamp(10px, 4vw, 40px); }
.lightbox .lb-next { right: clamp(10px, 4vw, 40px); }
.lightbox .lb-count { position: absolute; bottom: clamp(14px, 4vw, 34px); left: 50%; transform: translateX(-50%); color: #fff; font-family: var(--mono); font-size: 13px; letter-spacing: .05em; background: rgba(0,0,0,.4); padding: 5px 12px; border-radius: 999px; z-index: 2; display: none; }
.lightbox[data-multi="1"] .lb-count { display: block; }

@media (max-width: 600px) {
  .td-day { grid-template-columns: 54px 1fr; gap: 14px; }
  .td-day__dot { width: 50px; height: 50px; }
  .td-day__dot b { font-size: 18px; }
  .td-day:not(:last-child) .td-day__rail::after { top: 50px; }
  .td-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox .lb-nav { width: 40px; height: 40px; font-size: 22px; }
}

/* #115/7: archiv deníků z minulých let — kompaktní box s odkazy + počtem příspěvků */
.td-archiv { margin-top: 34px; padding: 18px 20px; border: 1px solid #e3e0d6; border-radius: 16px; background: #fff; }
.td-archiv__lbl { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #2c4a2e; margin-bottom: 12px; }
.td-archiv__lbl svg { width: 18px; height: 18px; }
.td-archiv__links { display: flex; flex-wrap: wrap; gap: 10px; }
.td-archiv__yr { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: 12px; background: #f1f3ec; text-decoration: none; color: #1c2a1e; transition: background .14s; }
.td-archiv__yr:hover { background: #e4e9dc; }
.td-archiv__yr b { font-size: 17px; }
.td-archiv__yr span { font-size: 12px; color: #6b7563; }
