/* ===== What's New Modal ===== */
.whats-new-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.whats-new-overlay.active {
    opacity: 1;
}

.whats-new-modal {
    background: white;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.whats-new-overlay.active .whats-new-modal {
    transform: translateY(0) scale(1);
}

.whats-new-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.whats-new-header-icon {
    width: 44px;
    height: 44px;
    background: #ede9fe;
    color: #7c3aed;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whats-new-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.whats-new-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.whats-new-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.whats-new-close:hover {
    color: #374151;
    background: #f3f4f6;
}

.whats-new-body {
    overflow-y: auto;
    padding: 1.5rem;
    flex: 1;
}

.whats-new-entry {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.whats-new-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.whats-new-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.whats-new-version {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-right: 0.5rem;
}

.whats-new-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.whats-new-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.whats-new-entry-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.whats-new-entry-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.whats-new-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.whats-new-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.4;
}

.whats-new-item svg {
    color: #7c3aed;
    flex-shrink: 0;
    margin-top: 2px;
}

.whats-new-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.whats-new-dismiss {
    background: #9333ea;
    color: white;
    border: none;
    padding: 0.625rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.whats-new-dismiss:hover {
    background: #7c3aed;
}

@media (max-width: 640px) {
    .whats-new-modal {
        max-height: 90vh;
        border-radius: 12px;
    }
}
