/* HelloWP Changelog Styles - Bootstrap 5 Based with Dark Mode Support */

.changelog-modern {
    margin-top: 3rem;
}

/* Sidebar Styles */
.changelog-sidebar .card {
    max-height: calc(100vh - 140px);
}

.version-nav {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
    width: 100%;
}

.version-nav::-webkit-scrollbar {
    width: 4px;
}

.version-nav::-webkit-scrollbar-track {
    background: transparent;
}

.version-nav::-webkit-scrollbar-thumb {
    background: var(--bs-border-color);
    border-radius: 2px;
}

.version-nav::-webkit-scrollbar-thumb:hover {
    background: var(--bs-secondary);
}

.version-link {
    display: block !important;
    width: 100%;
    color: var(--bs-secondary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word;
    float: none !important;
    clear: both;
}

.version-link:hover {
    background-color: var(--bs-tertiary-bg);
    border-left-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

.version-link.active {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-left-color: var(--bs-primary);
    color: var(--bs-primary);
}

.version-link.active .version-number {
    color: var(--bs-primary);
}

.version-number {
    font-size: 0.875rem;
}

.version-date {
    font-size: 0.75rem;
}

/* Release Card */
.changelog-release {
    scroll-margin-top: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.changelog-release:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.release-meta h2 {
    font-size: 1.75rem;
    line-height: 1.2;
}

/* Icon Styles - HelloWP Format */
.icon-md {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

/* Change Groups */
.change-group {
    border: none;
    transition: transform 0.2s;
}

.change-group:hover {
    transform: translateX(4px);
}

.change-group h3 {
    font-size: 1rem;
}

.change-group ul li {
    line-height: 1.6;
}

.change-group ul li strong {
    font-weight: 600;
    color: var(--bs-emphasis-color);
}

/* Release Description */
.release-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--bs-secondary-color);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 767.98px) {
    .changelog-modern {
        margin-top: 1rem;
    }

    .release-meta h2 {
        font-size: 1.5rem;
    }

    .icon-md {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}
