/*
 * Changelog Component
 * Display version history with pagination
 */

.changelog-entry {
    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.changelog-version {
    padding: 1rem 1.5rem;
    margin: 0;
    background-color: var(--theme-bg);
    border-bottom: 1px solid var(--theme-border);
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.changelog-date {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--theme-text-secondary);
}

.changelog-content {
    padding: 1.5rem;
}

.changelog-category {
    margin-bottom: 1.5rem;
}

.changelog-category:last-child {
    margin-bottom: 0;
}

.changelog-category-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text-secondary);
    margin-bottom: 0.75rem;
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--theme-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.changelog-list li:last-child {
    border-bottom: none;
}

.changelog-commit {
    flex: 1;
    color: var(--theme-text-primary);
}

.changelog-hash {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--theme-text-secondary);
    text-decoration: none;
    padding: 0.125rem 0.375rem;
    background-color: var(--theme-bg);
    border-radius: 3px;
    transition: all var(--transition-speed);
}

.changelog-hash:hover {
    color: var(--theme-accent);
    background-color: var(--theme-surface);
}

/* Pagination */
.changelog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--theme-border);
}

.changelog-pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.changelog-pagination-btn:hover:not(:disabled) {
    border-color: var(--theme-text-primary);
    background: var(--theme-bg);
}

.changelog-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.changelog-pagination-info {
    font-size: 0.875rem;
    color: var(--theme-text-secondary);
    margin: 0 1rem;
}

/* More link */
.changelog-more {
    text-align: center;
    padding: 2rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--theme-border);
}

.changelog-more .btn {
    min-width: 200px;
}
