/* ============================================
   INSIGHTS — Shared Styles
   Beck Strategic Advisory
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --navy: #162c43;
    --navy-light: #2a4a5e;
    --navy-dark: #0f1f29;
    --green: #8FBC8F;
    --green-dark: #7AAC7A;
    --green-light: rgba(143, 188, 143, 0.15);
    --grey: #A5ACAF;
    --grey-light: #f5f7f8;
    --white: #ffffff;
    --text-dark: #1a1a2e;
    --text-medium: #4a5568;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--grey-light);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--green-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--navy);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--grey-light);
    padding: 16px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--navy);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--green);
}

.nav-links a.active {
    opacity: 1;
    color: var(--green);
}

.nav-login {
    margin-left: 16px;
    padding: 8px 16px;
    border: 1.5px solid var(--navy);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy);
    background: transparent;
    transition: all 0.2s ease;
    opacity: 0.85;
}

.nav-login:hover {
    background: var(--navy);
    color: var(--white);
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--navy);
}

/* ============================================
   INSIGHTS HERO (Listing Page)
   ============================================ */
.insights-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 140px 0 40px;
}

.insights-hero h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.insights-hero p {
    font-size: 17px;
    opacity: 0.85;
    max-width: 600px;
}

/* ============================================
   SERIES NARRATIVE
   ============================================ */
.series-narrative {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-medium);
}

.series-narrative strong {
    color: var(--navy);
    font-weight: 600;
}

/* ============================================
   INSIGHTS LISTING (Card Grid)
   ============================================ */
.insights-section {
    padding: 60px 0 100px;
}

.insights-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.insight-card {
    background: var(--white);
    border-radius: 8px;
    border-left: none;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Card graphic — mimics LinkedIn series graphics */
.insight-card-graphic {
    aspect-ratio: 3 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 28px;
    position: relative;
    text-decoration: none;
}

.insight-card-graphic .graphic-series-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 8px;
}

.insight-card-graphic .graphic-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.15;
    padding-bottom: 12px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
}

.insight-card-graphic .graphic-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--green);
}

/* Margin Notes title rule — darker for light background */
.insight-card[data-series="margin-notes"] .graphic-title {
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

/* Worth Knowing graphic — deep slate */
.insight-card[data-series="worth-knowing"] .insight-card-graphic {
    background: var(--navy);
}

.insight-card[data-series="worth-knowing"] .graphic-series-label {
    color: var(--green);
}

.insight-card[data-series="worth-knowing"] .graphic-title {
    color: var(--white);
}

/* Margin Notes graphic — light */
.insight-card[data-series="margin-notes"] .insight-card-graphic {
    background: #eef0ef;
}

.insight-card[data-series="margin-notes"] .graphic-series-label {
    color: var(--green-dark);
}

.insight-card[data-series="margin-notes"] .graphic-title {
    color: var(--navy);
}

/* Card body — text content below graphic */
.insight-card-body {
    padding: 20px 24px 24px;
}

.insight-card-body p {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 8px;
}

.insight-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-medium);
}

.insight-card-meta .series-pill {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: transparent;
    color: var(--green-dark);
    border: 1.5px solid var(--green-dark);
}

.insight-card-meta .series-pill.worth-knowing {
    color: var(--navy);
    border-color: var(--navy);
}

/* ============================================
   SERIES INTRO
   ============================================ */
.series-intro-narrative {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 32px;
}

.series-intro-narrative p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-medium);
}

.series-intro {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: flex;
    gap: 32px;
}

