/* HCM Programmatic SEO — Dark matrix theme matching site design */
/* All styles scoped under .hcm-pseo-page */
/* Uses --hcm-* CSS variables defined by the site header template */

/* ── Reset Astra body/container backgrounds on pSEO pages ─────── */
body:has(.hcm-pseo-page),
body.hcm-pseo-active {
    background-color: #020810 !important;
    background-image: linear-gradient(180deg, #020810 0%, #041220 40%, #062030 70%, #0a3040 100%) !important;
    background-attachment: fixed !important;
}

body:has(.hcm-pseo-page) #content.site-content,
body:has(.hcm-pseo-page) .ast-container,
body.hcm-pseo-active #content.site-content,
body.hcm-pseo-active .ast-container {
    background: transparent !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* ── Header logo size fix on pSEO pages ──────────────────────── */
body.hcm-pseo-active .hcm-header__logo img {
    height: 55px !important;
    width: auto !important;
    max-height: 55px !important;
    object-fit: contain !important;
}

body.hcm-pseo-active .hcm-header--scrolled .hcm-header__logo img {
    height: 45px !important;
    max-height: 45px !important;
}

/* ── Page Container ───────────────────────────────────────────── */
.hcm-pseo-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 20px 60px; /* 120px top clears the 90px fixed header */
    line-height: 1.7;
    color: var(--hcm-text-body, rgba(255, 255, 255, 0.8));
    font-family: var(--hcm-font-body, 'Barlow', sans-serif);
    min-height: 60vh;
}

/* ── Breadcrumbs ──────────────────────────────────────────────── */
.hcm-pseo-breadcrumbs {
    font-size: 0.85rem;
    color: var(--hcm-text-subtle, rgba(255, 255, 255, 0.4));
    margin-bottom: 24px;
    padding: 0;
}

.hcm-pseo-breadcrumbs a {
    color: var(--hcm-cyan-secondary, #0abdc6);
    text-decoration: none;
}

.hcm-pseo-breadcrumbs a:hover {
    color: var(--hcm-cyan, #14ffec);
    text-decoration: underline;
}

.hcm-pseo-breadcrumbs .hcm-pseo-breadcrumb-sep {
    margin: 0 8px;
    color: var(--hcm-text-subtle, rgba(255, 255, 255, 0.3));
}

/* ── Hero Section ─────────────────────────────────────────────── */
.hcm-pseo-hero {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--hcm-border, rgba(255, 255, 255, 0.08));
}

.hcm-pseo-hero h1 {
    font-family: var(--hcm-font-display, 'Bebas Neue', sans-serif);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin: 0 0 16px;
    color: var(--hcm-cyan, #14ffec);
}

.hcm-pseo-hero .hcm-pseo-hero-intro {
    font-size: 1.125rem;
    color: var(--hcm-text-body, rgba(255, 255, 255, 0.8));
    max-width: 800px;
    margin: 0;
}

/* ── Section Headings ─────────────────────────────────────────── */
.hcm-pseo-page h2 {
    font-family: var(--hcm-font-display, 'Bebas Neue', sans-serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 40px 0 16px;
    color: var(--hcm-text-white, #ffffff);
}

.hcm-pseo-page h3 {
    font-family: var(--hcm-font-body, 'Barlow', sans-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--hcm-text-white, #ffffff);
}

/* ── Content Sections ─────────────────────────────────────────── */
.hcm-pseo-section {
    margin-bottom: 40px;
}

.hcm-pseo-section p {
    margin: 0 0 16px;
    color: var(--hcm-text-body, rgba(255, 255, 255, 0.8));
}

/* ── Card Grid ────────────────────────────────────────────────── */
.hcm-pseo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.hcm-pseo-card {
    background: var(--hcm-glass-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    padding: 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hcm-pseo-card:hover {
    border-color: var(--hcm-accent-border, rgba(20, 255, 236, 0.3));
    box-shadow: 0 2px 16px rgba(20, 255, 236, 0.08);
}

.hcm-pseo-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.hcm-pseo-card h3 a {
    color: var(--hcm-cyan, #14ffec);
    text-decoration: none;
}

.hcm-pseo-card h3 a:hover {
    color: #fff;
    text-decoration: underline;
}

.hcm-pseo-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--hcm-text-secondary, rgba(255, 255, 255, 0.6));
}

/* ── Compact Card Grid (index pages) ─────────────────────────── */
.hcm-pseo-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.hcm-pseo-card-compact {
    background: var(--hcm-glass-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 6px;
    padding: 16px;
    transition: border-color 0.2s;
}

.hcm-pseo-card-compact:hover {
    border-color: var(--hcm-accent-border, rgba(20, 255, 236, 0.3));
}

.hcm-pseo-card-compact a {
    color: var(--hcm-cyan, #14ffec);
    text-decoration: none;
    font-weight: 500;
}

.hcm-pseo-card-compact a:hover {
    color: #fff;
    text-decoration: underline;
}

.hcm-pseo-card-compact .hcm-pseo-card-meta {
    font-size: 0.82rem;
    color: var(--hcm-text-subtle, rgba(255, 255, 255, 0.4));
    margin-top: 4px;
}

/* ── Feature List ─────────────────────────────────────────────── */
.hcm-pseo-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.hcm-pseo-feature {
    padding: 20px;
    background: var(--hcm-glass-bg, rgba(255, 255, 255, 0.05));
    border-radius: 8px;
    border-left: 4px solid var(--hcm-cyan, #14ffec);
    border-top: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
    border-right: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
    border-bottom: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
}

.hcm-pseo-feature h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--hcm-text-white, #ffffff);
}

.hcm-pseo-feature p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--hcm-text-body, rgba(255, 255, 255, 0.8));
}

/* ── Benefit List ─────────────────────────────────────────────── */
.hcm-pseo-benefits {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.hcm-pseo-benefits li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--hcm-text-body, rgba(255, 255, 255, 0.8));
}

.hcm-pseo-benefits li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--hcm-cyan, #14ffec);
    font-weight: 700;
}

/* ── Stats Row ────────────────────────────────────────────────── */
.hcm-pseo-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 24px;
    background: var(--hcm-glass-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
}

.hcm-pseo-stat {
    flex: 1;
    min-width: 200px;
    font-size: 0.95rem;
    color: var(--hcm-text-body, rgba(255, 255, 255, 0.8));
    padding-left: 16px;
    border-left: 3px solid var(--hcm-cyan, #14ffec);
}

/* ── Pain Points ──────────────────────────────────────────────── */
.hcm-pseo-pain-points {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.hcm-pseo-pain-points li {
    padding: 10px 0 10px 28px;
    position: relative;
    color: var(--hcm-text-body, rgba(255, 255, 255, 0.8));
    border-bottom: 1px solid var(--hcm-border, rgba(255, 255, 255, 0.08));
}

.hcm-pseo-pain-points li:last-child {
    border-bottom: none;
}

.hcm-pseo-pain-points li::before {
    content: "\26A0";
    position: absolute;
    left: 0;
    color: #f59e0b;
}

/* ── FAQ Accordion ────────────────────────────────────────────── */
.hcm-pseo-faq {
    margin: 20px 0;
}

.hcm-pseo-faq-item {
    border: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.hcm-pseo-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--hcm-glass-bg, rgba(255, 255, 255, 0.05));
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hcm-text-white, #ffffff);
    font-family: inherit;
}

.hcm-pseo-faq-question:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hcm-pseo-faq-icon {
    font-size: 1.25rem;
    color: var(--hcm-cyan, #14ffec);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.hcm-pseo-faq-item.hcm-pseo-faq-open .hcm-pseo-faq-icon {
    transform: rotate(45deg);
}

.hcm-pseo-faq-answer {
    display: none;
    padding: 16px 20px;
    font-size: 0.95rem;
    color: var(--hcm-text-body, rgba(255, 255, 255, 0.8));
    line-height: 1.6;
    border-top: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
}

.hcm-pseo-faq-item.hcm-pseo-faq-open .hcm-pseo-faq-answer {
    display: block;
}

/* ── Related Links ────────────────────────────────────────────── */
.hcm-pseo-related {
    margin: 40px 0;
    padding: 24px;
    background: var(--hcm-glass-bg, rgba(255, 255, 255, 0.05));
    border-radius: 8px;
    border: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
}

.hcm-pseo-related h2 {
    margin: 0 0 16px;
    font-size: 1.5rem;
}

.hcm-pseo-related-group {
    margin-bottom: 16px;
}

.hcm-pseo-related-group:last-child {
    margin-bottom: 0;
}

.hcm-pseo-related-group h3 {
    margin: 0 0 8px;
    font-size: 0.85rem;
    color: var(--hcm-text-secondary, rgba(255, 255, 255, 0.6));
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hcm-pseo-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hcm-pseo-related-links a {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 6px;
    color: var(--hcm-cyan-secondary, #0abdc6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hcm-pseo-related-links a:hover {
    background: rgba(20, 255, 236, 0.08);
    border-color: var(--hcm-accent-border, rgba(20, 255, 236, 0.3));
    color: var(--hcm-cyan, #14ffec);
}

/* ── CTA Block ────────────────────────────────────────────────── */
.hcm-pseo-cta {
    margin: 48px 0 0;
    padding: 40px;
    background: var(--hcm-glass-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--hcm-accent-border, rgba(20, 255, 236, 0.3));
    border-radius: 12px;
    text-align: center;
    color: #fff;
}

.hcm-pseo-cta h2 {
    color: var(--hcm-cyan, #14ffec);
    font-size: 2rem;
    margin: 0 0 12px;
}

.hcm-pseo-cta p {
    color: var(--hcm-text-body, rgba(255, 255, 255, 0.8));
    margin: 0 0 24px;
    font-size: 1.05rem;
}

.hcm-pseo-cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--hcm-cyan, #14ffec), var(--hcm-cyan-secondary, #0abdc6));
    color: #020810;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.hcm-pseo-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--hcm-glow-shadow, 0 0 30px rgba(20, 255, 236, 0.4), 0 0 60px rgba(20, 255, 236, 0.2));
    color: #020810;
}

/* ── A-Z Letter Nav ───────────────────────────────────────────── */
.hcm-pseo-alpha-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 20px 0;
    padding: 16px;
    background: var(--hcm-glass-bg, rgba(255, 255, 255, 0.05));
    border-radius: 8px;
    border: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
}

.hcm-pseo-alpha-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--hcm-cyan, #14ffec);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.hcm-pseo-alpha-nav a:hover {
    background: var(--hcm-cyan, #14ffec);
    color: #020810;
    border-color: var(--hcm-cyan, #14ffec);
}

.hcm-pseo-alpha-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ── Letter Group Headings ────────────────────────────────────── */
.hcm-pseo-letter-group {
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--hcm-cyan, #14ffec);
}

.hcm-pseo-letter-group h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--hcm-cyan, #14ffec);
}

/* ── Definition Page ──────────────────────────────────────────── */
.hcm-pseo-definition {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--hcm-text-body, rgba(255, 255, 255, 0.8));
    padding: 24px;
    background: var(--hcm-glass-bg, rgba(255, 255, 255, 0.05));
    border-radius: 8px;
    border-left: 4px solid var(--hcm-cyan, #14ffec);
    border-top: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
    border-right: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
    border-bottom: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
    margin: 20px 0;
}

/* ── Category Badge ───────────────────────────────────────────── */
.hcm-pseo-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(20, 255, 236, 0.1);
    color: var(--hcm-cyan, #14ffec);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    border: 1px solid rgba(20, 255, 236, 0.2);
}

/* ── City Info Bar ────────────────────────────────────────────── */
.hcm-pseo-city-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px;
    background: var(--hcm-glass-bg, rgba(255, 255, 255, 0.05));
    border-radius: 8px;
    border: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
    margin: 20px 0;
    font-size: 0.95rem;
    color: var(--hcm-text-secondary, rgba(255, 255, 255, 0.6));
}

.hcm-pseo-city-info dt {
    font-weight: 600;
    color: var(--hcm-text-white, #ffffff);
}

.hcm-pseo-city-info dd {
    margin: 0 0 0 4px;
}

.hcm-pseo-city-detail {
    display: flex;
    gap: 6px;
}

/* ── Region Headings (locations index) ────────────────────────── */
.hcm-pseo-region-group h2 {
    color: var(--hcm-cyan, #14ffec);
}

/* ── Links inside content ─────────────────────────────────────── */
.hcm-pseo-page a:not(.hcm-pseo-cta-btn):not(.hcm-pseo-breadcrumbs a) {
    color: var(--hcm-cyan-secondary, #0abdc6);
    transition: color 0.15s;
}

.hcm-pseo-page a:not(.hcm-pseo-cta-btn):not(.hcm-pseo-breadcrumbs a):hover {
    color: var(--hcm-cyan, #14ffec);
}

/* ── Comparison Layout ────────────────────────────────────────── */
.hcm-pseo-comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--hcm-glass-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--hcm-glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
}

.hcm-pseo-comparison-aspect {
    grid-column: 1 / -1;
    font-family: var(--hcm-font-body, 'Barlow', sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hcm-cyan, #14ffec);
    margin-bottom: 4px;
}

.hcm-pseo-comparison-col {
    padding: 12px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hcm-pseo-comparison-col strong {
    display: block;
    margin-bottom: 6px;
    color: var(--hcm-text-white, #ffffff);
    font-size: 0.95rem;
}

.hcm-pseo-comparison-col p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--hcm-text-body, rgba(255, 255, 255, 0.8));
}

.hcm-pseo-comparison-verdict {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hcm-pseo-page {
        padding: 24px 16px 40px;
    }

    .hcm-pseo-hero h1 {
        font-size: 2.25rem;
    }

    .hcm-pseo-page h2 {
        font-size: 1.6rem;
    }

    .hcm-pseo-grid {
        grid-template-columns: 1fr;
    }

    .hcm-pseo-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .hcm-pseo-features {
        grid-template-columns: 1fr;
    }

    .hcm-pseo-stats {
        flex-direction: column;
    }

    .hcm-pseo-cta {
        padding: 28px 20px;
    }

    .hcm-pseo-city-info {
        flex-direction: column;
        gap: 12px;
    }

    .hcm-pseo-comparison-row {
        grid-template-columns: 1fr;
    }

    .hcm-pseo-comparison-verdict {
        grid-template-columns: 1fr;
    }
}
