/**
Block: SEO Content Section
Path: /assets/css/03-components/block-seo-content.css
Version: 2.0.0 (Standardized for ALL taxonomy pages)
Scope: Homepage + 17 Taxonomy Templates
*/

/* ============================================================================
BASE SECTION STYLING
============================================================================ */
.st-seo-content-block {
    padding: var(--st-section-padding-y, clamp(1rem, 2vw, 1.75rem)) 0;
    background: var(--st-canvas, #FCFAF9);
    border-top: 1px solid var(--st-stone-200, #e7e5e4);
}

.st-seo-content-block .st-container {
    max-width: var(--st-container-max, 1280px);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================================================
TEXT BODY - DEFAULT TYPOGRAPHY
============================================================================ */
.st-seo-text-body {
    color: var(--st-charcoal-700, #374151);
    line-height: 1.7;
    font-size: 0.95rem;
    font-family: var(--st-font-family, "Plus Jakarta Sans", sans-serif);
}

/* ============================================================================
HEADINGS - H2, H3, H4 (No Inline Styles Needed)
============================================================================ */
.st-seo-text-body h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--st-charcoal-900, #111827);
    margin-bottom: 1.25rem;
    line-height: 1.3;
    font-family: var(--st-font-family, "Plus Jakarta Sans", sans-serif);
}

.st-seo-text-body h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--st-charcoal-900, #111827);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-family: var(--st-font-family, "Plus Jakarta Sans", sans-serif);
}

.st-seo-text-body h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: var(--st-charcoal-900, #111827);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-family: var(--st-font-family, "Plus Jakarta Sans", sans-serif);
}

/* ============================================================================
PARAGRAPHS
============================================================================ */
.st-seo-text-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--st-charcoal-700, #374151);
    margin-bottom: 1.25rem;
}

/* ============================================================================
LINKS
============================================================================ */
.st-seo-text-body a {
    color: var(--st-brand-700, #be0038);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.st-seo-text-body a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Focus state for accessibility */
.st-seo-text-body a:focus,
.st-seo-text-body a:focus-visible {
    outline: 3px solid var(--st-brand-500, #e11d48);
    outline-offset: 2px;
}

/* ============================================================================
STRONG / BOLD
============================================================================ */
.st-seo-text-body strong,
.st-seo-text-body b {
    font-weight: 700;
    color: var(--st-charcoal-900, #111827);
}

/* ============================================================================
EM / ITALIC
============================================================================ */
.st-seo-text-body em,
.st-seo-text-body i {
    font-style: italic;
    color: var(--st-charcoal-600, #4b5563);
}

/* ============================================================================
UNORDERED LISTS
============================================================================ */
.st-seo-text-body ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.st-seo-text-body ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    color: var(--text-color, #333333);
}

/* ============================================================================
ORDERED LISTS
============================================================================ */
.st-seo-text-body ol {
    list-style-type: decimal;
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.st-seo-text-body ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    color: var(--text-color, #333333);
}

/* ============================================================================
✅ READ MORE TOGGLE (CHECKBOX HACK - FIXED FOR YOUR HTML)
============================================================================ */

/* Mobile Narrative Collapsible */
.st-seo-collapsible-wrap {
    position: relative;
}

@media (max-width: 767px) {
    /* Hide the checkbox */
    input.st-seo-toggle-input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
        width: 0;
        height: 0;
    }

    /* By default on mobile, hide secondary narrative paragraphs */
    .st-seo-more-content {
        display: none;
        animation: fadeInSEO 0.4s ease-in-out;
    }

    /* Reveal when checkbox checked */
    input.st-seo-toggle-input:checked ~ .st-seo-text-body .st-seo-more-content {
        display: block;
    }

    label.st-seo-toggle-label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 8px;
        padding: 8px 16px;
        background: var(--st-surface-card, #ffffff);
        border: 1px solid var(--st-stone-200, #e7e5e4);
        border-radius: var(--st-radius-full, 9999px);
        font-family: var(--st-font-family, "Plus Jakarta Sans", sans-serif);
        font-weight: 700;
        font-size: 12px;
        color: var(--st-brand-700, #be0038);
        cursor: pointer;
        transition: all 0.25s ease;
        user-select: none;
    }

    label.st-seo-toggle-label:hover {
        background: var(--st-surface-ivory, #FAF8F5);
        border-color: var(--st-brand-200, #fecdd3);
    }

    label.st-seo-toggle-label .toggle-icon {
        transition: transform 0.3s ease;
    }

    input.st-seo-toggle-input:checked ~ label.st-seo-toggle-label .toggle-icon {
        transform: rotate(180deg);
    }

    label.st-seo-toggle-label .toggle-text::before {
        content: 'Baca Selengkapnya';
    }

    input.st-seo-toggle-input:checked ~ label.st-seo-toggle-label .toggle-text::before {
        content: 'Sembunyikan Ringkasan';
    }
}

@media (min-width: 768px) {
    .st-seo-more-content {
        display: block !important;
    }

    .st-seo-toggle-input,
    label.st-seo-toggle-label {
        display: none !important;
    }
}

/* Animation for content reveal */
@keyframes fadeInSEO {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
RESPONSIVE BREAKPOINTS
============================================================================ */
@media (max-width: 768px) {
    .st-seo-content-block {
        padding: 40px 0;
    }
    
    .st-seo-text-body h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .st-seo-text-body h3 {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }
    
    .st-seo-text-body p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .st-seo-content-block {
        padding: 30px 0;
    }
    
    .st-seo-text-body h2 {
        font-size: 1.3rem;
    }
    
    .st-seo-text-body h3 {
        font-size: 1.1rem;
    }
}

/* ============================================================================
SKIN-SPECIFIC ADJUSTMENTS (2-Skin Architecture)
============================================================================ */
/* --- Modern Skin - Clean, Minimal --- */
.skin-modern .st-seo-text-body h2 {
    letter-spacing: -0.02em;
    font-weight: 800;
}

.skin-modern .st-seo-text-body h3 {
    letter-spacing: -0.01em;
    font-weight: 700;
}

.skin-modern .st-seo-details summary {
    border-radius: var(--border-radius, 12px);
    padding: 8px 14px;
    background: var(--bg-light, #f7f7f7);
}

/* --- Luxe Skin - Haute Parfumerie & Serif Elegance --- */
.skin-luxe .st-seo-text-body h2 {
    font-style: italic;
    letter-spacing: 0.02em;
}

.skin-luxe .st-seo-text-body h3 {
    font-weight: 600;
}

.skin-luxe .st-seo-details summary {
    font-family: var(--font-heading, serif);
    border-radius: var(--border-radius, 8px);
    background: var(--bg-light, #fbf9f6);
}

/* ============================================================================
ACCESSIBILITY: REDUCED MOTION
============================================================================ */
@media (prefers-reduced-motion: reduce) {
    .st-seo-body {
        animation: none;
    }
    
    .st-seo-details summary .toggle-icon,
    .st-seo-text-body a {
        transition: none;
    }
}

/* ============================================================================
ACCESSIBILITY: FOCUS STATES
============================================================================ */
.st-seo-details summary:focus,
.st-seo-details summary:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* ============================================================================
PRINT STYLES
============================================================================ */
@media print {
    .st-seo-content-block {
        padding: 20px 0;
        border-top: 1px solid #000;
    }
    
    .st-seo-text-body {
        font-size: 10pt;
        line-height: 1.5;
        color: #000;
    }
    
    .st-seo-text-body a {
        text-decoration: underline;
        color: #000;
    }
    
    .st-seo-details {
        display: block !important;
    }
    
    .st-seo-details summary {
        display: none;
    }
}

/* ============================================================================
   SEAMLESS EDITORIAL & COVERAGE AREA (Section 6 Stitch Redesign)
   ============================================================================ */
.st-seo-content-block {
    padding: var(--st-section-padding-y, clamp(1rem, 2vw, 1.75rem)) 0;
    background: var(--st-canvas, #FCFAF9);
    border-top: 1px solid var(--st-stone-200, #e7e5e4);
}

.st-seo-editorial-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.st-seo-header {
    margin-bottom: 16px;
}

.st-seo-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.st-seo-pill-authority {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ecfdf5;
    border: 1px solid rgba(167, 243, 208, 0.8);
    color: #047857;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3.5px 10px;
    border-radius: var(--st-radius-full, 9999px);
    font-family: var(--st-font-family, "Plus Jakarta Sans", sans-serif);
}

.st-seo-pill-sub {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--st-surface-card, #ffffff);
    border: 1px solid var(--st-stone-200, #e7e5e4);
    color: var(--st-charcoal-600, #4b5563);
    font-family: var(--st-font-family, "Plus Jakarta Sans", sans-serif);
    font-size: 10.5px;
    font-weight: 600;
    padding: 3.5px 9px;
    border-radius: var(--st-radius-full, 9999px);
}

.st-seo-title {
    font-family: var(--st-font-family, "Plus Jakarta Sans", sans-serif) !important;
    font-size: clamp(1.2rem, 3.5vw, 1.65rem) !important;
    font-weight: 800 !important;
    color: var(--st-charcoal-900, #111827) !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em;
    margin: 0 0 16px 0 !important;
}

.st-seo-highlight {
    background: #fef3c7;
    padding: 1px 6px;
    border-radius: 4px;
    color: #92400e;
    font-weight: 600;
}

.st-seo-coverage-section {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--st-stone-200, #e7e5e4);
}

.st-coverage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.st-coverage-label {
    font-size: var(--st-text-xs, 0.75rem);
    font-weight: 800;
    color: var(--st-charcoal-900, #111827);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--st-font-family, "Plus Jakarta Sans", sans-serif);
}

.st-coverage-speed {
    font-size: 10px;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    padding: 2.5px 8px;
    border-radius: var(--st-radius-full, 9999px);
    border: 1px solid rgba(167, 243, 208, 0.7);
}

.st-coverage-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.st-coverage-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--st-surface-card, #ffffff);
    border: 1px solid var(--st-stone-200, #e7e5e4);
    border-radius: var(--st-radius-full, 9999px);
    font-family: var(--st-font-family, "Plus Jakarta Sans", sans-serif);
    font-size: 11px;
    font-weight: 600;
    color: var(--st-charcoal-700, #374151);
    cursor: default;
    transition: all 0.2s ease;
    user-select: none;
}

.st-coverage-chip:hover {
    background: var(--st-charcoal-900, #111827);
    border-color: var(--st-charcoal-900, #111827);
    color: #ffffff;
    transform: translateY(-1px);
}

.st-coverage-chip .chip-pin {
    font-size: 12px;
}