/* ══════════════════════════════════════
   Blog Post Shared Styles
   Matches main site: Inter font, PPC Ninja color scheme
   ══════════════════════════════════════ */

:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f8fafc;
    --white: #ffffff;
}

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

html { scroll-padding-top: 90px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--dark);
    font-size: 17px;
    line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

/* ── Floating Pill Nav (same as main site) ── */
body { padding-top: 80px; }

.nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 100px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 6px 6px 6px 28px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Back to articles link */
.back-to-blog {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 600;
    max-width: 780px;
    margin: 0 auto;
    padding: 16px 24px 0;
}

.back-to-blog:hover { text-decoration: underline; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 50px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-links a:hover { background: var(--light); color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }

.nav-cta .btn {
    border-radius: 50px;
    padding: 10px 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-right: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.99);
    z-index: 999;
    padding: 100px 32px 40px;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
    display: block;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 1.15rem;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--primary); }

.mobile-menu .mobile-menu-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    border-bottom: none;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    .nav { border-radius: 16px; top: 10px; width: calc(100% - 24px); }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .mobile-menu-btn { display: flex !important; }
}

/* ── Hero Image ── */
.post-hero {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 24px 0;
}

.post-hero-img {
    width: 100%;
    height: 360px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.post-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* ── Article ── */
article {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.post-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 14px;
}

.post-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.post-meta {
    font-size: 0.88rem;
    color: var(--gray);
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.post-meta i { margin-right: 5px; }

/* ── Content ── */
.post-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin: 40px 0 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.post-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin: 28px 0 12px;
}

.post-content p { margin-bottom: 18px; color: var(--gray); }
.post-content strong { color: var(--dark); }
.post-content ul, .post-content ol { margin: 0 0 18px 24px; color: var(--gray); }
.post-content li { margin-bottom: 8px; }

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--light);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--gray);
}

.post-content .callout {
    background: var(--light);
    border-left: 4px solid var(--dark);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
    font-size: 0.95rem;
}

.post-content .callout strong { color: var(--dark); }
.post-content .callout i { margin-right: 6px; color: var(--primary); }

.post-content img {
    margin: 24px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-content .img-caption {
    font-size: 0.8rem;
    color: var(--gray-light);
    text-align: center;
    margin-top: -16px;
    margin-bottom: 24px;
}

/* ── CTA Box ── */
.post-cta {
    background: var(--dark);
    border-radius: 16px;
    padding: 40px;
    color: white;
    text-align: center;
    margin: 48px 0;
}

.post-cta h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.post-cta p { color: var(--gray-light); margin-bottom: 20px; }

.post-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.post-cta a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ── Footer ── */
.post-footer {
    background: var(--dark);
    color: var(--gray-light);
    text-align: center;
    padding: 28px 24px;
    font-size: 0.9rem;
}

.post-footer a { color: var(--primary); }

/* ── Skool community footer banner (small, on each blog post) ── */
.skool-post-banner {
    max-width: 800px;
    margin: 48px auto 16px;
    padding: 0 24px;
}
.skool-post-banner a {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ea580c 100%);
    color: white;
    padding: 22px 32px;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    transition: all 0.25s ease;
    overflow: hidden;
    position: relative;
}
.skool-post-banner a::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.skool-post-banner a:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(220, 38, 38, 0.45);
}
.skool-post-banner img {
    height: 38px;
    width: auto;
    background: white;
    padding: 8px 14px;
    border-radius: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.skool-post-banner-text { flex: 1; position: relative; z-index: 1; }
.skool-post-banner-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 2px;
}
.skool-post-banner-text span {
    display: block;
    font-size: 0.88rem;
    opacity: 0.92;
    line-height: 1.4;
}
.skool-post-banner-arrow {
    flex-shrink: 0;
    background: white;
    color: #b91c1c;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease;
}
.skool-post-banner a:hover .skool-post-banner-arrow { transform: translateX(4px); }
@media (max-width: 640px) {
    .skool-post-banner a { flex-direction: column; text-align: center; gap: 14px; padding: 24px; }
    .skool-post-banner-arrow { width: 40px; height: 40px; }
}

/* ── Key Takeaways box (post-takeaways) ── */
.post-content .post-takeaways {
    background: var(--light);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-left: 4px solid var(--primary);
    border-radius: 0 16px 16px 0;
    padding: 22px 28px;
    margin: 32px 0;
}
.post-content .post-takeaways-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 12px;
}
.post-content .post-takeaways-title i { color: var(--primary); }
.post-content .post-takeaways ul {
    margin: 0 0 0 20px;
    color: var(--dark);
}
.post-content .post-takeaways li { margin-bottom: 8px; }
.post-content .post-takeaways li:last-child { margin-bottom: 0; }
.post-content .post-takeaways li::marker { color: var(--primary); }

/* ── FAQ section (post-faq) ── */
.post-content .post-faq { margin: 8px 0 16px; }
.post-content .post-faq-item {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px 0;
}
.post-content .post-faq-item:first-child { border-top: none; padding-top: 4px; }
.post-content .post-faq-item:last-child { padding-bottom: 0; }
.post-content .post-faq-item h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}
.post-content .post-faq-item p { margin-bottom: 0; }

/* ── Author bio box (post-author) ── */
.post-content .post-author {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 24px 28px;
    margin: 40px 0;
}
.post-content .post-author img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin: 0;
    box-shadow: none;
    border: 3px solid var(--primary);
}
.post-content .post-author-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 2px;
}
.post-content .post-author-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}
.post-content .post-author p {
    margin: 0;
    font-size: 0.92rem;
}
.post-content .post-author a { color: var(--primary); font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .post-title { font-size: 1.7rem; }
    .post-hero-img { height: 220px; }
    article { padding: 24px 16px 48px; }
    .post-content .post-author { flex-direction: column; text-align: center; gap: 14px; }
}
