/* ==========================================================
   INSIGHTS PAGE
   Darpan Mishra — Personal Brand
========================================================== */


/* ==========================================================
   PAGE HERO
========================================================== */

.insights-page-hero{
    position:relative;

    padding:90px 0 100px;

    overflow:hidden;

    isolation:isolate;
}

.insights-page-hero::before{
    content:"";

    position:absolute;

    width:560px;
    height:560px;

    right:-240px;
    top:-270px;

    border-radius:50%;

    background:
        radial-gradient(
            circle,
            rgba(200,161,74,.11),
            transparent 70%
        );

    filter:blur(25px);

    pointer-events:none;

    z-index:-1;
}

.insights-hero-grid{
    display:grid;

    grid-template-columns:
        minmax(0,1fr)
        280px;

    gap:90px;

    align-items:end;
}

.insights-page-label{
    display:block;

    margin-bottom:17px;

    color:var(--accent);

    font-size:.68rem;

    font-weight:800;

    letter-spacing:2.5px;
}

.insights-hero-content{
    max-width:800px;
}

.insights-hero-content h1{
    margin:0 0 25px;

    color:var(--text-primary);

    font-size:
        clamp(3.2rem,5vw,5.4rem);

    line-height:.98;

    letter-spacing:-.065em;
}

.insights-hero-content h1 span{
    display:block;

    color:var(--accent);
}

.insights-hero-content p{
    max-width:680px;

    margin:0;

    color:var(--text-secondary);

    font-size:.9rem;

    line-height:1.8;
}


/* ==========================================================
   HERO META
========================================================== */

.insights-hero-meta{
    padding:0 0 8px 30px;

    border-left:1px solid var(--border);
}

.insights-hero-meta > span{
    display:block;

    margin-bottom:8px;

    color:var(--text-secondary);

    font-size:.61rem;

    font-weight:800;

    letter-spacing:2px;
}

.insights-hero-meta strong{
    display:block;

    margin-bottom:18px;

    color:var(--accent);

    font-size:4rem;

    line-height:1;

    letter-spacing:-.07em;
}

.insights-hero-meta p{
    max-width:170px;

    margin:0;

    color:var(--text-secondary);

    font-size:.7rem;

    line-height:1.7;
}


/* ==========================================================
   FEATURED ARTICLE
========================================================== */

.featured-insight{
    padding:0 0 120px;
}

.featured-insight-card{
    display:grid;

    grid-template-columns:
        minmax(0,1.05fr)
        minmax(0,.95fr);

    min-height:540px;

    overflow:hidden;

    border:1px solid var(--border);

    border-radius:24px;

    background:var(--surface);

    box-shadow:
        0 18px 50px rgba(15,23,42,.045);
}

.featured-insight-image{
    position:relative;

    min-height:540px;

    overflow:hidden;

    background:#111827;
}

.featured-insight-image::after{
    content:"";

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            135deg,
            rgba(0,0,0,.08),
            rgba(0,0,0,.42)
        );

    pointer-events:none;
}

.featured-insight-image img{
    width:100%;
    height:100%;

    display:block;

    object-fit:cover;

    transition:transform .6s ease;
}

.featured-insight-card:hover
.featured-insight-image img{
    transform:scale(1.035);
}

.featured-badge{
    position:absolute;

    z-index:2;

    top:24px;
    left:24px;

    display:inline-flex;

    align-items:center;

    min-height:28px;

    padding:0 12px;

    border:1px solid rgba(255,255,255,.22);

    border-radius:999px;

    background:rgba(0,0,0,.35);

    backdrop-filter:blur(10px);

    color:#fff;

    font-size:.55rem;

    font-weight:800;

    letter-spacing:1.6px;
}


/* ==========================================================
   FEATURED CONTENT
========================================================== */

.featured-insight-content{
    display:flex;

    flex-direction:column;

    justify-content:center;

    padding:55px;
}

.insight-category{
    display:block;

    margin-bottom:16px;

    color:var(--accent);

    font-size:.62rem;

    font-weight:800;

    letter-spacing:2px;
}

.featured-insight-content h2{
    margin:0 0 20px;

    color:var(--text-primary);

    font-size:
        clamp(2rem,3vw,3.25rem);

    line-height:1.05;

    letter-spacing:-.05em;
}

.featured-insight-content p{
    max-width:520px;

    margin:0 0 14px;

    color:var(--text-secondary);

    font-size:.78rem;

    line-height:1.8;
}

.featured-insight-meta{
    display:flex;

    align-items:center;

    gap:9px;

    margin:10px 0 25px;

    color:var(--text-secondary);

    font-size:.59rem;

    font-weight:600;
}

.insights-primary-btn,
.insights-secondary-btn{
    display:inline-flex;

    align-items:center;
    justify-content:center;

    gap:10px;

    min-height:46px;

    width:max-content;

    padding:0 20px;

    border-radius:999px;

    font-size:.67rem;

    font-weight:700;

    text-decoration:none;

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease,
        color .3s ease;
}

