/**
 * Sitemap Page Styles
 * 
 * @package Evolve AI Institute
 * @version 1.0.0
 */

/* ===================================
   Sitemap Page Container
   =================================== */
.sitemap-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* ===================================
   Page Header
   =================================== */
.sitemap-page .page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sitemap-page .page-header h1 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sitemap-page .page-header .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

/* ===================================
   Sitemap Sections
   =================================== */
.sitemap-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.sitemap-section:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sitemap-section h2 {
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.sitemap-section h2 i {
    color: #667eea;
    font-size: 1.5rem;
}

.sitemap-section h3 {
    color: #495057;
    font-weight: 600;
}

.sitemap-section h3 i {
    color: #764ba2;
}

/* ===================================
   Sitemap Links
   =================================== */
.sitemap-list {
    margin-left: 0;
    padding-left: 0;
}

.sitemap-link {
    color: #495057;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    font-size: 1rem;
    line-height: 1.5;
}

.sitemap-link:hover,
.sitemap-link:focus {
    color: #667eea;
    text-decoration: none;
    transform: translateX(5px);
}

.sitemap-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 2px;
}

.sitemap-link i.bi-chevron-right {
    color: #667eea;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.sitemap-link:hover i.bi-chevron-right {
    transform: translateX(3px);
}

/* ===================================
   Module Sections
   =================================== */
.module-section {
    padding-left: 1rem;
    border-left: 3px solid #667eea;
    margin-bottom: 2rem;
}

.module-section:last-child {
    margin-bottom: 0;
}

.module-section h3 {
    margin-bottom: 0.75rem;
}

.module-section .text-muted {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.module-section ul {
    margin-top: 0.5rem;
}

.module-section .sitemap-link {
    font-size: 0.95rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 991.98px) {
    .sitemap-page .page-header {
        padding: 2rem 1.5rem;
    }
    
    .sitemap-page .page-header h1 {
        font-size: 2rem;
    }
    
    .sitemap-section {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .sitemap-page .page-header {
        padding: 1.5rem 1rem;
    }
    
    .sitemap-page .page-header h1 {
        font-size: 1.75rem;
    }
    
    .sitemap-page .page-header .lead {
        font-size: 1rem;
    }
    
    .sitemap-section {
        padding: 1.25rem;
    }
    
    .sitemap-section h2 {
        font-size: 1.25rem;
    }
    
    .module-section {
        padding-left: 0.75rem;
        border-left-width: 2px;
    }
    
    .sitemap-link {
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    .sitemap-page .page-header h1 {
        font-size: 1.5rem;
    }
    
    .sitemap-section h2 i {
        font-size: 1.25rem;
    }
}

/* ===================================
   Accessibility Enhancements
   =================================== */
@media (prefers-reduced-motion: reduce) {
    .sitemap-link,
    .sitemap-link i,
    .sitemap-section {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .sitemap-page .page-header {
        border: 2px solid #ffffff;
    }
    
    .sitemap-section {
        border: 1px solid #333;
    }
    
    .sitemap-link:focus {
        outline-width: 3px;
    }
}

/* Focus visible for keyboard navigation */
.sitemap-link:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 3px;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .sitemap-page {
        background-color: #ffffff;
    }
    
    .sitemap-page .page-header {
        background: none;
        color: #000000;
        box-shadow: none;
        border-bottom: 2px solid #000000;
    }
    
    .sitemap-section {
        box-shadow: none;
        border: 1px solid #cccccc;
        page-break-inside: avoid;
    }
    
    .sitemap-link {
        color: #000000;
    }
    
    .sitemap-link:after {
        content: " (" attr(href) ")";
        font-size: 0.8rem;
        color: #666666;
    }
}

/* ===================================
   Dark Mode Support (Optional)
   =================================== */
@media (prefers-color-scheme: dark) {
    .sitemap-page {
        background-color: #1a1a1a;
    }
    
    .sitemap-section {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .sitemap-section h2,
    .sitemap-section h3 {
        color: #ffffff;
    }
    
    .sitemap-link {
        color: #e0e0e0;
    }
    
    .sitemap-link:hover,
    .sitemap-link:focus {
        color: #8b9cff;
    }
}
