/* ==========================================================================
   Release feeds: the public changelog (templates/novinky.html) and the
   booking release notes (templates/booking/release_notes.html).
   Markup: templates/components/_release_feed.html. Data: utils/release_feed.py.

   Page-only: linked by both templates, never bundled into main.bundled.css.
   Only --ds-* design tokens are used; both the main site and booking load them
   (design-system/tokens.css) and the dark theme overrides them, so this file
   needs no dark rules of its own.
   ========================================================================== */

.rf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 20px;
    margin: 16px 0 12px;
}
.rf-toolbar-secondary { align-items: center; margin-top: 0; }
.rf-toolbar-secondary .changelog-viewbar,
.rf-toolbar-secondary .changelog-filter-bar { margin-bottom: 0; }

.rf-axis { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rf-axis-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ds-text-secondary);
}

/* Wrap before slide: on a phone the chips flow onto a second line. */
.rf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-pill);
    background: var(--ds-surface);
    color: var(--ds-text) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: border-color 0.15s, background 0.15s;
}
.rf-chip:hover { border-color: var(--ds-primary); }
.rf-chip.active {
    background: var(--ds-primary-light);
    border-color: var(--ds-primary);
    color: var(--ds-primary-text) !important;
}
.rf-chip-n {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ds-text-secondary);
}
.rf-chip.active .rf-chip-n { color: inherit; }

.rf-search { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1 1 240px; max-width: 420px; }
.rf-search-input {
    flex: 1 1 160px;
    min-width: 0;
    padding: 6px 12px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-pill);
    background: var(--ds-surface);
    color: var(--ds-text);
    font-size: 0.9rem;
}
.rf-search-input:focus { outline: 2px solid var(--ds-primary); outline-offset: 1px; }
.rf-search-btn {
    padding: 6px 14px;
    border: 1px solid var(--ds-primary);
    border-radius: var(--ds-radius-pill);
    background: var(--ds-primary-strong);
    color: var(--ds-on-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.rf-search-clear { font-size: 0.85rem; color: var(--ds-text-secondary); }

.rf-notice {
    margin: 4px 0 14px;
    padding: 8px 12px;
    border-left: 3px solid var(--ds-primary);
    background: var(--ds-surface-alt);
    border-radius: var(--ds-radius-sm);
    color: var(--ds-text);
    font-size: 0.9rem;
}
.rf-notice a { margin-left: 6px; font-weight: 600; }

.rf-month-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 16px;
}
.rf-month-nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.rf-month-nav a {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--ds-radius-pill);
    background: var(--ds-surface-alt);
    color: var(--ds-text) !important;
    font-size: 0.8rem;
    text-decoration: none !important;
}
.rf-month-nav a:hover { background: var(--ds-primary-light); }

.rf-month { scroll-margin-top: 72px; margin-bottom: 8px; }
.rf-month-heading {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 18px 0 10px;
    padding: 6px 0;
    background: var(--ds-bg, var(--ds-surface));
    color: var(--ds-text);
    font-size: 1.05rem;
    font-weight: 700;
    border-bottom: 1px solid var(--ds-border);
}

/* Release anchors land below a sticky header, not under it. */
.changelog-card, .ds-rn-card { scroll-margin-top: 110px; }
.rf-date-link { text-decoration: none !important; }
.rf-date-link:hover { text-decoration: underline !important; }

/* Booking-only bits rendered by templates/booking/release_notes.html. */
.rf-new-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--ds-radius-pill);
    background: var(--ds-status-success-bg);
    color: var(--ds-status-success-text);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ds-rn-card.rf-is-new { border-color: var(--ds-status-success-text); }
.rf-audience-tag {
    flex-shrink: 0;
    display: inline-block;
    padding: 1px 7px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-pill);
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--ds-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ds-rn-toolbar { margin-bottom: 6px; }
/* Booking's context bar is sticky at the top; the month heading sticks below it. */
.ds-rn-wrap .rf-month-heading { text-align: left; top: var(--ds-ctx-offset, var(--ds-ctx-h, 44px)); }

@media (max-width: 600px) {
    .rf-toolbar { gap: 10px; }
    .rf-search { max-width: none; flex-basis: 100%; }
}
