/* Additional Documents Plugin Styles */

.additional-documents-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: inherit;
    color: inherit;
}



/* Changelog-style header for additional-documents page */
.additional-documents-archive-header {
    background: #ffffff;
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.additional-documents-archive-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.additional-documents-archive-description {
    font-size: 18px;
    color: #666;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.additional-documents-list {
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.additional-documents-menu {
    flex: 0 0 300px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

/* Documents Grid */
.documents-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.document-item {
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.document-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.document-item h4 {
    margin: 0 0 1rem 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.document-content {
    line-height: 1.6;
    color: #2c3e50;
}

.document-content h1,
.document-content h2,
.document-content h3,
.document-content h4,
.document-content h5,
.document-content h6 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.document-content p {
    margin-bottom: 1rem;
}

.document-content ul,
.document-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.document-content code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.document-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
}

.document-content pre code {
    background: none;
    padding: 0;
}

/* Menu Styles */
.additional-documents-menu h3 {
    margin: 0 0 1rem 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.documents-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-menu-item {
    margin-bottom: 4px;
}

.document-menu-link {
    display: block;
    padding: 8px 12px;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1.4;
    scroll-behavior: smooth;
}

.document-menu-link:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

.document-menu-item.active .document-menu-link {
    background-color: #3498db;
    color: #ffffff;
}

/* Search Styles */
.additional-documents-search {
    margin-bottom: 2rem;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#additional-documents-search {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #ffffff;
    color: #2c3e50;
}

#additional-documents-search:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    pointer-events: none;
}

#additional-documents-search:focus + .search-icon {
    color: #3498db;
}

/* Search Loading Spinner */
.search-loading {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.search-loading.active {
    display: block;
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-results-list {
    padding: 0;
    margin: 0;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
    background-color: #f8f9fa;
}

.search-result-item h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.search-result-item p {
    margin: 0;
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.4;
}

.no-results {
    padding: 16px;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .additional-documents-container {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .additional-documents-archive-header {
        padding: 40px 0;
        margin-bottom: 2rem;
    }
    
    .additional-documents-archive-title {
        font-size: 36px;
    }
    
    .additional-documents-archive-description {
        font-size: 16px;
    }
    
    .additional-documents-menu {
        flex: none;
        position: static;
        order: 1;
    }
    
    .additional-documents-list {
        order: 2;
    }
    
    .document-item h4 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .additional-documents-container {
        padding: 0.5rem;
    }
    
    .additional-documents-archive-header {
        padding: 30px 0;
        margin-bottom: 1.5rem;
    }
    
    .additional-documents-archive-title {
        font-size: 28px;
    }
    
    .additional-documents-archive-description {
        font-size: 14px;
    }
    
    .additional-documents-list,
    .additional-documents-menu {
        padding: 1rem;
    }
    
    .document-item h4 {
        font-size: 16px;
    }
    
    .search-result-item {
        padding: 10px 12px;
    }
    
    .search-result-item h4 {
        font-size: 13px;
    }
    
    .search-result-item p {
        font-size: 11px;
    }
}

/* Loading States */
.loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
}

/* Error States */
.error {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    background-color: #fdf2f2;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
}

/* Accessibility */
.document-menu-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

#additional-documents-search:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .additional-documents-menu {
        display: none;
    }
    
    .additional-documents-list {
        box-shadow: none;
        border: 1px solid #000;
    }
} 