/* ========================================
   UNREPLUG BLOG STYLES
   ======================================== */

/* ---- BLOG HEADER ---- */

.blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
}

.blog-logo {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--accent), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.blog-header nav {
    display: flex;
    gap: 1.5rem;
}

.blog-header nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.blog-header nav a:hover {
    color: var(--text);
}

/* ---- BLOG LIST ---- */

.blog-list {
    padding: 4rem 2rem;
}

.blog-list h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.blog-list-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.blog-preview {
    background: var(--bg-section);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: border-color 0.2s;
}

.blog-preview:hover {
    border-color: var(--accent-dim);
}

.blog-preview--starred {
    border-color: rgba(100, 149, 237, 0.35);
}

.star-badge {
    color: #6495ED;
    font-size: 1em;
    margin-right: 0.2em;
    text-shadow: 0 0 8px rgba(100, 149, 237, 0.5);
}

/* ---- EDITOR'S PICKS CALLOUT + SIGNAL/NOISE TOGGLE ---- */

.editors-picks-callout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    margin-bottom: 2rem;
    background: rgba(100, 149, 237, 0.06);
    border: 1px solid rgba(100, 149, 237, 0.2);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.editors-picks-star {
    color: #6495ED;
    font-size: 1.3rem;
    text-shadow: 0 0 8px rgba(100, 149, 237, 0.5);
    flex-shrink: 0;
}

.editors-picks-callout strong {
    color: #6495ED;
}

/* Signal/Noise toggle */
.signal-noise-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.signal-noise-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    transition: color 0.3s;
}

.signal-noise-label--active {
    color: #6495ED;
}

.signal-noise-track {
    width: 44px;
    height: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    position: relative;
    transition: background 0.3s, border-color 0.3s;
}

.signal-noise-track--on {
    background: rgba(100, 149, 237, 0.2);
    border-color: rgba(100, 149, 237, 0.4);
}

.signal-noise-knob {
    width: 16px;
    height: 16px;
    background: var(--text-muted);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}

.signal-noise-track--on .signal-noise-knob {
    transform: translateX(22px);
    background: #6495ED;
    box-shadow: 0 0 8px rgba(100, 149, 237, 0.6);
}

/* Filtered state: hide non-starred posts */
.blog-preview--hiding {
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    overflow: hidden;
    transition: opacity 0.3s, max-height 0.4s ease-out, padding 0.3s, margin 0.3s, border 0.3s;
}

.blog-preview--showing {
    opacity: 1;
    max-height: 500px;
    transition: opacity 0.3s 0.1s, max-height 0.4s ease-in;
}

.blog-preview-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.blog-preview h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-preview h2 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-preview h2 a:hover {
    color: var(--accent);
}

.blog-preview p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* ---- BLOG POST ---- */

.blog-post {
    padding: 4rem 2rem;
}

.post-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.blog-post h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 3rem;
}

.post-hero {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    display: block;
}

.post-body h2 {
    font-size: 1.6rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.post-body p {
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
    color: rgba(232, 232, 239, 0.9);
}

.post-body strong {
    color: var(--text);
}

.post-body em {
    color: var(--accent);
    font-style: italic;
}

.post-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.post-body a:visited {
    color: var(--green);
}

.post-body a:hover {
    color: var(--text);
}

.post-body .btn-merriam,
.post-body .btn-merriam:visited,
.post-body .btn-merriam:hover {
    color: var(--bg);
    text-decoration: none;
    -webkit-text-fill-color: var(--bg);
}

.post-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 1.5rem 0;
}

.post-body blockquote p {
    color: var(--text-muted);
    font-style: italic;
}

.post-body ol,
.post-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-body li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: rgba(232, 232, 239, 0.9);
}

/* ---- COMPARISON TABLE ---- */

.comparison-table {
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.comp-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comp-row:last-child {
    border-bottom: none;
}

.comp-header {
    background: var(--bg-card);
}

.comp-header .comp-cell {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
}

.comp-cell {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.comp-label {
    color: var(--text);
    font-weight: 500;
}

.comp-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

/* ---- CLICHE LIST ---- */

.cliche-list {
    list-style: none;
    padding-left: 0;
}

.cliche-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cliche-list li:last-child {
    border-bottom: none;
}

.cliche-list li strong {
    color: var(--yellow);
}

/* ---- QUIZ SAMPLES ---- */

.quiz-sample {
    background: var(--bg-section);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin: 1.5rem 0;
}

.quiz-sample-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    display: block;
}

.quiz-sample p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin: 0;
}

/* Quiz reveal cards */
.quiz-reveal {
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    border-radius: 0 8px 8px 0;
}

.quiz-reveal--human {
    border-left: 3px solid var(--green);
    background: rgba(76, 234, 175, 0.03);
}

.quiz-reveal--ai {
    border-left: 3px solid var(--accent);
    background: rgba(76, 234, 175, 0.02);
}

.quiz-reveal-verdict {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.quiz-reveal--human .quiz-reveal-verdict {
    color: var(--green);
}

.quiz-reveal--ai .quiz-reveal-verdict {
    color: var(--accent);
}

.quiz-reveal p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

/* ---- DIVIDER ---- */

.post-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 2.5rem 0;
}

/* ---- POST CTA ---- */

.post-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-section);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    text-align: center;
}

.post-cta p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ---- POST CTA (bottom, after nav) ---- */

.post-cta-bottom {
    max-width: 750px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.post-cta-bottom .btn-merriam {
    display: block;
    padding: 2rem;
    background: var(--bg-section);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    font-weight: 600;
    transition: border-color 0.2s;
}

.post-cta-bottom .btn-merriam:hover {
    border-color: var(--accent-dim);
}

/* ---- POST NAVIGATION (prev/next) ---- */

.post-nav {
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.post-nav .container {
    display: flex;
    gap: 1.5rem;
}

.post-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.5rem;
    background: var(--bg-section);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s;
}

.post-nav-link:hover {
    border-color: var(--accent-dim);
}

.post-nav-prev {
    text-align: left;
}

.post-nav-next {
    text-align: right;
    margin-left: auto;
}

.post-nav-prev:only-child {
    max-width: 50%;
}

.post-nav-next:only-child {
    max-width: 50%;
    margin-left: auto;
}

.post-nav-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-nav-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
    transition: color 0.2s;
}

.post-nav-link:hover .post-nav-title {
    color: var(--text);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 600px) {
    .blog-header {
        padding: 1rem 1.5rem;
    }

    .blog-list {
        padding: 2rem 1.5rem;
    }

    .editors-picks-callout {
        flex-wrap: wrap;
    }

    .signal-noise-toggle {
        margin-left: auto;
        width: 100%;
        justify-content: center;
        padding-top: 0.5rem;
    }

    .blog-post {
        padding: 2rem 1.5rem;
    }

    .blog-preview {
        padding: 1.5rem;
    }

    .comp-row {
        grid-template-columns: 1fr;
    }

    .comp-header {
        display: none;
    }

    .comp-cell {
        padding: 0.5rem 1rem;
    }

    .comp-label {
        padding-top: 1rem;
    }

    .post-nav {
        padding: 0 1.5rem;
    }

    .post-nav .container {
        flex-direction: column;
    }

    .post-nav-prev:only-child,
    .post-nav-next:only-child {
        max-width: 100%;
    }

    .post-nav-next {
        text-align: left;
    }
}
