/* ══════════════════════════════════════════════════════════════════
   ZIVVY BLOG — SHARED STYLES

   Common CSS shared across all blog post pages.
   Load this BEFORE individual post-specific CSS files.

   Last updated: 2026-02-12
   ══════════════════════════════════════════════════════════════════ */

/* ═══ RESET ═══ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ═══ CSS CUSTOM PROPERTIES (SHARED COLOR PALETTE) ═══ */
:root {
    /* Primary Brand Colors */
    --purple-deep: hsl(261, 49%, 21%);
    --purple-main: hsl(262, 39%, 40%);
    --purple-light: hsl(265, 33%, 57%);

    /* Accent Colors */
    --gold-main: hsl(41, 61%, 56%);
    --gold-light: hsl(43, 71%, 69%);

    /* Base Colors */
    --white: hsl(0, 0%, 100%);
    --gray-light: hsl(260, 23%, 97%);
    --gray-mid: hsl(260, 21%, 92%);
    --gray-text: hsl(240, 7%, 45%);
    --text-body: hsl(240, 12%, 27%);

    /* Semantic Colors (Status) */
    --red-main: hsl(0, 50%, 54%);
    --red-light: hsl(351, 100%, 96%);
    --green-main: hsl(122, 39%, 49%);
    --green-dark: hsl(123, 46%, 34%);
    --green-light: hsl(125, 39%, 94%);
    --orange-main: hsl(21, 100%, 45%);
    --orange-dark: hsl(14, 88%, 40%);
    --orange-light: hsl(37, 100%, 94%);
    --blue-main: hsl(210, 79%, 46%);
    --blue-light: hsl(205, 87%, 94%);
}

/* ═══ BODY ═══ */
body {
    font-family: 'SF Pro Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--purple-deep);
    line-height: 1.7;
    padding-top: 88px !important; /* Space for fixed navigation */
}

/* ═══ ARTICLE HEADER (Hero Section) ═══ */
.article-header {
    padding: 60px 40px;
    margin-top: 0 !important; /* Prevent double spacing with navigation */
    position: relative;
    overflow: hidden;
}

.header-inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb a {
    color: hsl(0, 0%, 100%, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: hsl(0, 0%, 100%, 0.5);
    margin: 0 8px;
}

/* Category Tag */
.category-tag {
    display: inline-block;
    background: hsl(0, 0%, 100%, 0.2);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* Article Title */
.article-header h1 {
    font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}

/* Article Subtitle */
.article-subtitle {
    font-size: 19px;
    color: hsl(0, 0%, 100%, 0.85);
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Article Meta (Author, Date, Read Time) */
.article-meta {
    color: hsl(0, 0%, 100%, 0.7);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.article-meta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

/* ═══ ARTICLE CONTENT ═══ */
.article-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 24px;
}

/* Typography */
.article-content p {
    font-size: 17px;
    color: var(--text-body);
    margin-bottom: 24px;
}

.article-content h2 {
    font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--purple-deep);
    margin: 40px 0 16px;
}

.article-content h3 {
    font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--purple-deep);
    margin: 32px 0 12px;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--purple-deep);
    margin: 24px 0 8px;
}

/* Lead Paragraph */
.lead-paragraph {
    font-size: 20px;
    color: var(--purple-deep);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin-left: 24px;
    margin-bottom: 24px;
    color: var(--text-body);
}

.article-content li {
    font-size: 17px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.article-content strong {
    font-weight: 600;
    color: var(--purple-deep);
}

/* Links */
.article-content a {
    color: var(--purple-main);
    text-decoration: underline;
    text-decoration-color: hsl(262, 39%, 40%, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.article-content a:hover {
    color: var(--purple-light);
    text-decoration-color: var(--purple-light);
}

/* ═══ COMMON COMPONENTS ═══ */

/* Stat Callout Box */
.stat-callout {
    background: linear-gradient(135deg, hsl(262, 39%, 40%, 0.1) 0%, hsl(262, 39%, 40%, 0.05) 100%);
    border-left: 4px solid var(--purple-main);
    padding: 24px 28px;
    border-radius: 0 12px 12px 0;
    margin: 32px 0;
}

.stat-callout .number {
    font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--purple-main);
    display: block;
    margin-bottom: 8px;
}

.stat-callout p {
    margin: 0;
    font-size: 15px;
    color: var(--gray-text);
}

/* Callout Boxes (Info, Warning, Success) */
.callout {
    padding: 20px 24px;
    border-radius: 12px;
    margin: 32px 0;
    border-left: 4px solid;
}

.callout-info {
    background: var(--blue-light);
    border-left-color: var(--blue-main);
}

.callout-warning {
    background: var(--orange-light);
    border-left-color: var(--orange-main);
}

.callout-success {
    background: var(--green-light);
    border-left-color: var(--green-main);
}

.callout h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--purple-deep);
}

.callout p {
    margin: 0;
    font-size: 15px;
    color: var(--text-body);
}

/* Comparison Box */
.comparison-box {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.comparison-box h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--purple-deep);
    margin-bottom: 16px;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-mid);
}

.comparison-item:last-child {
    border-bottom: none;
}

.comparison-label {
    font-weight: 500;
    color: var(--text-body);
}

.comparison-value {
    font-weight: 700;
    color: var(--purple-main);
}

/* ═══ RESPONSIVE ═══ */

@media (max-width: 768px) {
    body {
        padding-top: 72px !important; /* Adjust for smaller mobile nav */
    }

    .article-header {
        padding: 40px 24px;
    }

    .article-header h1 {
        font-size: 32px;
    }

    .article-subtitle {
        font-size: 17px;
    }

    .article-content {
        padding: 32px 20px;
    }

    .article-content h2 {
        font-size: 24px;
        margin: 32px 0 12px;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .article-content p,
    .article-content li {
        font-size: 16px;
    }

    .stat-callout {
        padding: 20px;
    }

    .stat-callout .number {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 28px;
    }

    .article-meta {
        font-size: 13px;
    }

    .category-tag {
        font-size: 10px;
        padding: 5px 12px;
    }
}
