/* ===================================
   buildr.sh Blog & Comparison Pages
   =================================== */

/* ===================================
   Blog Index — Post Cards
   =================================== */
.post-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.25);
}

.post-card-link {
    display: block;
    padding: 1.5rem;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.post-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.85rem;
}

.tag-alternative {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.tag-vs {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan-light);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.tag-post {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.post-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.post-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.post-card-meta {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ===================================
   Filter Tabs (blog index)
   =================================== */
.filter-tabs {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.35rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
}

.filter-tab {
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    background: transparent;
    border: none;
    white-space: nowrap;
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.is-active {
    background: var(--accent-cyan);
    color: white;
}

:root.light .filter-tab.is-active {
    color: white;
}

/* Hide cards filtered out */
.post-card.is-hidden {
    display: none;
}

/* ===================================
   Article body (post pages)
   =================================== */
.article-prose {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 75ch;
    margin: 0 auto;
}

.article-prose > * + * {
    margin-top: 1.25rem;
}

.article-prose h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-prose h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2.25rem;
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.article-prose h2 .accent,
.article-prose h3 .accent {
    background: linear-gradient(to right, var(--accent-cyan-light), var(--accent-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.article-prose p {
    color: var(--text-secondary);
}

.article-prose strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-prose a {
    color: var(--accent-cyan-light);
    text-decoration: underline;
    text-decoration-color: rgba(34, 211, 238, 0.3);
    text-underline-offset: 3px;
}

.article-prose a:hover {
    text-decoration-color: var(--accent-cyan-light);
}

.article-prose ul,
.article-prose ol {
    padding-left: 1.5rem;
}

.article-prose ul li {
    list-style: disc;
    margin-top: 0.4rem;
}

.article-prose ol li {
    list-style: decimal;
    margin-top: 0.4rem;
}

.article-prose code {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-size: 0.9em;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan-light);
    padding: 0.15em 0.4em;
    border-radius: 0.35rem;
}

.article-prose blockquote {
    border-left: 3px solid var(--accent-cyan);
    padding: 0.5rem 0 0.5rem 1.25rem;
    color: var(--text-primary);
    font-style: italic;
}

/* ===================================
   Hero of an article
   =================================== */
.article-hero {
    padding: 8rem 1rem 3rem;
    text-align: center;
    max-width: 60rem;
    margin: 0 auto;
}

.article-hero h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-hero .hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 45rem;
    margin: 0 auto;
}

.article-meta-row {
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

.article-meta-row .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

/* ===================================
   TL;DR Box
   =================================== */
.tldr-box {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    margin: 2.5rem 0;
}

.tldr-box .tldr-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-cyan-light);
    margin-bottom: 0.5rem;
    display: block;
}

.tldr-box p {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   Verdict Box
   =================================== */
.verdict-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.verdict-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), transparent 60%);
    pointer-events: none;
}

.verdict-box .verdict-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-cyan-light);
    margin-bottom: 0.75rem;
    display: block;
}

.verdict-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* ===================================
   "Who is it for" two-column
   =================================== */
.persona-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 2.5rem 0;
}

@media (min-width: 768px) {
    .persona-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.persona-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
}

.persona-card.persona-buildr {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 30px -15px rgba(6, 182, 212, 0.4);
}

.persona-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.persona-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.persona-card li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
    line-height: 1.5;
}

.persona-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-cyan-light);
    font-weight: 700;
}

.persona-card.persona-competitor li::before {
    color: #94a3b8;
}

/* ===================================
   Comparison Table (Pro version)
   =================================== */
.cmp-table-wrapper {
    margin: 2.5rem 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    overflow: hidden;
}

.cmp-table {
    width: 100%;
    border-collapse: collapse;
}

.cmp-table thead th {
    text-align: left;
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.4);
}

:root.light .cmp-table thead th {
    background: rgba(248, 250, 252, 0.7);
}

.cmp-table thead th.col-buildr {
    color: var(--accent-cyan-light);
    background: rgba(6, 182, 212, 0.08);
}

