/* --- SITEMAP PAGE STYLES --- */
.sitemap-section {
    position: relative;
    padding: 120px 5% 100px;
    background: var(--bg-color);
    color: var(--text-main);
    overflow: hidden;
}

.sitemap-glow-1 {
    position: absolute;
    top: 15%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 123, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.sitemap-glow-2 {
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 145, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.sitemap-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.sitemap-header {
    text-align: center;
    margin-bottom: 45px;
}

.sitemap-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(255, 123, 0, 0.12);
    border: 1px solid rgba(255, 123, 0, 0.25);
    color: var(--primary-orange);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.sitemap-main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -1.2px;
}

.sitemap-main-title .accent-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sitemap-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.header-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto;
    border-radius: 10px;
}

/* --- STATS / QUICK METRICS BAR --- */
.sitemap-meta-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 18px 28px;
    margin-bottom: 50px;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-item i {
    color: var(--primary-orange);
    font-size: 1.2rem;
}

.meta-text span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.meta-text strong {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* --- SITEMAP CARDS GRID --- */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sitemap-card {
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 35px 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.sitemap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sitemap-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 123, 0, 0.35);
    box-shadow: 0 30px 60px rgba(255, 123, 0, 0.1);
}

.sitemap-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 123, 0, 0.12);
    border: 1px solid rgba(255, 123, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

/* --- LINKS LIST --- */
.sitemap-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sitemap-link-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sitemap-link-item:hover {
    background: rgba(255, 123, 0, 0.05);
    border-color: rgba(255, 123, 0, 0.2);
}

.link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.link-anchor {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.link-anchor i {
    font-size: 0.8rem;
    color: var(--primary-orange);
    transition: transform 0.2s ease;
}

.link-anchor:hover {
    color: var(--primary-orange);
}

.link-anchor:hover i {
    transform: translateX(3px);
}

.link-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 3px;
}

.url-slug {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
    width: fit-content;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-public {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-auth {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-meta {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Portal Card (Spanning across columns) */
.portal-card {
    grid-column: 1 / -1;
    padding: 28px 32px;
}

.portal-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.portal-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.portal-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.portal-title-row .card-title {
    margin-bottom: 0;
}

.portal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.btn-portal-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 12px;
    background: var(--gradient);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}

.btn-portal-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 123, 0, 0.4);
    color: #ffffff !important;
}

.btn-portal-login i {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.btn-portal-login:hover i {
    transform: translateX(4px);
}

.badge-restricted {
    background: rgba(255, 123, 0, 0.12);
    color: var(--primary-orange);
    border: 1px solid rgba(255, 123, 0, 0.25);
}

@media (max-width: 1024px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sitemap-section {
        padding: 100px 4% 60px;
    }
    
    .sitemap-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
    }
    
    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    .portal-card-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .portal-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .portal-title-row {
        flex-wrap: wrap;
    }

    .btn-portal-login {
        width: 100%;
        justify-content: center;
    }
}
