/* ==========================================================================
   AB-BLOG ENTERPRISE HTML SITEMAP & TOPIC SILO DIRECTORY (2026)
   ========================================================================== */

.ab-sitemap-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1e293b;
}

/* ── Hero Banner ── */
.ab-sitemap-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.ab-sitemap-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
    pointer-events: none;
}

.ab-sitemap-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c7d2fe;
    margin-bottom: 1rem;
}

.ab-sitemap-hero h1 {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.75rem 0;
    color: #ffffff;
}

.ab-sitemap-hero p {
    font-size: 1rem;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0;
    line-height: 1.6;
}

/* Search bar inside sitemap */
.ab-sitemap-search-wrap {
    margin-top: 1.75rem;
    max-width: 480px;
    position: relative;
}

.ab-sitemap-search {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 2.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: background 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

.ab-sitemap-search::placeholder {
    color: #94a3b8;
}

.ab-sitemap-search:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: #818cf8;
}

.ab-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

/* ── Bento Grid Categories ── */
.ab-sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3.5rem;
}

.ab-category-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    display: flex;
    flex-direction: column;
}

.ab-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.1);
    border-color: #c7d2fe;
}

.ab-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1.5px solid #f1f5f9;
}

.ab-cat-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ab-cat-badge {
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 99px;
}

.ab-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ab-post-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ab-post-bullet {
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.ab-post-link {
    color: #334155;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.15s, transform 0.15s;
}

.ab-post-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* ── Trust & AdSense Compliance Hub ── */
.ab-compliance-hub {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem 2.5rem;
}

.ab-compliance-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.ab-compliance-icon {
    width: 32px;
    height: 32px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
}

.ab-compliance-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.ab-compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.ab-policy-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.ab-policy-card:hover {
    border-color: #6366f1;
    background: #f5f3ff;
    color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.08);
}

.ab-policy-card svg {
    width: 18px;
    height: 18px;
    color: #64748b;
    flex-shrink: 0;
}

.ab-policy-card:hover svg {
    color: #4f46e5;
}

/* ── Sub-link item styling ── */
.ab-post-item-content {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.ab-post-date {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    font-weight: 500;
}

.ab-cat-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.ab-sitemap-meta-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.ab-sitemap-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-radius: 99px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #e0e7ff;
}

.ab-sitemap-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.ab-dot-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 10px #6366f1;
}

.ab-sitemap-section-title h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.ab-cat-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.ab-cat-link:hover {
    color: #4f46e5;
}

/* ── 6-Card Compliance Hub Upgrades ── */
.ab-compliance-sub {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0.2rem 0 0 0;
}

.ab-policy-name {
    display: block;
    font-weight: 800;
    font-size: 0.9rem;
    color: #0f172a;
}

.ab-policy-desc {
    display: block;
    font-weight: 500;
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
}

/* ── Global Footer Trust Bar ── */
.ab-footer-trust-bar {
    width: 100%;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1rem;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.8rem;
    color: #94a3b8;
    position: relative;
    z-index: 999;
}

.ab-footer-trust-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    text-align: center;
}

.ab-ft-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ab-ft-link:hover {
    color: #818cf8;
    text-decoration: underline;
}

.ab-ft-sitemap {
    color: #c7d2fe;
    font-weight: 700;
}

.ab-ft-sitemap svg {
    width: 14px;
    height: 14px;
}

.ab-ft-sep {
    color: #334155;
    font-size: 0.7rem;
    user-select: none;
}

/* ── Dark Mode Support ── */
body.ab-dark-mode .ab-sitemap-wrap {
    color: #cbd5e1;
}

body.ab-dark-mode .ab-category-card {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.ab-dark-mode .ab-cat-header {
    border-bottom-color: #1e293b;
}

body.ab-dark-mode .ab-cat-title {
    color: #f8fafc;
}

body.ab-dark-mode .ab-post-link {
    color: #94a3b8;
}

body.ab-dark-mode .ab-post-link:hover {
    color: #818cf8;
}

body.ab-dark-mode .ab-compliance-hub {
    background: #0f172a;
    border-color: #1e293b;
}

body.ab-dark-mode .ab-compliance-title {
    color: #f8fafc;
}

body.ab-dark-mode .ab-policy-card {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

body.ab-dark-mode .ab-policy-card:hover {
    background: #312e81;
    border-color: #6366f1;
    color: #ffffff;
}

body.ab-dark-mode .ab-policy-name {
    color: #f8fafc;
}

body.ab-dark-mode .ab-sitemap-section-title h2 {
    color: #f8fafc;
}

@media (max-width: 640px) {
    .ab-sitemap-hero {
        padding: 2rem 1.5rem;
    }
    .ab-sitemap-hero h1 {
        font-size: 1.75rem;
    }
    .ab-sitemap-grid {
        grid-template-columns: 1fr;
    }
    .ab-compliance-hub {
        padding: 1.5rem 1rem;
    }
    .ab-footer-trust-inner {
        font-size: 0.75rem;
        gap: 6px 10px;
    }
}

