/* ════════════════════════════════════════════════════════════════
   akce.css — b.326
   Dedikovaný redesign stránky Akce a události (akce.html).
   Scope: .akce-page (přepisy sdílených prvků hero/timeline/sekce)
          + nové třídy .evt-card* (jen na této stránce, render-akce.js).

   Sdílený lightbox a homepage timeline ZŮSTÁVAJÍ beze změny vzhledu
   (timeline se scopuje přes #timeline-section, ne globálně).
   ════════════════════════════════════════════════════════════════ */

/* Lokální tokeny — stavové akcenty (mimo globální :root, ať se nemíchá) */
.akce-page {
    --evt-up:        #0052c2;   /* nadcházející */
    --evt-up-dark:   #003d91;
    --evt-live:      #10b981;   /* právě probíhá */
    --evt-live-dark: #047857;
    --evt-soon:      #0052c2;
    --evt-urgent:    #ef4444;   /* za pár dní / zítra / dnes */
    --evt-urgent-dk: #c43342;
    --evt-past:      #94a3b8;   /* minulé */
    --evt-cancel:    #dc2626;   /* zrušeno */
    --evt-card-radius: 18px;
}

/* ──────────────────────────────────────────────
   1) HERO — jemné doladění v rámci akce-page
   ────────────────────────────────────────────── */
.akce-page .page-hero {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 60%, #1366d8 100%);
}
.akce-page .page-hero-deco {
    opacity: 0.9;
}

/* ──────────────────────────────────────────────
   2) SEKCE — hlavičky Nadcházející / Minulé
   ────────────────────────────────────────────── */
.akce-page .novinky-section {
    margin-top: 30px;
}
.akce-page .evt-section-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}
.akce-page .evt-section-head-left {
    gap: 12px;
}
.akce-page .evt-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    box-shadow: 0 4px 12px rgba(0, 30, 70, 0.10);
}
.akce-page .evt-section-icon--upcoming {
    background: linear-gradient(135deg, var(--evt-up) 0%, #1f74e0 100%);
    color: #fff;
}
.akce-page .evt-section-icon--past {
    background: linear-gradient(135deg, #8fa1b6 0%, #b4c2d4 100%);
    color: #fff;
}
.akce-page .evt-section-title {
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--text-color);
}
.akce-page .evt-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 9px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--evt-up);
    background: var(--primary-light);
    border: 1px solid #d3e3f8;
    border-radius: 999px;
}
.akce-page .evt-section-count--past {
    color: #64748b;
    background: #eef2f7;
    border-color: #dde4ee;
}

/* ──────────────────────────────────────────────
   3) SEZNAM AKCÍ — nové karty .evt-card
   ────────────────────────────────────────────── */
.akce-page .hp-events-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.evt-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--evt-card-radius);
    box-shadow: 0 2px 10px rgba(15, 31, 53, 0.05);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.25, 0.8, 0.35, 1),
                box-shadow 0.22s ease, border-color 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Levý barevný akcent (stavový) */
.evt-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--evt-past);
    transition: width 0.22s ease, background 0.22s ease;
}
.evt-card--upcoming::before { background: linear-gradient(180deg, var(--evt-up), var(--evt-up-dark)); }
.evt-card--live::before     { background: linear-gradient(180deg, var(--evt-live), var(--evt-live-dark)); }
.evt-card--cancelled::before{ background: var(--evt-cancel); }

@media (hover: hover) and (pointer: fine) {
    .evt-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 34px rgba(0, 40, 95, 0.13);
        border-color: #cfe0f6;
    }
    .evt-card:hover::before { width: 6px; }
}
.evt-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 82, 194, 0.32), 0 10px 26px rgba(0, 40, 95, 0.12);
    border-color: var(--evt-up);
}

