/* ==========================================================================
   Ufriend PR News Hub — Dedicated Module Stylesheet (style.css)
   Standard: 3-in-1 Triple Auditor (Medical Luxury Apple Clean Light Theme)
   Scope: Self-contained within /public/pr-news/ (Blast Radius Zero)
   ========================================================================== */

:root {
    --font-heading: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bg-base: #F8FAFC;
    --bg-surface: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --border-subtle: #E2E8F0;
    --brand-primary: #2563EB;
    --brand-indigo: #4F46E5;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.75;
    background-color: var(--bg-base);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.015em;
}

code, pre, .font-mono, .mono-badge, .font-mono-code {
    font-family: var(--font-mono);
}

/* Custom Clean Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Medical Luxury Card Elevation */
.luxury-card {
    background: var(--bg-surface);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 2px 12px -2px rgba(15, 23, 42, 0.04), 0 1px 3px 0 rgba(15, 23, 42, 0.02);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.luxury-card:hover {
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
}

/* ==========================================================================
   Executive Promotional & Editorial Risk Highlights
   ========================================================================== */

/* 1. Promotional / Hard-Sell / Product Catalog (Amber/Orange) */
.hl-ad {
    background-color: #FEF3C7;
    color: #92400E;
    padding: 2px 8px;
    border-radius: 6px;
    border-bottom: 2px solid #F59E0B;
    font-weight: 600;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* 2. Direct Commercial Link / CTA / App Download (Purple/Indigo) */
.hl-link {
    background-color: #F3E8FF;
    color: #5B21B6;
    padding: 2px 8px;
    border-radius: 6px;
    border-bottom: 2px solid #8B5CF6;
    font-weight: 600;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* 3. Factual Risk / Missing Executive Attribution (Rose/Red) */
.hl-fact {
    background-color: #FFE4E6;
    color: #9F1239;
    padding: 2px 8px;
    border-radius: 6px;
    border-bottom: 2px solid #E11D48;
    font-weight: 700;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* 4. Version 2 Editorial Fix (Emerald/Teal) */
.hl-fix {
    background-color: #D1FAE5;
    color: #065F46;
    padding: 2px 8px;
    border-radius: 6px;
    border-bottom: 2px solid #10B981;
    font-weight: 600;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Inline explanation tag next to highlighted text */
.hl-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-heading);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    padding: 2px 8px;
    margin: 0 4px;
    border-radius: 6px;
    vertical-align: middle;
}

.hl-tag-ad {
    background-color: #F59E0B;
    color: #FFFFFF;
}

.hl-tag-link {
    background-color: #7C3AED;
    color: #FFFFFF;
}

.hl-tag-fact {
    background-color: #E11D48;
    color: #FFFFFF;
}

.hl-tag-fix {
    background-color: #059669;
    color: #FFFFFF;
}

/* When executive toggles highlights off for clean reading */
body.hide-highlights .hl-ad,
body.hide-highlights .hl-link,
body.hide-highlights .hl-fact,
body.hide-highlights .hl-fix {
    background-color: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border-bottom: none !important;
    font-weight: inherit !important;
}

body.hide-highlights .hl-tag {
    display: none !important;
}

/* Print Optimization */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: #FFFFFF !important;
        padding-bottom: 0 !important;
    }
}
