/* Changelog Styles - Matching Hypackel UI Design */

.changelog-main {
    background-color: #1c1c1c;
    color: #ffffff;
    min-height: 100vh;
    padding-top: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.changelog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.changelog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.changelog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.changelog-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FE191E, #4169E1, #001377);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(254, 25, 30, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.changelog-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(254, 25, 30, 0.3);
    border-top: 3px solid #FE191E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sticky Sidebar - Cursor-style design */
.changelog-sidebar {
    position: sticky;
    top: 0;
    height: fit-content;
    background-color: rgba(28, 28, 28, 0.35);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    backdrop-filter: blur(12px) saturate(180%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}

.sidebar-content h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.date-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.date-item {
    padding: 0;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    border: none;
    background-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
}

.date-item:hover {
    color: #ffffff;
}

.date-item.active {
    color: #ffffff;
}

.date-item .date-main {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: inherit;
}


.date-item .date-sub {
    font-size: 0.8rem;
    opacity: 0.6;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

/* Changelog Entry - Matching feature card design */
.changelog-entry {
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
    scroll-margin-top: 120px;
    background-color: rgba(255, 255, 255, 0.00);
    /* border-radius: 15px; */
    padding: 2rem;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    transition: all 0.3s ease;
}


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

.changelog-entry-header {
    margin-bottom: 2rem;
    width: 100%;
    overflow: visible;
}

.changelog-date {
    font-size: 2rem;
    font-weight: 600;
    color: rgba(254, 25, 30, 0.5);
    margin: 0 0 0.5rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.changelog-title-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: block;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
}

/* Feature Sections - Matching existing card styles */
.changelog-features,
.changelog-improvements,
.changelog-fixes,
.changelog-patches {
    margin-bottom: 2rem;
}

.changelog-feature-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}


.changelog-feature-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.changelog-feature-item {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    list-style: disc;
}

.changelog-feature-item::marker {
    color: rgba(255, 255, 255, 0.6);
}

/* Patch Items - Enhanced styling */
.changelog-patch-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 3px solid #4169E1;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.changelog-patch-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.changelog-patch-version {
    font-weight: 600;
    color: #4169E1;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.changelog-patch-description {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .changelog-container {
        max-width: 100%;
        padding: 1rem;
    }
    
    .changelog-layout {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .changelog-container {
        padding: 1rem;
    }
    
    .changelog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .changelog-sidebar {
        position: relative;
        top: auto;
        order: 2;
        background-color: rgba(28, 28, 28, 0.45);
        border: 1px solid rgba(0, 0, 0, 0.2);
    }
    
    .changelog-content {
        order: 1;
    }
    
    .changelog-title {
        font-size: 2.5rem;
    }
    
    .changelog-date {
        font-size: 1.5rem;
    }
    
    .changelog-entry {
        padding: 1.5rem;
    }
}

/* Animation for new entries */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.changelog-entry {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar matching site design */
.changelog-content::-webkit-scrollbar {
    width: 8px;
}

.changelog-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.changelog-content::-webkit-scrollbar-thumb {
    background: rgba(254, 25, 30, 0.6);
    border-radius: 4px;
}

.changelog-content::-webkit-scrollbar-thumb:hover {
    background: rgba(254, 25, 30, 0.8);
}

/* Footer styling to match site */
.changelog-main .container footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 4rem;
}

.footerbuttons {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.2s ease;
}

.footerbuttons:hover {
    color: #FE191E !important;
}