/* BreathArena Blog — shared styles
   Navy + amber brand language, mirrors index.html design system. */

:root {
    --navy: #0B1120;
    --navy-mid: #111827;
    --navy-light: #1E2A3E;
    --amber: #F97316;
    --amber-hover: #EA6A0A;
    --amber-light: #FFF7ED;
    --green: #16A34A;
    --white: #FFFFFF;
    --off-white: #FAFAF8;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --star: #FBBF24;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--off-white);
    color: var(--gray-900);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-hover); text-decoration: underline; }

/* ── NAV ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navy);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.3px;
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--white); text-decoration: none; }
.nav-link.active { color: var(--amber); }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--amber);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--amber-hover);
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
    text-decoration: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 17px;
    border-radius: 10px;
}

/* ── BLOG HEADER (listing page) ── */
.blog-header {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249,115,22,0.10) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-header-inner { position: relative; z-index: 2; }

.blog-eyebrow {
    display: inline-block;
    background: rgba(249,115,22,0.15);
    border: 1px solid rgba(249,115,22,0.3);
    color: #FCA469;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.blog-header h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 600;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 18px;
    color: var(--white);
}

.blog-header .lead {
    font-size: 19px;
    color: rgba(255,255,255,0.7);
    max-width: 640px;
    margin: 0 auto;
}

/* ── BLOG GRID (listing page) ── */
.blog-grid-section {
    padding: 72px 0 100px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(11, 17, 32, 0.10);
    border-color: var(--gray-300);
    text-decoration: none;
    color: inherit;
}

.blog-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.blog-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(249,115,22,0.20) 0%, transparent 60%);
    pointer-events: none;
}

.blog-card-body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.blog-card-tag {
    background: var(--amber-light);
    color: var(--amber-hover);
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.blog-card h2 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.blog-card p {
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.blog-card-link {
    color: var(--amber);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── ARTICLE PAGE ── */
.article-hero {
    background: var(--navy);
    color: var(--white);
    padding: 70px 0 60px;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 65%);
    pointer-events: none;
}

.article-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumb {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    margin-bottom: 22px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb-sep { margin: 0 8px; color: rgba(255,255,255,0.35); }

.article-tag {
    display: inline-block;
    background: rgba(249,115,22,0.18);
    border: 1px solid rgba(249,115,22,0.35);
    color: #FCA469;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.article-h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 22px;
    color: var(--white);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    flex-wrap: wrap;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber) 0%, #FB923C 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.article-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
}

/* ── ARTICLE BODY ── */
.article-body {
    padding: 64px 0 80px;
    background: var(--off-white);
}

.article-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    font-size: 17.5px;
    line-height: 1.8;
    color: var(--gray-800);
}

.article-content > p:first-of-type {
    font-size: 19px;
    color: var(--gray-700);
    line-height: 1.65;
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    color: var(--gray-900);
    margin-top: 56px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 36px;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 28px;
    margin-bottom: 10px;
}

.article-content p {
    margin-bottom: 22px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 24px 22px;
    padding: 0;
}

.article-content li {
    margin-bottom: 10px;
    padding-left: 6px;
}

.article-content strong { color: var(--gray-900); font-weight: 700; }
.article-content em { color: var(--gray-700); }

.article-content a {
    color: var(--amber-hover);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: var(--amber);
}

.article-content blockquote {
    border-left: 3px solid var(--amber);
    background: var(--amber-light);
    padding: 22px 26px;
    margin: 32px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--gray-800);
    font-size: 18px;
    line-height: 1.65;
}

.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-style: normal;
    color: var(--gray-600);
    font-weight: 600;
}

.callout {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--amber);
    padding: 22px 26px;
    margin: 30px 0;
    border-radius: 8px;
}

.callout-title {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.callout p:last-child { margin-bottom: 0; }

.callout.callout-warning { border-left-color: #DC2626; }
.callout.callout-warning .callout-title { color: #991B1B; }

.callout.callout-tip { border-left-color: var(--green); }
.callout.callout-tip .callout-title { color: #166534; }

/* TOC */
.toc {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 8px 0 36px;
}

.toc-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
}

.toc ol {
    margin: 0;
    padding-left: 20px;
}

.toc li {
    margin-bottom: 6px;
    color: var(--gray-700);
    font-size: 15px;
}

.toc li a {
    color: var(--gray-700);
    text-decoration: none;
}

.toc li a:hover { color: var(--amber); }

/* Comparison table */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0 36px;
    font-size: 15px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.compare-table th {
    background: var(--navy);
    color: var(--white);
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
}

.compare-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--gray-50); }
.compare-table .yes { color: var(--green); font-weight: 700; }
.compare-table .no { color: #DC2626; font-weight: 700; }

/* FAQ list (in posts) */
.post-faq {
    margin: 36px 0;
}

.post-faq details {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 0;
    overflow: hidden;
}

.post-faq summary {
    padding: 18px 22px;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    list-style: none;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after {
    content: '+';
    font-size: 22px;
    color: var(--amber);
    font-weight: 400;
    transition: transform 0.2s;
}

.post-faq details[open] summary::after { content: '−'; }

.post-faq details > div {
    padding: 0 22px 20px;
    color: var(--gray-700);
    font-size: 15.5px;
    line-height: 1.7;
}

/* CTA card inside posts */
.inline-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    border-radius: 16px;
    padding: 36px 32px;
    margin: 44px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    box-shadow: 0 12px 32px rgba(11, 17, 32, 0.20);
    position: relative;
    overflow: hidden;
}

.inline-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249,115,22,0.18) 0%, transparent 65%);
    pointer-events: none;
}

.inline-cta-text { position: relative; z-index: 2; flex: 1; }

.inline-cta h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.inline-cta p {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    margin: 0;
}

.inline-cta .btn-primary { position: relative; z-index: 2; flex-shrink: 0; }

/* Author + share */
.article-author-block {
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 28px 0;
    margin: 48px 0 36px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.article-author-block .article-author-avatar { width: 56px; height: 56px; font-size: 20px; flex-shrink: 0; }

.article-author-block .author-name {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 16px;
    margin-bottom: 4px;
}

.article-author-block .author-bio {
    color: var(--gray-600);
    font-size: 14.5px;
    line-height: 1.6;
}

/* Related posts */
.related-section {
    background: var(--gray-50);
    padding: 64px 0;
    border-top: 1px solid var(--gray-200);
}

.related-section h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 36px;
    letter-spacing: -0.5px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* ── FOOTER ── */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 28px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-link-group h4 {
    font-size: 14px;
    color: var(--white);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.footer-link-group a {
    display: block;
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-link-group a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.10);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-link { display: none; }
    .nav-right { gap: 12px; }
    .blog-header { padding: 56px 0 48px; }
    .article-hero { padding: 48px 0 44px; }
    .article-content { font-size: 16.5px; }
    .article-content h2 { font-size: 28px; margin-top: 40px; }
    .article-content h3 { font-size: 19px; }
    .inline-cta { flex-direction: column; text-align: center; padding: 28px 22px; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-links { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; }
    .compare-table { font-size: 13.5px; }
    .compare-table th, .compare-table td { padding: 10px 12px; }
}
