/* Enhanced Changelog Styling */
.page-header-responsive h1 {
    font-size: clamp(1.35rem, 1.2rem + 0.55vw, 1.75rem);
    font-weight: 700;
    color: #1b2850;
}

.page-header-responsive p {
    font-size: clamp(0.875rem, 0.82rem + 0.2vw, 1rem);
}

.alert-updates {
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
    padding: 1rem 1.2rem;
    border-radius: 1rem;
}

.card-update {
    border-radius: 1.25rem;
    border-top: 4px solid #3498db;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-update:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.25rem 1.5rem -1rem rgba(52, 152, 219, 0.35);
}

.card-update .card-body {
    padding: clamp(1.1rem, 1rem + 0.45vw, 1.6rem);
}

.card-update .card-title {
    font-size: clamp(1.05rem, 1rem + 0.28vw, 1.3rem);
    font-weight: 700;
}

.update-date {
    font-size: clamp(0.8rem, 0.78rem + 0.12vw, 0.9rem);
    font-weight: 600;
}

.changelog-enhanced {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.45;
    color: #333;
    font-size: clamp(0.9rem, 0.88rem + 0.12vw, 0.98rem);
}

.changelog-enhanced h1,
.changelog-enhanced h2,
.changelog-enhanced h3,
.changelog-enhanced h4,
.changelog-enhanced h5,
.changelog-enhanced h6 {
    color: #2c3e50;
    margin-top: 0.85em;
    margin-bottom: 0.35em;
    font-weight: 600;
}

.changelog-enhanced > *:first-child {
    margin-top: 0;
}

.changelog-enhanced h1 {
    font-size: clamp(1.25rem, 1.15rem + 0.35vw, 1.65rem);
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.3em;
}

.changelog-enhanced h2 {
    font-size: clamp(1.16rem, 1.1rem + 0.25vw, 1.42rem) !important;
    color: #1b2850;
    font-weight: 700;
    border-left: 4px solid #3498db;
    padding-left: 0.8em;
}

.changelog-enhanced h3 {
    font-size: clamp(1rem, 0.96rem + 0.18vw, 1.2rem) !important;
    color: #1f3a63;
    font-weight: 700;
}

.changelog-enhanced h4 {
    font-size: clamp(0.95rem, 0.93rem + 0.12vw, 1.08rem);
    color: #284a7a;
    font-weight: 700;
}

.changelog-enhanced p {
    margin-bottom: 0.45em;
    margin-top: 0;
}

.changelog-enhanced p:empty {
    display: none;
}

.changelog-enhanced ul,
.changelog-enhanced ol {
    margin-bottom: 0.55em;
    margin-top: 0.25em;
    padding-left: 1.35em;
}

.changelog-enhanced li {
    margin-bottom: 0.3em;
}

.changelog-enhanced ul li {
    list-style-type: disc;
    color: #555;
}

.changelog-enhanced ol li {
    list-style-type: decimal;
    color: #555;
}

.changelog-enhanced ul ul,
.changelog-enhanced ol ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.changelog-enhanced ul ul li {
    list-style-type: circle;
    color: #666;
}

.changelog-enhanced strong,
.changelog-enhanced b {
    color: #2c3e50;
    font-weight: 600;
}

.changelog-enhanced em,
.changelog-enhanced i {
    color: #7f8c8d;
    font-style: italic;
}

.changelog-enhanced code {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    padding: 0.2em 0.4em;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.changelog-enhanced pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75em;
    overflow-x: auto;
    margin: 0.55em 0;
}

.changelog-enhanced pre code {
    background: none;
    border: none;
    padding: 0;
    color: #333;
}

.changelog-enhanced blockquote {
    border-left: 4px solid #3498db;
    background-color: #f8f9fa;
    padding: 0.75em;
    margin: 0.55em 0;
    border-radius: 0 4px 4px 0;
}

.changelog-enhanced blockquote p {
    margin: 0;
    color: #555;
    font-style: italic;
}

/* Feature sections */
.changelog-enhanced .feature-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1em;
    border-radius: 8px;
    margin: 1em 0;
}

