/* ==========================================================================
   V2.7 RELEASE CHANGELOG MODAL STYLES (THEME-AWARE)
   ========================================================================== */

.changelog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* --- DEFAULT THEME: DARK MODE --- */
.changelog-card {
    background-color: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155;
    border-radius: 12px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    padding: 24px;
    font-family: inherit;
    text-align: left;
    animation: fadeInScale 0.3s ease;
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid #334155;
    padding-bottom: 12px;
}

.changelog-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fafc;
}

.changelog-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
}

.changelog-close {
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 4px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.changelog-close:hover {
    color: #f8fafc;
}

.changelog-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.changelog-item {
    background-color: #1e293b;
    border: 1px solid #334155;
    padding: 12px 14px;
    border-radius: 8px;
}

.changelog-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary, #3b82f6);
    margin-bottom: 4px;
}

.changelog-item-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #cbd5e1;
}

.changelog-footer {
    margin-top: 20px;
    text-align: right;
}

.changelog-btn {
    padding: 8px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--primary, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    transition: opacity 0.2s ease;
}

.changelog-btn:hover {
    opacity: 0.9;
}

/* --- LIGHT THEME OVERRIDES --- */
body.light-theme .changelog-card {
    background-color: #ffffff;
    color: #0f172a;
    border-color: #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body.light-theme .changelog-header {
    border-bottom-color: #e2e8f0;
}

body.light-theme .changelog-title {
    color: #0f172a;
}

body.light-theme .changelog-date,
body.light-theme .changelog-close {
    color: #64748b;
}

body.light-theme .changelog-close:hover {
    color: #0f172a;
}

body.light-theme .changelog-item {
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

body.light-theme .changelog-item-desc {
    color: #334155;
}

/* --- ANIMATIONS --- */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}