/* ============================================================
   HHpro - What's New popup
   ------------------------------------------------------------
   The update list from ASSETS/Updates.txt (JS/whats_new.js).
   Reuses the generic .modal / .modal-backdrop / .modal-btn
   classes defined in cart.css.
   ============================================================ */

.whats-new-modal {
    max-width: 600px;
    gap: var(--space-sm);
}

/* Header row: title + close (X) button, as in the Docs popup */
.whats-new-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.whats-new-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    color: var(--color-text-muted);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast),
                background-color var(--transition-fast);
}

.whats-new-close:hover {
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.08);
}

/* ---------- Update list ---------- */
.whats-new-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-height: 60vh;
    overflow-y: auto;
    margin: var(--space-xs) -4px 0 0;
    padding: 0 4px var(--space-md) 0;
    /* Same bottom fade as the Docs list: rows sliding past the edge
       fade out instead of being clipped. */
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 16px), transparent);
    mask-image: linear-gradient(to bottom, black calc(100% - 16px), transparent);
}

.whats-new-date {
    margin: 0 0 var(--space-xs);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary-light);
}

.whats-new-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.whats-new-item {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    line-height: 1.45;
    color: var(--color-text);
}

.whats-new-item-new {
    border-color: var(--color-primary-light);
}

.whats-new-badge {
    flex-shrink: 0;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.03em;
}
