/**
 * Changelog Section Styles
 * BEM naming convention
 */

.changelog-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.changelog-section__title {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: #333;
}

.changelog-section__subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95em;
}

/* Changelog list */
.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 800px;
}

/* Single changelog entry */
.changelog-entry {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.changelog-entry:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.changelog-entry__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.changelog-entry__header:hover {
    background: #f5f5f5;
}

.changelog-entry__date {
    font-size: 0.85em;
    color: #888;
    white-space: nowrap;
    min-width: 90px;
    font-family: monospace;
}

.changelog-entry__name {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.changelog-entry__arrow {
    color: #999;
    transition: transform 0.2s;
    font-size: 0.8em;
}

.changelog-entry--expanded .changelog-entry__arrow {
    transform: rotate(180deg);
}

/* Expandable details */
.changelog-entry__details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.changelog-entry--expanded .changelog-entry__details {
    max-height: 600px;
}

.changelog-entry__body {
    padding: 0 18px 16px;
    border-top: 1px solid #f0f0f0;
}

.changelog-entry__why {
    margin-top: 12px;
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
}

.changelog-entry__changes {
    margin-top: 10px;
    font-size: 0.9em;
    color: #333;
    line-height: 1.6;
}

.changelog-entry__changes-title {
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
    font-size: 0.85em;
}

/* Loading and error states */
.changelog-loading,
.changelog-error {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 0.95em;
}

.changelog-error {
    color: #e57373;
}

.changelog-empty {
    text-align: center;
    padding: 30px;
    color: #bbb;
}