.insights-primary-btn{
    background:var(--accent);

    border:1px solid var(--accent);

    color:#111;
}

.insights-primary-btn:hover{
    transform:translateY(-2px);

    background:#E2BC4D;
}

.insights-primary-btn span{
    transition:transform .3s ease;
}

.insights-primary-btn:hover span{
    transform:translateX(4px);
}

.insights-secondary-btn{
    background:transparent;

    border:1px solid #344155;

    color:#fff;
}

.insights-secondary-btn:hover{
    transform:translateY(-2px);

    border-color:var(--accent);

    color:var(--accent);
}


/* ==========================================================
   ARTICLE SECTION
========================================================== */

.insight-articles{
    padding:125px 0;

    background:var(--surface-soft);

    border-top:1px solid var(--border);

    border-bottom:1px solid var(--border);
}

.insights-section-heading{
    display:grid;

    grid-template-columns:
        minmax(0,1fr)
        360px;

    gap:60px;

    align-items:end;

    margin-bottom:55px;
}

.insights-section-heading > div > span{
    display:block;

    margin-bottom:15px;

    color:var(--accent);

    font-size:.64rem;

    font-weight:800;

    letter-spacing:2.5px;
}

.insights-section-heading h2{
    margin:0;

    color:var(--text-primary);

    font-size:
        clamp(2.6rem,4vw,4.3rem);

    line-height:1;

    letter-spacing:-.055em;
}

.insights-section-heading h2 span{
    display:block;

    color:var(--accent);
}

.insights-section-heading > p{
    margin:0;

    color:var(--text-secondary);

    font-size:.78rem;

    line-height:1.8;
}


/* ==========================================================
   ARTICLE GRID
========================================================== */

.insights-article-grid{
    display:grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap:18px;
}


/* ==========================================================
   ARTICLE CARD
========================================================== */

.insight-post-card{
    overflow:hidden;

    border:1px solid var(--border);

    border-radius:20px;

    background:var(--surface);

    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.insight-post-card:hover{
    transform:translateY(-6px);

    border-color:rgba(200,161,74,.42);

    box-shadow:
        0 22px 50px rgba(15,23,42,.07);
}


/* ==========================================================
   ARTICLE IMAGE
========================================================== */

.insight-post-image{
    position:relative;

    height:220px;

    overflow:hidden;

    background:#111827;
}

.insight-post-image::after{
    content:"";

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.42),
            transparent 55%
        );

    pointer-events:none;
}

.insight-post-image img{
    width:100%;
    height:100%;

    display:block;

    object-fit:cover;

    transition:transform .55s ease;
}

.insight-post-card:hover
.insight-post-image img{
    transform:scale(1.045);
}

.insight-post-image > span{
    position:absolute;

    z-index:2;

    left:18px;
    bottom:17px;

    color:#fff;

    font-size:.55rem;

    font-weight:800;

    letter-spacing:1.7px;
}


/* ==========================================================
   ARTICLE BODY
========================================================== */

.insight-post-body{
    padding:28px;
}

.insight-post-meta{
    display:flex;

    align-items:center;
    justify-content:space-between;

    margin-bottom:15px;

    color:var(--text-secondary);

    font-size:.57rem;

    font-weight:600;
}

.insight-post-meta span:first-child{
    color:var(--accent);

    font-weight:800;

    letter-spacing:1px;
}

.insight-post-body h3{
    margin:0 0 14px;

    color:var(--text-primary);

    font-size:1.28rem;

    line-height:1.22;

    letter-spacing:-.035em;
}

.insight-post-body p{
    margin:0 0 22px;

    color:var(--text-secondary);

    font-size:.71rem;

    line-height:1.75;
}

.insight-post-body > a{
    color:var(--text-primary);

    font-size:.63rem;

    font-weight:700;

    text-decoration:none;

    transition:color .25s ease;
}

.insight-post-body > a:hover{
    color:var(--accent);
}


/* ==========================================================
   THINKING FRAMEWORK
========================================================== */

.thinking-framework{
    padding:125px 0;
}

.thinking-framework-grid{
    display:grid;

    grid-template-columns:
        minmax(280px,.8fr)
        minmax(0,1.2fr);

    gap:100px;

    align-items:start;
}

.thinking-framework-intro{
    position:sticky;

    top:110px;
}

.thinking-framework-intro > span{
    display:block;

    margin-bottom:15px;

    color:var(--accent);

    font-size:.64rem;

    font-weight:800;

    letter-spacing:2.5px;
}

.thinking-framework-intro h2{
    max-width:500px;

    margin:0 0 20px;

    color:var(--text-primary);

    font-size:
        clamp(2.4rem,3.7vw,3.9rem);

    line-height:1.03;

    letter-spacing:-.055em;
}

.thinking-framework-intro p{
    max-width:450px;

    margin:0;

    color:var(--text-secondary);

    font-size:.79rem;

    line-height:1.8;
}


