/* Documents Page Specific Styles */

.docs-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 4rem 20px;
    text-align: center;
}

.docs-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.docs-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.header-info {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.info-icon {
    font-size: 1.5rem;
}

.info-text {
    font-weight: 500;
}

/* Critical Section */
.critical-section {
    margin-bottom: 3rem;
}

.critical-section .doc-category.featured {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
}

.critical-section .category-header {
    background: #dc2626;
    color: white;
}

.critical-section .category-header h2 {
    color: white;
}

.critical-section .doc-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Section Title */
.section-title {
    font-size: 2rem;
    margin: 3rem 0 2rem 0;
    text-align: center;
    color: #1f2937;
}

/* Document Grid */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Horizontal Document List */
.doc-list.horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.doc-list.horizontal .doc-link {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
}

.doc-list.horizontal .doc-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.doc-list.horizontal .doc-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.doc-list.horizontal .doc-name {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Document Categories */
.doc-category {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.doc-category:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}


.category-header {
    padding: 1.5rem;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}


.category-header h2 {
    font-size: 1.4rem;
    margin: 0;
    color: #1f2937;
}


.doc-count {
    background: #e5e7eb;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #6b7280;
}


.category-desc {
    padding: 1.5rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Document List */
.doc-list {
    padding: 1rem;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: #374151;
    border-radius: 8px;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
}

.doc-link:hover {
    background: #f3f4f6;
    color: #1e40af;
    transform: translateX(4px);
}

.doc-link.important {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
}

.doc-link.important:hover {
    background: #fecaca;
}

.doc-icon {
    font-size: 1.5rem;
    min-width: 2rem;
    text-align: center;
}

.doc-name {
    flex: 1;
    font-weight: 500;
}

.doc-type {
    background: #e5e7eb;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

/* Subcategories */
.doc-subcategory {
    margin-bottom: 1.5rem;
}

.doc-subcategory h3 {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
}

/* Expand/Collapse */
.expand-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    margin: 0.5rem 1rem;
    transition: all 0.3s;
}

.expand-btn:hover {
    background: #2563eb;
}

.expanded-content {
    display: none;
}

/* Loading state */
.doc-link.loading {
    opacity: 0.6;
    pointer-events: none;
}

.doc-link.loading::after {
    content: '...';
    animation: loading 1s infinite;
}

@keyframes loading {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

/* Footer */
.docs-footer {
    background: #f8f9fa;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-note {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-note h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.footer-note p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.disclaimer {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-list.horizontal {
        grid-template-columns: 1fr;
    }
    
    .header-info {
        gap: 1rem;
    }
    
    .info-item {
        padding: 0.5rem 1rem;
    }
    
    .doc-link {
        font-size: 0.9rem;
    }
    
    .doc-icon {
        font-size: 1.25rem;
    }
    
    .doc-list.horizontal .doc-icon {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    .expand-btn {
        display: none;
    }
    
    .expanded-content {
        display: block !important;
    }
    
    .doc-link {
        color: black;
        page-break-inside: avoid;
    }
}