/* Styly veřejné stránky. Administrace má vlastní admin.css – nesahat sem kvůli ní.
   Použité váhy Manrope: 400, 600, 800. Nic jiného, jinak se váha syntetizuje. */

/* === TOKENY ===
   Akcentní azurová je vytažená z proudu kupónů v hero ilustraci.
   --invert-* je samostatný pár schválně: dřív se jako tmavé pozadí používal
   --text, což by v tmavém režimu dalo bílý text na bílém pozadí. */
:root {
    color-scheme: light dark;
    --bg: #f4f7fc;
    --surface: #fff;
    --surface-2: #f8fafd;
    --blue: #1760d6;
    --blue-hover: #104bb0;
    --blue-soft: #eaf2ff;
    --cyan: #0ea5cf;
    --cyan-ink: #0a6d88;
    --cyan-soft: #e0f6fd;
    --text: #101b2d;
    --muted: #5b6b80;
    --border: #e2eaf4;
    --border-strong: #c9d8ea;
    --invert-bg: #101b2d;
    --invert-fg: #fff;
    --on-blue: #fff;
    --ok: #216248;
    --ok-soft: #eaf6ef;
    --warn: #865700;
    --warn-soft: #fff5d6;
    --danger: #b12a25;
    --danger-soft: #fff0ee;
    --shadow-sm: 0 1px 2px #101b2d0a, 0 4px 12px #101b2d08;
    --shadow-md: 0 2px 4px #101b2d0d, 0 14px 32px #101b2d14;
    --radius: 18px;
    --radius-sm: 10px;
    --font: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c1420;
        --surface: #141e2e;
        --surface-2: #1a2537;
        --blue: #6aa5ff;
        --blue-hover: #9cc4ff;
        --blue-soft: #16294a;
        --cyan: #3ed2f7;
        --cyan-ink: #3ed2f7;
        --cyan-soft: #0f2f3c;
        --text: #eaf1fa;
        --muted: #9db0c7;
        --border: #24324a;
        --border-strong: #35486a;
        --invert-bg: #eaf1fa;
        --invert-fg: #0c1420;
        --on-blue: #0c1420;
        --ok: #7fd6a6;
        --ok-soft: #14301f;
        --warn: #f0c36a;
        --warn-soft: #33260c;
        --danger: #ff9c92;
        --danger-soft: #3a1512;
        --shadow-sm: 0 1px 2px #0006, 0 4px 12px #0004;
        --shadow-md: 0 2px 4px #0007, 0 14px 32px #0006;
    }
}

/* === RESET A ZÁKLAD === */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; font-weight: 400; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { color: var(--blue-hover); }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.25; }
h2 { font-size: clamp(1.45rem, 2.7vw, 1.95rem); font-weight: 600; letter-spacing: -.025em; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 30; padding: 12px 20px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.skip-link:focus { top: 12px; }
.container { width: min(100% - 48px, 1160px); margin: 0 auto; }
#main-content { scroll-margin-top: 80px; }

/* === HLAVIČKA === */
header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px max(24px, calc((100% - 1160px) / 2)); background: var(--surface); border-bottom: 1px solid var(--border); }
.logo { display: inline-flex; align-items: center; color: var(--text); font-size: 26px; font-weight: 800; letter-spacing: -.045em; line-height: 1; text-decoration: none; white-space: nowrap; }
.logo-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-right: 10px; background: linear-gradient(140deg, var(--blue), var(--cyan)); color: var(--on-blue); border-radius: 11px; font-size: 23px; font-weight: 800; letter-spacing: -.08em; }
.logo-dot, .heading-dot { color: var(--cyan); }
.last-updated { margin: 0; font-size: 12px; color: var(--muted); }

/* === NAVIGACE (lepí se nahoře, hlavička odjede) === */
.category-nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 6px; padding: 9px 24px; background: var(--surface); background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.category-nav a { padding: 7px 14px; border-radius: 100px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; transition: background-color .18s, color .18s; }
.category-nav a:hover { color: var(--text); background: var(--surface-2); }
.category-nav a.active { color: var(--blue); background: var(--blue-soft); }

/* === HERO === */
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 64px 0 52px; }
.hero-solo { grid-template-columns: minmax(0, 1fr); padding-bottom: 8px; }
.hero-content { min-width: 0; }
.hero-media { position: relative; isolation: isolate; display: block; justify-self: end; width: 100%; max-width: 360px; }
.hero-media::before { content: ""; position: absolute; inset: -20% -16% -10%; background: radial-gradient(closest-side, color-mix(in srgb, var(--cyan) 42%, transparent), transparent 70%); z-index: -1; }
.hero-image { display: block; width: 100%; height: auto; }
.eyebrow { display: inline-block; margin-bottom: 18px; padding: 5px 12px; background: var(--cyan-soft); border-radius: 100px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-ink); }
h1 { margin-bottom: 18px; font-size: clamp(2.3rem, 4.7vw, 3.9rem); font-weight: 800; letter-spacing: -.032em; line-height: 1.07; text-wrap: balance; }
.hero-lead { max-width: 560px; margin-bottom: 26px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; font-size: 12px; color: var(--muted); }
.hero-meta a { font-weight: 600; text-decoration: none; }
.month-label { padding: 5px 12px; background: var(--blue-soft); border-radius: 100px; color: var(--blue); font-weight: 600; }

