/* Model Changelog Styles */

.changelog-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group select {
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Timeline */
.changelog-timeline {
    position: relative;
    padding-left: 2rem;
}

.changelog-timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    border-radius: 1px;
}

.loading-state {
    padding: 2rem;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* Date group */
.changelog-date-group {
    margin-bottom: 2rem;
}

.changelog-date-header {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    position: relative;
}

.changelog-date-header::before {
    content: "";
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translate(-1px, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid var(--bg-color);
}

/* Entry card */
.changelog-entry {
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.6rem;
    transition: border-color 0.2s;
    position: relative;
}

.changelog-entry:hover {
    border-color: rgba(99, 102, 241, 0.25);
}

.changelog-entry::before {
    content: "";
    position: absolute;
    left: -1.65rem;
    top: 1.25rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
}

.changelog-entry.type-price_change::before { background: #10b981; }
.changelog-entry.type-new_model::before { background: #6366f1; }
.changelog-entry.type-benchmark_drift::before { background: #f59e0b; }
.changelog-entry.type-behavioral::before { background: #8b5cf6; }
.changelog-entry.type-deprecation::before { background: #ef4444; }

.changelog-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.changelog-entry-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.changelog-entry-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.changelog-type-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.changelog-type-badge.price_change { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.changelog-type-badge.new_model { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.changelog-type-badge.benchmark_drift { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.changelog-type-badge.behavioral { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.changelog-type-badge.deprecation { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.changelog-severity-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.changelog-severity-badge.info { background: rgba(99, 102, 241, 0.08); color: var(--text-tertiary); }
.changelog-severity-badge.warning { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.changelog-severity-badge.critical { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.changelog-entry-meta {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.changelog-entry-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.changelog-entry-model {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

.changelog-entry-model a {
    color: var(--primary-color);
    text-decoration: none;
}

.changelog-entry-model a:hover {
    text-decoration: underline;
}

/* Empty state */
.changelog-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.changelog-empty h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.changelog-empty p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .changelog-filters {
        flex-direction: column;
    }
    .changelog-timeline {
        padding-left: 1.5rem;
    }
    .changelog-entry-header {
        flex-direction: column;
        gap: 0.3rem;
    }
}