/* ==========================================================
   THINKING QUESTIONS
========================================================== */

.thinking-questions{
    border-top:1px solid var(--border);
}

.thinking-question{
    display:grid;

    grid-template-columns:55px 1fr;

    gap:20px;

    padding:29px 0;

    border-bottom:1px solid var(--border);
}

.thinking-question > span{
    color:var(--accent);

    font-size:.64rem;

    font-weight:800;

    letter-spacing:1.5px;
}

.thinking-question h3{
    margin:0 0 8px;

    color:var(--text-primary);

    font-size:1rem;

    line-height:1.35;
}

.thinking-question p{
    max-width:600px;

    margin:0;

    color:var(--text-secondary);

    font-size:.71rem;

    line-height:1.7;
}


/* ==========================================================
   FOLLOW SECTION
========================================================== */

.insights-follow{
    padding:0 0 125px;
}

.insights-follow-box{
    padding:70px 50px;

    border:1px solid var(--border);

    border-radius:23px;

    background:
        linear-gradient(
            135deg,
            rgba(200,161,74,.045),
            var(--surface)
        );

    text-align:center;
}

.insights-follow-box > span{
    display:block;

    margin-bottom:15px;

    color:var(--accent);

    font-size:.63rem;

    font-weight:800;

    letter-spacing:2.5px;
}

.insights-follow-box h2{
    margin:0 auto 18px;

    max-width:720px;

    color:var(--text-primary);

    font-size:
        clamp(2.3rem,3.7vw,3.8rem);

    line-height:1.03;

    letter-spacing:-.05em;
}

.insights-follow-box h2 span{
    display:block;

    color:var(--accent);
}

.insights-follow-box p{
    max-width:600px;

    margin:0 auto 27px;

    color:var(--text-secondary);

    font-size:.78rem;

    line-height:1.8;
}

.insights-follow-box .insights-primary-btn{
    margin:0 auto;
}


/* ==========================================================
   FINAL CTA
========================================================== */

.insights-final-cta{
    padding:0 0 120px;
}

.insights-final-box{
    position:relative;

    overflow:hidden;

    padding:80px 50px;

    border:1px solid #263247;

    border-radius:24px;

    background:
        linear-gradient(
            135deg,
            #111827,
            #0B1220
        );

    text-align:center;
}

.insights-final-box::after{
    content:"";

    position:absolute;

    width:430px;
    height:430px;

    left:-210px;
    bottom:-280px;

    border-radius:50%;

    background:
        radial-gradient(
            circle,
            rgba(212,175,55,.12),
            transparent 70%
        );

    pointer-events:none;
}

.insights-final-box > span{
    position:relative;

    z-index:1;

    display:block;

    margin-bottom:17px;

    color:var(--accent);

    font-size:.64rem;

    font-weight:800;

    letter-spacing:2.5px;
}

.insights-final-box h2{
    position:relative;

    z-index:1;

    max-width:800px;

    margin:0 auto 20px;

    color:#fff;

    font-size:
        clamp(2.5rem,4vw,4.2rem);

    line-height:1.03;

    letter-spacing:-.055em;
}

.insights-final-box h2 span{
    display:block;

    color:var(--accent);
}

.insights-final-box > p{
    position:relative;

    z-index:1;

    max-width:600px;

    margin:0 auto;

    color:#AAB4C5;

    font-size:.82rem;

    line-height:1.75;
}

.insights-final-actions{
    position:relative;

    z-index:1;

    display:flex;

    align-items:center;
    justify-content:center;

    gap:12px;

    margin-top:30px;
}


/* ==========================================================
   DARK MODE
========================================================== */

html[data-theme="dark"] .insight-articles{
    background:#0C1321;

    border-color:#263247;
}

html[data-theme="dark"]
.featured-insight-card,
html[data-theme="dark"]
.insight-post-card,
html[data-theme="dark"]
.insights-follow-box{
    background:#0F172A;

    border-color:#263247;
}

html[data-theme="dark"]
.featured-insight-card:hover,
html[data-theme="dark"]
.insight-post-card:hover{
    border-color:rgba(212,175,55,.42);
}

html[data-theme="dark"]
.insights-follow-box{
    background:
        linear-gradient(
            135deg,
            rgba(212,175,55,.055),
            #0F172A
        );
}

html[data-theme="dark"]
.thinking-framework{
    background:#0B1220;
}

html[data-theme="dark"]
.thinking-question,
html[data-theme="dark"]
.thinking-questions{
    border-color:#263247;
}


/* ==========================================================
   IMAGE FALLBACK
========================================================== */

.insight-post-image img,
.featured-insight-image img{
    background:
        linear-gradient(
            135deg,
            #111827,
            #1F2937
        );
}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion:reduce){

    .insights-page-hero *,
    .featured-insight *,
    .insight-articles *,
    .thinking-framework *,
    .insights-follow *,
    .insights-final-cta *{

        animation:none !important;

        transition:none !important;

    }

}