/* assets/css/public-sitemap.css */

/* ============================================
   1. PAGE SHELL
   ============================================ */
.sitemap-section {
    background: var(--sg-surface-alt, #fafaf9);
    min-height: 100vh;
    padding-bottom: 4rem;
}

.sitemap-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ============================================
   2. HERO HEADER
   ============================================ */
.sitemap-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
}

.sitemap-hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: #f7941e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.sitemap-hero-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 28px;
    background: linear-gradient(135deg, #f7941e, transparent);
    z-index: -1;
    opacity: 0.3;
}

.sitemap-hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #1a1a1a;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.sitemap-hero-subtitle {
    color: #6b6b66;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Search Bar */
.sitemap-search-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.sitemap-search-wrap i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #b3b0a8;
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.sitemap-search-wrap:focus-within i {
    color: #f7941e;
}

.sitemap-search-wrap input {
    width: 100%;
    padding: 1.1rem 3.5rem 1.1rem 3.25rem;
    border: 2px solid #e5e5e5;
    border-radius: 100px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: white;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.sitemap-search-wrap input:focus {
    border-color: #f7941e;
    box-shadow: 0 8px 30px rgba(247, 148, 30, 0.15);
}

.sitemap-search-wrap input::placeholder {
    color: #b3b0a8;
}

.sitemap-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f0ee;
    border: none;
    color: #6b6b66;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sitemap-search-clear:hover {
    background: #1a1a1a;
    color: #f7941e;
}

/* Stats Row */
.sitemap-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.sitemap-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    font-size: 0.875rem;
    color: #6b6b66;
}

.sitemap-stat i {
    color: #f7941e;
    font-size: 1rem;
}

.sitemap-stat strong {
    color: #1a1a1a;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

/* ============================================
   3. SEARCH INFO & NO RESULTS
   ============================================ */
.sitemap-search-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: #fff3e1;
    border: 1px dashed #f7941e;
    border-radius: 12px;
    margin-bottom: 2rem;
    color: #c9720f;
    font-size: 0.9rem;
    animation: sitemapSlideIn 0.3s ease;
}

@keyframes sitemapSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sitemap-search-info i {
    font-size: 1.1rem;
}

.sitemap-search-info strong {
    color: #1a1a1a;
    font-weight: 700;
}

.sitemap-search-info-clear {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #c9720f;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.sitemap-search-info-clear:hover {
    color: #1a1a1a;
}

.sitemap-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    margin-bottom: 2rem;
    animation: sitemapFadeIn 0.4s ease;
}

@keyframes sitemapFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sitemap-no-results i {
    font-size: 4rem;
    color: #d8d6d1;
    margin-bottom: 1rem;
}

.sitemap-no-results h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
}

.sitemap-no-results p {
    color: #6b6b66;
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   4. SITEMAP GRID
   ============================================ */
.sitemap-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sitemap-category {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.sitemap-category:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.sitemap-category.hidden {
    display: none;
}

.sitemap-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed #e5e5e5;
    flex-wrap: wrap;
}

.sitemap-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sitemap-category-icon--public {
    background: linear-gradient(135deg, #e8f4fd, #d6e9f8);
    color: #2980b9;
}

.sitemap-category-icon--customer {
    background: linear-gradient(135deg, #fff3e1, #ffe2b8);
    color: #c9720f;
}

.sitemap-category-icon--auth {
    background: linear-gradient(135deg, #f3e8fd, #e4d1f5);
    color: #8e44ad;
}

.sitemap-category-icon--legal {
    background: linear-gradient(135deg, #e5f3e8, #c8e6d1);
    color: #2e7d46;
}

.sitemap-category-icon--staff {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: #f7941e;
}

.sitemap-category-header > div {
    flex: 1;
    min-width: 200px;
}

.sitemap-category-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a1a;
    margin: 0 0 0.15rem;
}

.sitemap-category-desc {
    color: #6b6b66;
    font-size: 0.85rem;
    margin: 0;
}

.sitemap-category-count {
    padding: 0.35rem 0.85rem;
    background: #fafaf9;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b6b66;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.02em;
}

/* ============================================
   5. LINKS
   ============================================ */
.sitemap-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 0.75rem;
}

.sitemap-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fafaf9;
    border: 1.5px solid #f1f0ee;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sitemap-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fff3e1, #ffe2b8);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.sitemap-link:hover::before {
    opacity: 1;
}

.sitemap-link:hover {
    border-color: #f7941e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(247, 148, 30, 0.12);
}

.sitemap-link > * {
    position: relative;
    z-index: 1;
}

.sitemap-link > i:first-child {
    font-size: 1.35rem;
    color: #f7941e;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.sitemap-link-content {
    flex: 1;
    min-width: 0;
}

.sitemap-link-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 0.15rem;
}

.sitemap-lock-icon {
    font-size: 0.7rem;
    color: #b3b0a8;
}

.sitemap-link-desc {
    display: block;
    font-size: 0.8rem;
    color: #6b6b66;
    line-height: 1.4;
}

.sitemap-link-arrow {
    color: #b3b0a8;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sitemap-link:hover .sitemap-link-arrow {
    color: #c9720f;
    transform: translateX(4px);
}

.sitemap-link.hidden {
    display: none;
}

/* Locked Link Visual */
.sitemap-link--locked {
    opacity: 0.85;
}

.sitemap-link--locked:hover {
    opacity: 1;
}

/* ============================================
   6. FOOTER CARD
   ============================================ */
.sitemap-footer {
    margin-top: 3rem;
}

.sitemap-footer-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

.sitemap-footer-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: #f7941e;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    top: -100px;
    right: -50px;
}

.sitemap-footer-card > i {
    font-size: 2.5rem;
    color: #f7941e;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.sitemap-footer-card > div {
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
}

.sitemap-footer-card h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    margin: 0 0 0.25rem;
}

.sitemap-footer-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.sitemap-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: #f7941e;
    color: #1a1a1a;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.sitemap-footer-btn:hover {
    background: white;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .sitemap-container {
        padding: 1rem;
    }

    .sitemap-hero {
        padding: 1rem 0.5rem;
    }

    .sitemap-stats {
        gap: 0.5rem;
    }

    .sitemap-stat {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
    }

    .sitemap-category {
        padding: 1.25rem;
    }

    .sitemap-category-header {
        gap: 0.75rem;
    }

    .sitemap-category-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .sitemap-category-title {
        font-size: 1.05rem;
    }

    .sitemap-category-count {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    .sitemap-links {
        grid-template-columns: 1fr;
    }

    .sitemap-link {
        padding: 0.85rem 1rem;
    }

    .sitemap-footer-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .sitemap-footer-btn {
        width: 100%;
        justify-content: center;
    }
}