.cmp-table tbody td {
    padding: 0.95rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
    vertical-align: top;
    line-height: 1.5;
}

.cmp-table tbody tr:last-child td {
    border-bottom: 0;
}

.cmp-table tbody td:first-child {
    color: var(--text-primary);
    font-weight: 600;
    width: 28%;
    min-width: 11rem;
}

.cmp-table tbody td.col-buildr {
    background: rgba(6, 182, 212, 0.04);
    color: var(--text-primary);
}

.cmp-cell-good::before {
    content: "✓ ";
    color: #34d399;
    font-weight: 700;
}

.cmp-cell-bad::before {
    content: "✗ ";
    color: #f87171;
    font-weight: 700;
}

.cmp-cell-meh::before {
    content: "~ ";
    color: #fbbf24;
    font-weight: 700;
}

@media (max-width: 640px) {
    .cmp-table-wrapper {
        overflow-x: auto;
    }
    .cmp-table {
        min-width: 36rem;
    }
}

/* ===================================
   Round-style headlines (vs pages)
   =================================== */
.round-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3.5rem 0 1.25rem;
}

.round-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.round-header h2 {
    margin: 0 !important;
    font-size: 1.75rem;
    line-height: 1.15;
    color: var(--text-primary);
    font-weight: 800;
}

@media (min-width: 768px) {
    .round-header h2 {
        font-size: 2.05rem;
    }
}

/* ===================================
   Jab callout (subtle dig at competitor)
   =================================== */
.jab-callout {
    border-left: 3px solid var(--accent-violet);
    background: rgba(139, 92, 246, 0.06);
    padding: 1rem 1.25rem;
    border-radius: 0 0.6rem 0.6rem 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-primary);
}

.jab-callout::before {
    content: "💭 ";
}

/* ===================================
   Final CTA card (post end)
   =================================== */
.post-cta {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    text-align: center;
    margin: 4rem auto 2rem;
    max-width: 50rem;
}

.post-cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.post-cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}

.post-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-cyan);
    color: white;
    padding: 0.9rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.65rem;
    text-decoration: none;
    box-shadow: 0 4px 16px -4px rgba(6, 182, 212, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px -4px rgba(6, 182, 212, 0.65);
}

/* ===================================
   Related posts (bottom of post)
   =================================== */
.related-posts {
    max-width: 60rem;
    margin: 4rem auto 2rem;
    padding: 0 1rem;
}

.related-posts h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ===================================
   Page hero gradient (lighter than landing)
   =================================== */
.blog-page-bg {
    background:
        radial-gradient(at 20% 10%, hsla(190, 90%, 50%, 0.05) 0px, transparent 50%),
        radial-gradient(at 80% 30%, hsla(265, 90%, 60%, 0.05) 0px, transparent 50%);
}

/* ===================================
   Author bylines (4 personas)
   =================================== */
.article-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: 720px;
    margin: 0 auto 2.5rem auto;
    padding: 0.85rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.85rem;
    backdrop-filter: blur(12px);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: white;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.author-info { display: flex; flex-direction: column; line-height: 1.3; }
.author-name { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }
.author-role { color: var(--text-tertiary); font-size: 0.8rem; }

.author-lex   { background: linear-gradient(135deg, #f43f5e, #be123c); }
.author-maya  { background: linear-gradient(135deg, #22d3ee, #0e7490); }
.author-diego { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.author-riley { background: linear-gradient(135deg, #34d399, #047857); }

/* Tiny chips on post-cards */
.author-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.04em;
    margin-right: 0.35rem;
}
.author-lex-chip   { background: linear-gradient(135deg, #f43f5e, #be123c); }
.author-maya-chip  { background: linear-gradient(135deg, #22d3ee, #0e7490); }
.author-diego-chip { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.author-riley-chip { background: linear-gradient(135deg, #34d399, #047857); }

/* tag-post (Article) — emerald to differentiate from alt/vs */
.tag-post {
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.3);
}