.changelog-enhanced .feature-section h2 {
    color: white;
    border: none;
    padding: 0;
    margin-top: 0;
    font-size: clamp(1.3rem, 1.2rem + 0.35vw, 1.58rem) !important;
    font-weight: 700;
}

.changelog-enhanced .feature-section h3 {
    color: white;
    border: none;
    padding: 0;
    margin-top: 0;
    font-size: clamp(1.25rem, 1.15rem + 0.3vw, 1.5rem) !important;
    font-weight: 700;
}

.changelog-enhanced .feature-section ul li {
    color: #f8f9fa;
}

/* Improvement sections */
.changelog-enhanced .improvement-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1em;
    border-radius: 8px;
    margin: 1em 0;
}

.changelog-enhanced .improvement-section h2 {
    color: white;
    border: none;
    padding: 0;
    margin-top: 0;
    font-size: clamp(1.3rem, 1.2rem + 0.35vw, 1.58rem) !important;
    font-weight: 700;
}

.changelog-enhanced .improvement-section h3 {
    color: white;
    border: none;
    padding: 0;
    margin-top: 0;
    font-size: clamp(1.25rem, 1.15rem + 0.3vw, 1.5rem) !important;
    font-weight: 700;
}

.changelog-enhanced .improvement-section ul li {
    color: #f8f9fa;
}

/* Bug fix sections */
.changelog-enhanced .bugfix-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 1em;
    border-radius: 8px;
    margin: 1em 0;
}

.changelog-enhanced .bugfix-section h2 {
    color: white;
    border: none;
    padding: 0;
    margin-top: 0;
    font-size: clamp(1.3rem, 1.2rem + 0.35vw, 1.58rem) !important;
    font-weight: 700;
}

.changelog-enhanced .bugfix-section h3 {
    color: white;
    border: none;
    padding: 0;
    margin-top: 0;
    font-size: clamp(1.25rem, 1.15rem + 0.3vw, 1.5rem) !important;
    font-weight: 700;
}

.changelog-enhanced .bugfix-section ul li {
    color: #f8f9fa;
}

/* Navigation sections */
.changelog-enhanced .navigation-section {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2c3e50;
    padding: 1em;
    border-radius: 8px;
    margin: 1em 0;
}

.changelog-enhanced .navigation-section h2 {
    color: #2c3e50;
    border: none;
    padding: 0;
    margin-top: 0;
    font-size: clamp(1.3rem, 1.2rem + 0.35vw, 1.58rem) !important;
    font-weight: 700;
}

.changelog-enhanced .navigation-section h3 {
    color: #2c3e50;
    border: none;
    padding: 0;
    margin-top: 0;
    font-size: clamp(1.25rem, 1.15rem + 0.3vw, 1.5rem) !important;
    font-weight: 700;
}

/* Responsive design */
@media (max-width: 768px) {
    .page-header-responsive {
        align-items: flex-start;
    }

    .page-header-responsive h1 {
        font-size: clamp(1.28rem, 1.18rem + 0.35vw, 1.65rem);
    }

    .page-header-responsive p {
        font-size: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
    }

    .card-update .card-body {
        padding: 1.05rem;
    }

    .card-update {
        border-top-width: 3px;
    }

    .update-date {
        font-size: 0.9rem;
    }

    .changelog-enhanced {
        font-size: 0.92rem;
    }
    
    .changelog-enhanced ul,
    .changelog-enhanced ol {
        padding-left: 1.15em;
    }
}

/* Print styles */
@media print {
    .changelog-enhanced {
        color: #000;
    }
    
    .changelog-enhanced h1,
    .changelog-enhanced h2,
    .changelog-enhanced h3,
    .changelog-enhanced h4,
    .changelog-enhanced h5,
    .changelog-enhanced h6 {
        color: #000;
    }
    
    .changelog-enhanced .feature-section,
    .changelog-enhanced .improvement-section,
    .changelog-enhanced .bugfix-section,
    .changelog-enhanced .navigation-section {
        background: #f8f9fa !important;
        color: #000 !important;
        border: 1px solid #dee2e6;
    }
}
