/* Sitemap Page Styles */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f39c12;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.15);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

.sitemap-page {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,100 1000,0 1000,100"/></svg>') no-repeat bottom;
    background-size: cover;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.breadcrumb {
    background: transparent;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.7);
}

/* Section Padding */
.section-padding {
    padding: 4rem 0;
}

/* Sitemap Section */
.sitemap-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 70vh;
}

/* Quick Access */
.quick-access {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.quick-access::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.05) 20px,
        rgba(255,255,255,0.05) 40px
    );
    animation: quickAccessPattern 30s linear infinite;
}

@keyframes quickAccessPattern {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.quick-access h4 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.quick-link {
    background: rgba(255,255,255,0.2);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    border: 2px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.quick-link:hover {
    background: rgba(255,255,255,0.3);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.3);
}

/* Sitemap Content */
.sitemap-content {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.sitemap-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    border-radius: 0 20px 0 100px;
}

/* Sitemap Categories */
.sitemap-category {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: var(--border-radius);
    border-right: 5px solid var(--primary-color);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sitemap-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-right-color: var(--secondary-color);
}

.sitemap-category::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 0 var(--border-radius) 0 50px;
}

.sitemap-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sitemap-category h3 i {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Sitemap Links */
.sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.sitemap-links li {
    margin-bottom: 0.75rem;
    padding-right: 1.5rem;
    position: relative;
    transition: var(--transition);
}

.sitemap-links li:before {
    content: "??";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition);
}

.sitemap-links li:hover:before {
    opacity: 1;
    transform: scale(1.1);
}

.sitemap-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    line-height: 1.5;
    display: inline-block;
    position: relative;
}

.sitemap-links a:hover {
    color: var(--primary-color);
    padding-right: 0.5rem;
    text-decoration: none;
}

.sitemap-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.sitemap-links a:hover::after {
    width: 100%;
}

/* Sitemap Footer */
.sitemap-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 3rem;
}

.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    box-shadow: var(--shadow-light);
}

.alert-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.alert-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Last Updated */
.sitemap-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.last-updated {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.5em 1em;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

.bg-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .sitemap-content {
        padding: 2rem;
    }
    
    .sitemap-category {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 1rem 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    .sitemap-content {
        padding: 1.5rem;
    }
    
    .sitemap-category {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .sitemap-category h3 {
        font-size: 1.2rem;
    }
    
    .quick-access {
        padding: 1.5rem;
    }
    
    .quick-links {
        gap: 0.5rem;
    }
    
    .quick-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .last-updated {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.7rem;
    }
    
    .sitemap-content {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .sitemap-category {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .sitemap-category h3 {
        font-size: 1.1rem;
    }
    
    .sitemap-links li {
        margin-bottom: 0.5rem;
        padding-right: 1rem;
        font-size: 0.9rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sitemap-category {
    animation: fadeInUp 0.6s ease forwards;
}

.sitemap-category:nth-child(1) { animation-delay: 0.1s; }
.sitemap-category:nth-child(2) { animation-delay: 0.2s; }
.sitemap-category:nth-child(3) { animation-delay: 0.3s; }
.sitemap-category:nth-child(4) { animation-delay: 0.4s; }
.sitemap-category:nth-child(5) { animation-delay: 0.5s; }
.sitemap-category:nth-child(6) { animation-delay: 0.6s; }
.sitemap-category:nth-child(7) { animation-delay: 0.7s; }