/* Release Notes Page Styles */

/* Release Notes Header */
.release-notes-header-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.release-notes-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.back-navigation-inline {
    flex-shrink: 0;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #08203e;
}

.back-link i {
    font-size: 0.8rem;
}

.product-info-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.release-notes-logo-inline img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
}

.product-name-inline {
    font-size: 1.5rem;
    font-weight: 600;
    color: #08203e;
    margin: 0;
}

/* Release Notes Content Layout */
.release-notes-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.release-notes-container {
    display: block;
    max-width: 800px;
}

.release-notes-content {
    min-width: 0;
    line-height: 1.7;
}

/* TOC Styles */
.release-notes-toc {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 240px;
}

.toc-sticky {
    position: sticky;
    top: 2rem;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.toc-sticky h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #08203e;
}

.toc-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-content li {
    margin-bottom: 0.5rem;
}

.toc-content a {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 0.5rem;
}

.toc-content a:hover {
    color: #08203e;
    border-left-color: #84fab0;
}

/* Hugo TOC nested levels */
.toc-content ul ul {
    margin-left: 1rem;
    margin-top: 0.25rem;
}

.toc-content ul ul a {
    font-size: 0.8rem;
    padding-left: 1rem;
}

.toc-content ul ul ul a {
    font-size: 0.75rem;
    padding-left: 1.5rem;
    opacity: 0.8;
}

.no-toc {
    color: #999;
    font-style: italic;
    font-size: 0.85rem;
}

/* Release Notes Content Styling */
.release-notes-content h1 {
    font-size: 2rem;
    color: #08203e;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.release-notes-content h2 {
    font-size: 1.5rem;
    color: #08203e;
    margin: 1.5rem 0 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.3rem;
}

.release-notes-content h3 {
    font-size: 1.25rem;
    color: #557c93;
    margin: 1.25rem 0 0.75rem 0;
}

.release-notes-content p {
    margin-bottom: 1rem;
    color: #555;
}

.release-notes-content strong {
    color: #08203e;
    font-weight: 600;
}

.release-notes-content em {
    color: #666;
    font-style: italic;
}

.release-notes-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.release-notes-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

.release-notes-content code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .release-notes-toc {
        position: static;
        width: auto;
        margin-top: 2rem;
    }
    
    .toc-sticky {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .release-notes-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .product-info-inline {
        gap: 0.75rem;
        justify-content: flex-start;
    }
    
    .release-notes-logo-inline img {
        width: 40px;
        height: 40px;
    }
    
    .product-name-inline {
        font-size: 1.25rem;
    }
    
    .release-notes-section {
        padding: 0 0.5rem;
    }
    
    .toc-sticky {
        padding: 1rem;
    }
}