.series-intro-card {
    flex: 1;
    padding: 32px 28px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.series-intro-card .series-card-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.series-intro-card .series-card-desc {
    font-size: 14px;
    line-height: 1.6;
}

/* Margin Notes — mirrors light/white LinkedIn graphic */
.series-intro-card.margin-notes {
    background: #f9fafb;
    border-top: 3px solid var(--green);
    color: var(--text-medium);
}

.series-intro-card.margin-notes .series-card-label {
    color: var(--green-dark);
}

.series-intro-card.margin-notes .series-card-desc {
    color: var(--text-medium);
}

/* Worth Knowing — mirrors deep slate LinkedIn graphic */
.series-intro-card.worth-knowing {
    background: var(--navy);
    border-top: 3px solid var(--green);
    color: rgba(255, 255, 255, 0.8);
}

.series-intro-card.worth-knowing .series-card-label {
    color: var(--green);
}

.series-intro-card.worth-knowing .series-card-desc {
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   SERIES FILTER
   ============================================ */
.series-filter {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: flex;
    gap: 8px;
}

.series-filter button {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--grey);
    background: transparent;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.2s ease;
}

.series-filter button:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.series-filter button.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.insight-card.hidden {
    display: none;
}

.insight-card h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.insight-card h2 a {
    color: var(--navy);
    text-decoration: none;
}

.insight-card h2 a:hover {
    color: var(--green-dark);
}

.insight-card p {
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.6;
}

/* ============================================
   POST HEADER
   ============================================ */
.post-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 160px 0 50px;
}

.breadcrumb {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    opacity: 0.7;
}

.breadcrumb a {
    color: var(--green);
    opacity: 1;
}

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

.breadcrumb .separator {
    margin: 0 8px;
}

.post-title {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 720px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.75;
}

.post-meta .separator {
    opacity: 0.4;
}

.post-meta .series-label {
    background: rgba(143, 188, 143, 0.2);
    color: var(--green);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.post-meta .series-label.worth-knowing {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* ============================================
   POST CONTENT
   ============================================ */
.post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px 40px;
}

.post-content p {
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 1.75;
    color: var(--text-dark);
}

.post-content h2 {
    font-size: 28px;
    color: var(--navy);
    margin-top: 48px;
    margin-bottom: 20px;
}

.post-content h3 {
    font-size: 22px;
    color: var(--navy);
    margin-top: 36px;
    margin-bottom: 16px;
}

.post-content blockquote {
    border-left: 4px solid var(--green);
    padding: 16px 24px;
    margin: 32px 0;
    background: var(--green-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-medium);
}

.post-content blockquote p {
    margin-bottom: 0;
    font-size: 17px;
}

.post-content hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 40px 0;
}

.post-content ul,
.post-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.75;
}

.post-content strong {
    color: var(--navy);
}

.post-content a {
    color: var(--green-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content a:hover {
    color: var(--navy);
}

/* ============================================
   AUTHOR BIO
   ============================================ */
.author-bio {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 40px;
}

.author-bio img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio-text strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--navy);
    margin-bottom: 4px;
}

.author-bio-text p {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 4px;
    line-height: 1.5;
}

.author-bio-text a {
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   POST NAVIGATION
   ============================================ */
.post-nav {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.post-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--green-dark);
}

.post-nav a:hover {
    color: var(--navy);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--navy-dark);
    padding: 40px 0;
    text-align: center;
}

footer p {
    color: var(--grey);
    font-size: 14px;
}

footer a {
    color: var(--green);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .insights-hero h1 {
        font-size: 36px;
    }

    .post-title {
        font-size: 32px;
    }

    .post-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-login {
        margin-left: auto;
        margin-right: 16px;
        padding: 6px 12px;
        font-size: 11px;
    }

    .insights-hero {
        padding: 140px 0 40px;
    }

    .insights-hero h1 {
        font-size: 28px;
    }

    .insights-hero p {
        font-size: 17px;
    }

    .series-intro {
        flex-direction: column;
        gap: 16px;
    }

    .series-filter {
        flex-wrap: wrap;
    }

    .insights-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .insight-card-graphic .graphic-title {
        font-size: 22px;
    }

    .post-header {
        padding: 140px 0 40px;
    }

    .post-title {
        font-size: 28px;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .post-content {
        padding: 40px 24px 30px;
    }

    .post-content p {
        font-size: 16px;
    }

    .post-content h2 {
        font-size: 22px;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }
}
