/* Shared styles for all Insights posts.
   New post = copy _TEMPLATE.html, link this file, write the body. */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary-blue: #4A90E2;
    --dark-blue: #2C5282;
    --light-blue: #E6F2FF;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --gray-bg: #F8F9FA;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-blue);
    text-decoration: none;
    transition: transform 0.3s ease;
}
.logo:hover { transform: scale(1.05); }
.logo-img { height: 50px; width: auto; margin-right: 15px; }
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.cta-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4); }
.cta-button::after { display: none; }

/* Post header */
.post-header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    padding: 9rem 2rem 3.5rem;
    color: white;
}
.post-header-inner { max-width: 760px; margin: 0 auto; }
.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1.25rem;
}
.breadcrumb a { color: white; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.4); }
.breadcrumb a:hover { border-color: white; }
.post-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.18);
    padding: 0.35rem 0.8rem;
    border-radius: 5px;
    margin-bottom: 1.1rem;
}
.post-header h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.post-dek { font-size: 1.2rem; opacity: 0.92; }
.post-meta {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.22);
    font-size: 0.92rem;
    opacity: 0.85;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* At-a-glance box (case studies) */
.glance {
    max-width: 760px;
    margin: -2rem auto 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(44,82,130,0.13);
    padding: 1.75rem 2rem;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}
.glance-item h4 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}
.glance-item p { font-size: 1rem; font-weight: 600; color: var(--dark-blue); line-height: 1.4; }

/* Body */
.post-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 3.5rem 2rem 4rem;
    font-size: 1.09rem;
}
.post-body h2 {
    font-size: 1.75rem;
    color: var(--dark-blue);
    margin: 2.75rem 0 1rem;
    line-height: 1.3;
}
.post-body h3 {
    font-size: 1.25rem;
    color: var(--dark-blue);
    margin: 2rem 0 0.75rem;
}
.post-body p { margin-bottom: 1.35rem; color: #3d4450; }
.post-body ul, .post-body ol { margin: 0 0 1.5rem 1.4rem; }
.post-body li { margin-bottom: 0.65rem; color: #3d4450; }
.post-body strong { color: var(--text-dark); font-weight: 650; }
.post-body a { color: var(--primary-blue); }
.post-body code {
    background: var(--gray-bg);
    border: 1px solid #e6eaf0;
    border-radius: 4px;
    padding: 0.12em 0.4em;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.pull-quote {
    border-left: 4px solid var(--primary-blue);
    background: var(--gray-bg);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--dark-blue);
    border-radius: 0 10px 10px 0;
}
.callout {
    background: var(--light-blue);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}
.callout h4 { color: var(--dark-blue); margin-bottom: 0.6rem; font-size: 1.05rem; }
.callout p:last-child { margin-bottom: 0; }

/* Draft marker — search the repo for "fill-me" before publishing */
.fill-me {
    background: #FEF3C7;
    border-bottom: 2px dotted #D97706;
    color: #92400E;
    padding: 0.05em 0.3em;
    border-radius: 3px;
    font-weight: 600;
}

/* Post CTA */
.post-cta {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}
.post-cta h2 { font-size: 2rem; margin-bottom: 1rem; }
.post-cta p { font-size: 1.05rem; opacity: 0.92; max-width: 560px; margin: 0 auto 2rem; }
.primary-button {
    background: white;
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }

/* Footer */
footer {
    background: #1a202c;
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.footer-links a { color: white; text-decoration: none; opacity: 0.8; transition: opacity 0.3s ease; }
.footer-links a:hover { opacity: 1; }
footer p { opacity: 0.6; font-size: 0.9rem; margin-bottom: 0.4rem; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .post-header { padding: 7rem 1.5rem 3rem; }
    .post-header h1 { font-size: 1.85rem; }
    .post-dek { font-size: 1.05rem; }
    .glance { margin: -1.5rem 1rem 0; padding: 1.5rem; }
    .post-body { padding: 2.5rem 1.5rem 3rem; font-size: 1.03rem; }
    .post-body h2 { font-size: 1.45rem; }
    .post-cta h2 { font-size: 1.5rem; }
}