/* ── Datová dlaždice ── */
.evt-card-date {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 92px;
    padding: 16px 8px;
    margin-left: 4px; /* nechá prosvítat akcent */
    color: #fff;
    background: linear-gradient(150deg, var(--evt-up) 0%, var(--evt-up-dark) 100%);
    text-align: center;
    line-height: 1;
}
.evt-card--live .evt-card-date {
    background: linear-gradient(150deg, var(--evt-live) 0%, var(--evt-live-dark) 100%);
}
.evt-card--past .evt-card-date {
    background: linear-gradient(150deg, #aab7c7 0%, #8a99ab 100%);
}
.evt-card--cancelled .evt-card-date {
    background: linear-gradient(150deg, #b9c2cf 0%, #9aa6b4 100%);
}
.evt-card-day {
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.evt-card-day--range {
    font-size: 1.45rem;
    letter-spacing: -0.01em;
}
.evt-card-month {
    margin-top: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.95;
}
.evt-card-year {
    margin-top: 3px;
    font-size: 0.68rem;
    font-weight: 600;
    opacity: 0.7;
}

/* ── Obsah ── */
.evt-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 16px 14px 16px 18px;
}
.evt-card-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.evt-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--text-color);
    letter-spacing: -0.01em;
    transition: color 0.18s ease;
}
@media (hover: hover) and (pointer: fine) {
    .evt-card:hover .evt-card-title { color: var(--evt-up); }
    .evt-card--past:hover .evt-card-title { color: #475569; }
}

/* ── Meta chips (čas / místo) ── */
.evt-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}
.evt-card-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 7px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4d5b6f;
    background: #f1f5fa;
    border: 1px solid #e3eaf4;
    border-radius: 999px;
    line-height: 1.25;
    max-width: 100%;
}
.evt-card-chip svg {
    flex-shrink: 0;
    color: var(--evt-up);
}
.evt-card-chip--loc span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.evt-card--past .evt-card-chip svg { color: #94a3b8; }

/* ── Stavový odznak (countdown / probíhá / zrušeno / před…) ── */
.evt-card-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.evt-card-status--urgent {
    color: var(--evt-urgent-dk);
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.26);
}
.evt-card-status--soon {
    color: var(--evt-up);
    background: rgba(0, 82, 194, 0.10);
    border-color: rgba(0, 82, 194, 0.22);
}
.evt-card-status--distant {
    color: #5b6b80;
    background: #eef2f7;
    border-color: #dce3ee;
}
.evt-card-status--live {
    color: var(--evt-live-dark);
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.30);
}
.evt-card-status--past {
    color: #6b7889;
    background: #eef2f7;
    border-color: #dde4ee;
    text-transform: none;
    letter-spacing: 0.01em;
    font-weight: 700;
}
.evt-card-status--cancelled {
    color: #fff;
    background: var(--evt-cancel);
    border-color: var(--evt-cancel);
}

/* Pulzující tečka u urgentních / live */
.evt-card-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    position: relative;
}
.evt-card-status-dot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    opacity: 0.6;
    animation: evtPulse 1.8s ease-out infinite;
}
@keyframes evtPulse {
    0%   { transform: scale(0.7); opacity: 0.6; }
    70%  { transform: scale(1.7); opacity: 0; }
    100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .evt-card-status-dot::after { animation: none; }
}

/* ── Šipka ── */
.evt-card-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    color: #b3c2d4;
    transition: color 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .evt-card:hover .evt-card-arrow {
        color: var(--evt-up);
        transform: translateX(3px);
    }
    .evt-card--past:hover .evt-card-arrow { color: #64748b; }
}

/* ── Minulé akce — ztlumení ── */
.evt-card--past {
    background: #fbfcfe;
}
.evt-card--past .evt-card-title { color: #46586e; font-weight: 650; }

/* ── Zrušené akce ── */
.evt-card--cancelled .evt-card-title {
    text-decoration: line-through;
    text-decoration-color: rgba(220, 38, 38, 0.5);
    text-decoration-thickness: 2px;
    color: #6b7280;
}
.evt-card--cancelled {
    background: #fdf6f6;
}

/* ── Reveal animace ── */
.akce-page .evt-card.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.8, 0.35, 1);
}
.akce-page .evt-card.reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .akce-page .evt-card.reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── Prázdný stav (inline) ── */
.akce-page .evt-empty-inline {
    padding: 30px 24px;
    text-align: center;
    color: var(--muted-text);
    font-size: 0.96rem;
    background: linear-gradient(180deg, #fafcff, #f4f8fd);
    border: 1px dashed #cfdcec;
    border-radius: 16px;
}

/* ──────────────────────────────────────────────
   4) TIMELINE — scoped polish (jen #timeline-section)
   ────────────────────────────────────────────── */
#timeline-section .evt-timeline-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    border: 1px solid var(--border-light);
    box-shadow: 0 6px 22px rgba(0, 35, 80, 0.06);
}
#timeline-section .evt-timeline-nav {
    box-shadow: 0 4px 12px rgba(0, 35, 80, 0.12);
}

/* ──────────────────────────────────────────────
   5) RESPONSIVE
   ────────────────────────────────────────────── */
@media (max-width: 640px) {
    .akce-page .hp-events-list { gap: 11px; }

    .evt-card-date {
        width: 70px;
        padding: 13px 6px;
    }
    .evt-card-day { font-size: 1.55rem; }
    .evt-card-day--range { font-size: 1.12rem; }
    .evt-card-month { font-size: 0.66rem; margin-top: 4px; }
    .evt-card-year { font-size: 0.62rem; }

    .evt-card-body { padding: 13px 8px 13px 13px; gap: 8px; }
    .evt-card-title { font-size: 0.96rem; }

    /* status pod titulkem, ať se nemačká */
    .evt-card-headline { flex-direction: column; gap: 7px; }
    .evt-card-status { align-self: flex-start; }

    .evt-card-arrow { width: 34px; }
    .evt-card-arrow svg { width: 16px; height: 16px; }

    .akce-page .evt-section-title { font-size: 1.15rem; }
    .akce-page .evt-section-icon { width: 34px; height: 34px; }
}

@media (max-width: 380px) {
    .evt-card-chip { font-size: 0.73rem; }
    .evt-card-date { width: 62px; }
}
