@charset "utf-8";

:root {
    --wine: #4672bd;
    --wine-dark: #315795;
    --wine-soft: #edf3fc;
    --ink: #1d1b20;
    --muted: #68636a;
    --line: #e8e3e5;
    --surface: #ffffff;
    --background: #f6f3f1;
    --shadow: 0 16px 44px rgba(33, 58, 101, .09);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--background); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wine-dark); }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(70, 114, 189, .28); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; color: #fff; background: var(--wine-dark); border-radius: 10px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 45px; aspect-ratio: 1; display: grid; place-items: center; color: #fff; background: var(--wine); border-radius: 13px 13px 13px 4px; font: 800 21px/1 Georgia, serif; }
.brand-mark span { margin-left: 2px; font: 700 9px/1 ui-sans-serif, sans-serif; letter-spacing: -.02em; }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 700; }
.brand-copy small { color: var(--muted); font-size: 12px; }
.language-switch { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.language-switch:hover { color: var(--wine); background: var(--wine-soft); border-color: #b9cbea; transform: translateY(-1px); }
.language-switch > span { font-size: 11px; letter-spacing: -.08em; }
.language-slash { color: var(--wine); }

.hero { position: relative; overflow: hidden; padding: 68px 0 76px; color: #fff; background: linear-gradient(120deg, #2f5593 0%, #4672bd 54%, #638bd0 100%); }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -190px; border: 80px solid rgba(255,255,255,.055); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 70px; align-items: end; }
.eyebrow, .section-kicker { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; }
.eyebrow { color: rgba(255,255,255,.72); }
h1 { max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.035em; }
.hero-intro { max-width: 700px; margin: 23px 0 0; color: rgba(255,255,255,.82); font-size: clamp(17px, 2vw, 20px); }
.live-panel { padding: 21px; border: 1px solid rgba(255,255,255,.16); background: rgba(22, 54, 105, .3); border-radius: 18px; backdrop-filter: blur(8px); }
.live-label { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.live-dot { width: 9px; height: 9px; background: #6fe1b9; border-radius: 50%; box-shadow: 0 0 0 5px rgba(111,225,185,.14); }
.updated-text { display: block; min-height: 42px; margin-top: 14px; color: rgba(255,255,255,.72); font-size: 13px; }
.refresh-button { width: 100%; margin-top: 14px; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--wine-dark); background: #fff; border: 0; border-radius: 11px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.refresh-button:hover { background: #f3f7fd; }
.refresh-button:disabled { opacity: .68; cursor: wait; }
.refresh-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.refresh-button.is-loading svg { animation: spin .8s linear infinite; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(280px, .78fr); gap: 24px; align-items: start; margin-top: -32px; padding-bottom: 70px; position: relative; z-index: 2; }
.card { background: var(--surface); border: 1px solid rgba(232,227,229,.85); border-radius: var(--radius); box-shadow: var(--shadow); }
.queue-card { min-width: 0; overflow: hidden; }
.card-heading { padding: 27px 30px 24px; display: flex; justify-content: space-between; gap: 28px; align-items: end; border-bottom: 1px solid var(--line); }
.card-heading h2, .legend-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 27px; line-height: 1.15; }
.section-kicker { color: var(--wine); }
.card-heading > p { max-width: 280px; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.queue-content { min-height: 270px; padding: 10px 30px 25px; overflow-x: auto; }
.queue-content table { width: 100%; border-collapse: collapse; }
.queue-content th { padding: 15px 12px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 11px; text-align: left; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.queue-content td { padding: 17px 12px; border-bottom: 1px solid #f0ecee; vertical-align: middle; }
.queue-content tr:last-child td { border-bottom: 0; }
.queue-content tbody tr { transition: background .18s ease; }
.queue-content tbody tr:hover { background: #f7f9fd; }
.queue-content .counter-number { width: 74px; }
.counter-badge { display: inline-grid; min-width: 38px; height: 38px; padding-inline: 8px; place-items: center; color: var(--wine-dark); background: var(--wine-soft); border-radius: 10px; font-weight: 900; }
.agenda-list { color: #3f3a3e; font-size: 14px; font-weight: 650; }
.queue-numbers { font-variant-numeric: tabular-nums; }
.queue-current { display: inline-block; padding: 5px 9px; color: #fff; background: var(--wine); border-radius: 8px; }
.counter-closed { opacity: .46; }
.counter-closed .counter-badge { color: var(--muted); background: #eee; }
.empty-queue { color: #9a9498; font-weight: 500; }

.legend-card { padding: 28px; }
.legend-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 20px; color: var(--wine); background: var(--wine-soft); border-radius: 12px; font: italic 700 21px/1 Georgia, serif; }
.legend-content { margin-top: 20px; color: var(--muted); font-size: 13px; }
.legend-content > ul { margin: 0; padding: 0; list-style: none; }
.legend-content > ul > li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.legend-content > ul > li:first-child { padding-top: 0; }
.legend-content ul ul { margin: 11px 0 0; padding-left: 18px; }
.legend-content ul ul li { margin-bottom: 9px; }
.legend-content strong { color: var(--ink); }
.urednihodiny { display: block; margin-top: 4px; color: #857e82; font-size: 11px; line-height: 1.55; }
.help-link { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; font-weight: 800; text-decoration: none; }
.help-link span { font-size: 18px; }

.loading-state { min-height: 240px; display: flex; align-items: center; justify-content: center; gap: 11px; color: var(--muted); font-size: 14px; }
.loading-state.compact { min-height: 130px; }
.spinner { width: 18px; height: 18px; border: 2px solid #dbe5f5; border-top-color: var(--wine); border-radius: 50%; animation: spin .8s linear infinite; }
.error-state { margin: 28px 0; padding: 16px 18px; color: #7d2037; background: #fff1f4; border: 1px solid #f1c7d2; border-radius: 12px; }
.site-footer { color: #bbb2b6; background: #231d20; }
.footer-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 13px; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
    .hero { padding: 52px 0 65px; }
    .hero-grid { grid-template-columns: 1fr; gap: 34px; align-items: start; }
    .live-panel { max-width: 420px; }
    .content-grid { grid-template-columns: 1fr; }
    .legend-card { order: 2; }
}

@media (max-width: 590px) {
    .shell { width: min(100% - 24px, 1180px); }
    .header-inner { min-height: 70px; }
    .brand-copy strong { font-size: 15px; }
    .brand-copy small { font-size: 10px; }
    .brand-mark { width: 40px; border-radius: 11px 11px 11px 4px; }
    .language-switch { padding: 8px 10px; font-size: 12px; }
    .hero { padding: 42px 0 58px; }
    .hero::after { display: none; }
    h1 { font-size: clamp(37px, 12vw, 52px); }
    .hero-intro { margin-top: 17px; }
    .content-grid { margin-top: -24px; padding-bottom: 45px; }
    .card { border-radius: 18px; }
    .card-heading { padding: 23px 20px 18px; display: block; }
    .card-heading > p { margin-top: 9px; text-align: left; }
    .queue-content { padding: 8px 12px 18px; }
    .queue-content th, .queue-content td { padding-left: 8px; padding-right: 8px; }
    .queue-content th { font-size: 9px; }
    .counter-badge { min-width: 32px; height: 32px; border-radius: 8px; }
    .agenda-list, .queue-numbers { font-size: 12px; }
    .legend-card { padding: 23px 20px; }
    .footer-inner { min-height: 105px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