/* === VÝPIS NABÍDEK === */
.offers { padding-top: 34px; border-top: 1px solid var(--border); }
.offers-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.offers-heading h2 { margin-bottom: 0; font-size: clamp(1.3rem, 2.2vw, 1.5rem); }
.offer-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; min-height: 42px; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; transition: background-color .18s, border-color .18s, color .18s; }
.filter-btn:hover { border-color: var(--border-strong); color: var(--text); }
.filter-btn.active { background: var(--invert-bg); border-color: var(--invert-bg); color: var(--invert-fg); }
.filter-count { padding: 1px 7px; border-radius: 100px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 600; }
.filter-btn.active .filter-count { background: transparent; background: color-mix(in srgb, var(--invert-fg) 18%, transparent); color: var(--invert-fg); }

/* === KARTA KUPÓNU === */
.coupon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.coupon { display: flex; flex-direction: column; min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .18s, box-shadow .18s, transform .18s; }
.coupon:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.coupon-topline { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 16px; min-height: 24px; }
.service-label { padding: 4px 10px; border-radius: 100px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.expiry-badge { padding: 4px 9px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.badge-soon { color: var(--warn); background: var(--warn-soft); }
.badge-urgent { color: var(--danger); background: var(--danger-soft); }
.discount-info { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 16px 18px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--blue-soft), var(--cyan-soft)); }
.discount-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.discount-value { color: var(--blue); font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -.05em; overflow-wrap: anywhere; max-width: 100%; }
.unit { font-size: .52em; margin-left: 3px; letter-spacing: -.02em; }
.coupon h3 { margin-bottom: 6px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.validity-date { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.coupon-code-container { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; margin-top: auto; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); text-align: left; transition: background-color .18s, border-color .18s; }
.coupon-code-container:hover { background: var(--blue-soft); border-color: var(--blue); }
.coupon-code-text { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 14px; font-weight: 600; letter-spacing: .04em; overflow-wrap: anywhere; user-select: text; min-width: 0; }
.copy-label { color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.copy-icon { margin-left: 5px; flex: none; vertical-align: -2px; }
.copy-status { margin: 6px 0; min-height: 26px; color: var(--ok); font-size: 11px; line-height: 1.4; }
.copy-error { color: var(--danger); }
.main-action-button { display: block; padding: 13px 16px; min-height: 46px; border: 0; border-radius: var(--radius-sm); background: var(--blue); color: var(--on-blue); text-align: center; text-decoration: none; font-size: 13px; font-weight: 600; transition: background-color .18s; }
.main-action-button:hover { background: var(--blue-hover); color: var(--on-blue); }
.info-link { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; text-decoration: none; }
.info-link:hover { color: var(--blue); }
.empty-note { padding: 36px; border: 1px dashed var(--border-strong); border-radius: var(--radius); text-align: center; color: var(--muted); background: var(--surface); }

/* === TEXTOVÉ SEKCE === */
.seo-content, .category-intro, .faq, .related-services { max-width: 780px; margin: 64px auto 0; color: var(--muted); }
.seo-content h2, .category-intro h2, .faq h2, .related-services h2 { color: var(--text); }
.how-to { max-width: none; padding: 40px; background: linear-gradient(135deg, var(--blue-soft), var(--cyan-soft)); border-radius: var(--radius); scroll-margin-top: 80px; }
.how-to h2 { margin-bottom: 28px; }
.how-to .eyebrow { background: var(--surface); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; padding: 0; margin: 0; }
.step-number { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 100px; background: var(--surface); color: var(--blue); font-size: 12px; font-weight: 800; }
.steps h3 { margin-bottom: 8px; color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.steps p { margin: 0; font-size: 13px; line-height: 1.75; }
.faq details { padding: 4px 0; border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 16px 0; color: var(--text); font-weight: 600; }
.faq summary::marker { color: var(--cyan); }
.faq details p { margin: 0 0 16px; }
.related-services ul { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; padding: 0; }
.related-services a { display: block; padding: 10px 18px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .18s; }
.related-services a:hover { border-color: var(--blue); }

/* === PATIČKA === */
footer { margin-top: 80px; padding: 48px max(24px, calc((100% - 1160px) / 2)) 24px; background: var(--surface); border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 32px; }
.footer-section .logo { margin-bottom: 18px; }
.footer-section p { max-width: 260px; }
.footer-section h4 { color: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin: 6px 0 16px; }
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section li { margin-bottom: 10px; }
.footer-section a { color: var(--muted); text-decoration: none; }
.footer-section a:hover { color: var(--blue); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); font-size: 12px; }
.footer-bottom p { margin: 0; }

/* === RESPONZIVITA === */
@media (max-width: 960px) {
    .coupon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { gap: 28px; padding-top: 48px; }
    .hero-media { max-width: 290px; }
}
@media (max-width: 600px) {
    .container { width: calc(100% - 32px); }
    header { padding: 18px 16px; gap: 16px; }
    .logo { font-size: 23px; }
    .last-updated { max-width: 130px; text-align: right; font-size: 10px; }
    .category-nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 8px 12px; scrollbar-width: none; }
    .category-nav::-webkit-scrollbar { display: none; }
    .category-nav a { flex: none; padding: 7px 12px; font-size: 12px; }
    .hero { grid-template-columns: minmax(0, 1fr); padding: 34px 0 30px; }
    .hero-media { max-width: 260px; justify-self: center; }
    .hero-lead { font-size: 14px; }
    .hero-meta { gap: 10px 16px; }
    .offers-heading { flex-wrap: wrap; gap: 8px; }
    .filter-btn { padding: 9px 13px; font-size: 12px; }
    .coupon-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .coupon { padding: 20px; }
    .discount-info { padding: 14px 16px; }
    .how-to { padding: 26px; }
    .steps { grid-template-columns: 1fr; gap: 24px; }
    .step-number { margin-bottom: 10px; }
    .seo-content, .category-intro, .faq, .related-services { margin-top: 44px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .footer-section:first-child { grid-column: 1 / -1; }
    footer { margin-top: 48px; padding: 32px 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
