/* Modern Changelog Styles */
.changelog-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Version Badge */
.version-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea 0%, #0062ff 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.25);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Date Badge */
.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.date-badge:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* Changelog Card */
.changelog-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.changelog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #0048ff, #0099ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.changelog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.changelog-card:hover::before {
    transform: scaleX(1);
}

/* Change Item Styles */
.change-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.change-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    transition: width 0.3s ease;
}

.change-item:hover {
    transform: translateX(8px);
}

.change-item:hover::before {
    width: 5px;
}

/* Change Types with Gradient Backgrounds */
.change-added {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.change-added::before {
    background: linear-gradient(180deg, #10b981, #059669);
}

.change-changed {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e3a8a;
}

.change-changed::before {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.change-fixed {
    background: linear-gradient(135deg, #fed7aa 0%, #fbbf24 100%);
    color: #7c2d12;
}

.change-fixed::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.change-removed {
    background: linear-gradient(135deg, #fee2e2 0%, #fca5a5 100%);
    color: #7f1d1d;
}

.change-removed::before {
    background: linear-gradient(180deg, #ef4444, #dc2626);
}

/* Change Icon */
.change-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.change-added .change-icon {
    color: #10b981;
}

.change-changed .change-icon {
    color: #3b82f6;
}

.change-fixed .change-icon {
    color: #f59e0b;
}

.change-removed .change-icon {
    color: #ef4444;
}

/* Change Type Label */
.change-type-label {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

/* Change Text */
.change-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Timeline Indicator */
.timeline-indicator {
    position: absolute;
    left: -40px;
    top: 40px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    z-index: 2;
}

.timeline-line {
    position: absolute;
    left: -30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #3b82f6, transparent);
    opacity: 0.3;
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .changelog-card {
        padding: 24px;
        margin-bottom: 24px;
    }

    .timeline-indicator,
    .timeline-line {
        display: none;
    }

    .change-item {
        padding: 12px;
    }

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

/* Header Animation */
.header-gradient {
    background: #1e3eaa;
    color: white;
}

/* Changelog Image Styles */
.changelog-image-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    background: #f9fafb;
}

.changelog-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

/* Hover effect for image */
.changelog-image-container:hover .changelog-image {
    transform: scale(1.05);
}

/* Responsive image sizing */
@media (max-width: 1024px) {
    .changelog-image-container {
        max-height: 300px;
    }

    .changelog-image {
        max-height: 300px;
    }
}

@media (max-width: 640px) {
    .changelog-image-container {
        max-height: 200px;
    }

    .changelog-image {
        max-height: 200px;
    }
}

/* Loading state for images */
.changelog-image-container.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    min-height: 200px;
}

/* Image with caption support */
.changelog-image-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.changelog-image-caption {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Lightbox effect (optional) */
.changelog-image-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.changelog-image-container.fullscreen .changelog-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* Sidebar Styles */
.sidebar-item {
    position: relative;
    transition: all 0.2s ease;
}

.sidebar-item.active,
.sidebar-item:hover {
    padding-left: 1rem;
}

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

/* Sticky sidebar */
.sticky {
    position: -webkit-sticky;
    position: sticky;
}

/* Mobile responsive - sidebar mobilda ko'rinmaydi */
@media (max-width: 1024px) {
    aside {
        display: none !important;
    }

    .changelog-container {
        max-width: 100%;
    }
}