/* ================================================================
   SITEMAP PAGE — Peta Situs
   All text colors darkened for readability on white background.
   overflow-x hidden to prevent horizontal scroll on mobile.
   ================================================================ */

/* Prevent horizontal overflow on the entire page */
.cj-sitemap-section,
.cj-sitemap-grid,
.cj-sitemap-tags,
.cj-sitemap-card,
.cj-sitemap-card-meta {
    overflow: hidden;
}

/* Stat Cards */
.cj-sitemap-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.cj-sitemap-stat-icon {
    font-size: 22px !important;
    flex-shrink: 0;
}

.cj-sitemap-stat-num {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.cj-sitemap-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section blocks */
.cj-sitemap-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.cj-sitemap-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.cj-sitemap-section-icon {
    font-size: 20px !important;
    padding: 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.cj-sitemap-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.cj-sitemap-section-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Card Grid */
.cj-sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cj-sitemap-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 48px;
    min-width: 0;
}

.cj-sitemap-card:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, .1);
}

.cj-sitemap-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cj-sitemap-card:hover .cj-sitemap-card-name {
    color: #003380;
}

.cj-sitemap-card-meta {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* Active badge */
.cj-sitemap-badge-active {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.4;
    white-space: nowrap;
}

/* Total count */
.cj-sitemap-card-total {
    color: #334155;
    white-space: nowrap;
}

/* Company card variant */
.cj-sitemap-card--company {
    flex-wrap: nowrap;
}

.cj-sitemap-company-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.cj-sitemap-company-icon {
    font-size: 20px !important;
    color: #475569;
    flex-shrink: 0;
}

/* Tag Pills */
.cj-sitemap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cj-sitemap-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    transition: all 0.2s ease;
    max-width: 100%;
}

.cj-sitemap-tag:hover {
    background: #f5f3ff;
    border-color: #c4b5fd;
    color: #6d28d9;
    transform: translateY(-1px);
}

.cj-sitemap-tag-hash {
    color: #7c3aed;
    font-weight: 800;
    flex-shrink: 0;
}

.cj-sitemap-tag-count {
    font-size: 10px;
    font-weight: 700;
    color: #334155;
    background: #e2e8f0;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 2px;
    flex-shrink: 0;
}

.cj-sitemap-tag:hover .cj-sitemap-tag-count {
    background: #ddd6fe;
    color: #7c3aed;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .cj-sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cj-sitemap-grid {
        grid-template-columns: 1fr;
    }

    .cj-sitemap-section {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .cj-sitemap-section-title {
        font-size: 16px;
    }

    .cj-sitemap-section-count {
        font-size: 11px;
        padding: 3px 8px;
    }

    .cj-sitemap-card {
        padding: 10px 12px;
        gap: 6px;
    }

    .cj-sitemap-card-name {
        font-size: 12px;
    }

    .cj-sitemap-card-meta {
        font-size: 10px;
        gap: 4px;
    }

    .cj-sitemap-badge-active {
        font-size: 10px;
        padding: 2px 6px;
    }

    .cj-sitemap-card-total {
        font-size: 10px;
    }

    .cj-sitemap-tags {
        gap: 6px;
    }

    .cj-sitemap-tag {
        padding: 6px 12px;
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}