/* StreamRadar.cz – tonight.css: styles of "Co dnes večer" (templates/tonight). Loaded after core.css by {% block
   stylesheets %} of the page templates (phase 6 point 49); the rules keep their order of the former app.css. A rule
   that more page groups need belongs to core.css. */

/* ==========================================================================
   "Co dnes večer" — moonlit hero, five-question wizard, three picks
   ========================================================================== */

.tonight-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--s-5) clamp(56px, 7vw, 120px); background: #07080b; }
.tonight-hero__sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 90% at 82% 0%, rgb(226 184 102 / .16), transparent 60%),
        radial-gradient(70% 120% at 10% 120%, rgb(54 72 140 / .35), transparent 60%),
        linear-gradient(180deg, #0b0e1a 0%, #07080b 100%);
}
.tonight-hero__moon {
    position: absolute;
    top: clamp(28px, 6vw, 90px);
    right: clamp(24px, 9vw, 220px);
    width: clamp(84px, 11vw, 190px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 34%, #fff6df 0%, #f3d290 38%, #c9973f 72%, #8a6223 100%);
    box-shadow: 0 0 60px 10px rgb(240 205 134 / .25), 0 0 180px 40px rgb(240 205 134 / .12);
    -webkit-mask-image: radial-gradient(circle at 70% 36%, transparent 38%, #000 39.5%);
    mask-image: radial-gradient(circle at 70% 36%, transparent 38%, #000 39.5%);
}
.tonight-hero__stars {
    position: absolute;
    inset: 0;
    opacity: .7;
    background-image:
        radial-gradient(1.2px 1.2px at 12% 22%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 28% 62%, #fff 50%, transparent 51%),
        radial-gradient(1.4px 1.4px at 44% 18%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 58% 48%, #fff 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 66% 12%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 74% 70%, #fff 50%, transparent 51%),
        radial-gradient(1.3px 1.3px at 90% 58%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 6% 80%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 36% 86%, #fff 50%, transparent 51%);
}
@media (prefers-reduced-motion: no-preference) {
    /* WCAG 2.2.2: decorative motion stops within 5 s */
    .tonight-hero__stars { animation: twinkle 1.6s ease-in-out 3 alternate both; }
    .tonight-hero__moon { animation: rise .9s var(--ease) both; }
}

.tonight-hero__inner { position: relative; }
.tonight-hero__title { margin: 0 0 var(--s-4); font-size: var(--step-5); font-weight: 400; letter-spacing: -.035em; }
.tonight-hero__title em { color: var(--gold); font-weight: 300; }
.tonight-hero__lead { max-width: 54ch; margin: 0; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

.tonight__body {
    display: grid;
    gap: var(--section) clamp(32px, 4vw, 88px);
    margin-top: calc(clamp(28px, 4vw, 64px) * -1);
    padding-bottom: var(--section);
}
@media (min-width: 1200px) {
    .tonight__body { grid-template-columns: minmax(420px, 5fr) minmax(0, 7fr); align-items: start; }
    /* below the two-row header (102px) up to 1439px, below the one-row header (76px) from 1440px */
    .wizard-wrap { position: sticky; top: 120px; }
    .tonight__body--answered .wizard-wrap { order: -1; }
}
@media (min-width: 1440px) {
    .wizard-wrap { top: 100px; }
}

/* answered state: results first, the form collapsed under "Upravit výběr" (opened by JS on wide screens) */
.wizard-wrap { min-width: 0; }
.wizard-wrap__summary { position: relative; z-index: 1; width: fit-content; margin-bottom: var(--s-3); cursor: pointer; list-style: none; }
.wizard-wrap__summary::-webkit-details-marker { display: none; }
.wizard-wrap__summary::after { content: "▾"; margin-left: 8px; transition: transform .2s; }
.wizard-wrap[open] > .wizard-wrap__summary::after { transform: rotate(180deg); }
@media (min-width: 1200px) {
    .tonight__body--answered .tonight-results { padding-top: 0; }
}

/* wizard */
.wizard {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
    padding: clamp(18px, 2.4vw, 36px);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xl);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, var(--gold) 4%), var(--surface));
    box-shadow: var(--shadow-lg);
}
.wizard__step { min-width: 0; margin: 0; padding: 0 0 var(--s-5); border: 0; border-bottom: 1px solid var(--line); }
.wizard__step + .wizard__step { padding-top: var(--s-5); }
.wizard__step--last { border-bottom: 0; }
.wizard__q { display: flex; align-items: baseline; gap: 12px; margin: 0 0 var(--s-3); padding: 0; font: 500 var(--step-1)/1.2 var(--font-display); letter-spacing: -.01em; }
.wizard__num { color: var(--gold); font-size: .8em; font-style: italic; font-variant-numeric: lining-nums; }
.wizard__hint { margin: calc(var(--s-2) * -1) 0 var(--s-3); color: var(--faint); font-size: var(--step--1); }
.wizard__submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); padding-top: var(--s-3); }
.btn--lg { min-height: 54px; padding-inline: 1.8em; font-size: var(--step-0); }
.wizard__reset { color: var(--muted); font-size: var(--step--1); font-weight: 700; }
/* inputs are visually hidden but stay focusable; the face shows state */

.svc-pick input:checked + .svc-pick__face {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, var(--bg-raised));
    box-shadow: 0 10px 26px -16px var(--accent), inset 0 0 0 1px var(--accent);
}
.svc-pick input:checked + .svc-pick__face .svc-pick__name { color: var(--text); }
.svc-pick input:checked + .svc-pick__face .svc-pick__tick { border-color: var(--gold); background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5' fill='none' stroke='%231c1407' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.svc-pick input:focus-visible + .svc-pick__face, .opt input:focus-visible + .opt__face { outline: 2px solid var(--gold); outline-offset: 3px; }

.opt-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-2); }
.opt-grid--3 { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt__face {
    display: grid;
    gap: 2px;
    height: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r);
    background: var(--bg-raised);
    transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t) var(--ease);
}
.opt--pill .opt__face { display: inline-grid; place-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--pill); font-weight: 700; font-size: var(--step--1); }
.opt__glyph { color: var(--gold); font-size: 1.15rem; line-height: 1.2; }
.opt__label { font-weight: 800; font-size: var(--step--1); }
.opt__hint { color: var(--faint); font-size: var(--step--2); line-height: 1.35; }
.opt:hover .opt__face { border-color: color-mix(in srgb, var(--gold) 50%, var(--line-strong)); }
.opt input:checked + .opt__face { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
/* results */
.tonight-results { min-width: 0; padding-top: clamp(28px, 4vw, 64px); scroll-margin-top: 90px; }
.tonight-results__head { margin-bottom: var(--s-6); }
.tonight-results__head h2 { margin-bottom: var(--s-2); font-size: var(--step-3); }
.picks { display: grid; gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.pick {
    position: relative;
    display: grid;
    grid-template-columns: clamp(108px, 22vw, 190px) minmax(0, 1fr);
    gap: clamp(16px, 2.4vw, 36px);
    align-items: center;
    padding: clamp(14px, 2vw, 28px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background:
        radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
        var(--surface);
    box-shadow: var(--shadow);
}
.pick__num {
    position: absolute;
    right: clamp(14px, 2vw, 32px);
    bottom: -.12em;
    color: transparent;
    font: italic 400 clamp(5rem, 6vw + 2rem, 9rem)/1 var(--font-display);
    -webkit-text-stroke: 1px color-mix(in srgb, var(--gold) 40%, transparent);
    pointer-events: none;
    user-select: none;
}
.pick__poster .card__frame { border-radius: var(--r-lg); }
.pick__body { position: relative; display: grid; gap: 6px; min-width: 0; }
.pick__meta { margin: 0; color: var(--faint); font-size: var(--step--2); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pick__title { margin: 0; font: 500 var(--step-2)/1.08 var(--font-display); letter-spacing: -.015em; }
.pick__title a { text-decoration: none; }
.pick__reason { margin: 4px 0 0; color: var(--gold); font-size: var(--step--1); font-weight: 700; line-height: 1.45; }
.pick__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; }
.pick__foot .lang { border: 1px solid var(--line-strong); }
.pick__cta { justify-self: start; margin-top: var(--s-3); }
@media (prefers-reduced-motion: no-preference) {
    .pick { animation: rise .6s var(--ease) both; }
    .pick:nth-child(2) { animation-delay: .08s; }
    .pick:nth-child(3) { animation-delay: .16s; }
}

@media (max-width: 520px) {
    .pick { grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
    .pick__title { font-size: var(--step-1); }
    .pick__cta { min-height: 40px; padding: .5em 1em; }
}

.tonight-more { margin-top: var(--section); }

/* phones: the collapsed search field is a 44px circle (its padding must not widen it under the theme toggle) */
@media (max-width: 759px) {
    .tonight-hero__moon { top: 14px; right: 14px; width: 64px; opacity: .85; }
    .tonight-hero .kicker { max-width: calc(100% - 70px); }
}

/* home: prompt, Překvap mě, recently viewed */

.tonight-hero__surprise { margin: var(--s-4) 0 0; }
/* "Co dnes večer": tips only from Moje služby */
.tonight-mine { margin: var(--s-2) 0 0; }
