/* Generator v3 — Article template override */

/* Progress bar */
.v3-progress-bar {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--primary, #2563EB), var(--accent, #F59E0B));
    z-index: 9999; transition: width 0.1s linear;
}

/* Hero full-bleed with image */
.v3-hero {
    position: relative; width: 100%; height: 70vh; min-height: 400px; max-height: 600px;
    overflow: hidden; margin-bottom: 0;
}
.v3-hero img, .v3-hero picture { display: block; }
.v3-hero picture img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 0 !important;
}
.v3-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 100%);
    display: flex; align-items: flex-end; padding: 3rem 2rem;
}
.v3-hero-content {
    max-width: 800px; margin: 0 auto; width: 100%;
}
.v3-hero-cat {
    display: inline-block; background: var(--primary, #2563EB); color: #fff;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    padding: 0.35rem 0.9rem; border-radius: 4px; margin-bottom: 1rem; text-decoration: none;
}
.v3-hero-cat:hover { opacity: 0.9; }
.v3-hero h1 {
    color: #fff; font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.v3-hero-meta {
    color: rgba(255,255,255,0.85); font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.v3-sep { opacity: 0.5; }

/* Hero without image */
.v3-hero-text {
    background: linear-gradient(135deg, var(--primary, #2563EB), var(--primary-dark, #1E40AF));
    padding: 5rem 2rem 4rem; text-align: center;
}
.v3-hero-text .v3-hero-content { text-align: center; }
.v3-hero-text .v3-hero-meta { justify-content: center; }
.v3-hero-text h1 { color: #fff; font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; margin-bottom: 1rem; }
.v3-hero-text .v3-hero-cat { background: rgba(255,255,255,0.2); }

/* Article body */
.v3-article {
    max-width: 740px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem;
}

/* Breadcrumb */
.v3-breadcrumb {
    font-size: 0.82rem; color: var(--text-light, #7F8C8D); margin-bottom: 2rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.v3-breadcrumb a { color: var(--text-light, #7F8C8D); text-decoration: none; }
.v3-breadcrumb a:hover { color: var(--primary, #2563EB); }

/* Intro paragraph */
.v3-intro {
    font-size: 1.2rem; line-height: 1.7; color: var(--text, #1a1a1a);
    border-left: 4px solid var(--primary, #2563EB); padding-left: 1.5rem;
    margin-bottom: 2.5rem; font-style: italic;
}

/* Content */
.v3-content { margin-bottom: 2.5rem; }
.v3-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem; margin: 2.5rem 0 1rem; line-height: 1.3;
    padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary, #2563EB);
}
.v3-content p { margin-bottom: 1.2rem; line-height: 1.85; font-size: 1.05rem; }
.v3-content ul, .v3-content ol { margin: 1rem 0 1.5rem 1.5rem; line-height: 1.8; list-style: revert; }
.v3-content li { margin-bottom: 0.5rem; font-size: 1.05rem; }
.v3-content a { color: var(--primary, #2563EB); text-decoration: underline; text-underline-offset: 3px; }
.v3-content a:hover { color: var(--primary-dark, #1E40AF); }
.v3-content strong { color: var(--text, #1a1a1a); }
.v3-content blockquote {
    margin: 2rem 0; padding: 1.5rem 2rem; border-left: 4px solid var(--accent, #F59E0B);
    background: var(--surface, #f8f8f8); border-radius: 0 8px 8px 0;
    font-style: italic; font-size: 1.1rem;
}

/* Tags */
.v3-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 3rem;
    padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.08);
}
.v3-tags span {
    background: var(--surface, #f5f5f5); color: var(--text, #333);
    font-size: 0.82rem; padding: 0.4rem 1rem; border-radius: 100px;
    font-weight: 500; transition: all 0.2s;
}
.v3-tags span:hover { background: var(--primary, #2563EB); color: #fff; }

/* Author box */
.v3-author {
    display: flex; align-items: flex-start; gap: 1.5rem;
    background: var(--surface, #f8f8f8); border-radius: 16px;
    padding: 2rem; margin-bottom: 2.5rem;
}
.v3-author-visual { flex-shrink: 0; }
.v3-author-visual img {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--primary, #2563EB);
}
.v3-author-initials {
    display: flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #2563EB), var(--accent, #F59E0B));
    color: #fff; font-weight: 700; font-size: 1.4rem;
}
.v3-author-label {
    display: block; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-light, #7F8C8D); margin-bottom: 0.25rem;
}
.v3-author-name {
    display: block; font-family: 'Playfair Display', serif;
    font-weight: 700; font-size: 1.15rem; margin-bottom: 0.4rem;
}
.v3-author-bio {
    font-size: 0.9rem; color: var(--text-light, #7F8C8D); line-height: 1.6; margin: 0;
}

/* Back link */
.v3-back {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--primary, #2563EB); font-weight: 600; font-size: 0.95rem;
    text-decoration: none; padding: 0.75rem 0;
    transition: transform 0.2s;
}
.v3-back:hover { transform: translateX(-4px); }

/* ═══════════ EDITORIAL ═══════════ */
.v3-ed-header {
    max-width: 800px; margin: 0 auto; padding: 4rem 1.5rem 2rem; text-align: center;
}
.v3-ed-cat {
    display: inline-block; color: var(--primary, #2563EB); font-size: 0.8rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.2rem;
}
.v3-ed-title {
    font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15; margin-bottom: 1.5rem; color: var(--text, #1a1a1a);
}
.v3-ed-intro {
    font-size: 1.15rem; line-height: 1.7; color: var(--text-light, #7F8C8D);
    max-width: 640px; margin: 0 auto 2rem;
}
.v3-ed-meta {
    display: flex; align-items: center; justify-content: center; gap: 1.5rem;
    font-size: 0.85rem; color: var(--text-light, #7F8C8D); flex-wrap: wrap;
    padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.08);
}
.v3-ed-author-inline {
    display: flex; align-items: center; gap: 0.6rem;
}
.v3-ed-author-inline img {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
}
.v3-author-initials.v3-sm {
    width: 36px; height: 36px; font-size: 0.8rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-weight: 700;
}
.v3-ed-image {
    max-width: 1000px; margin: 0 auto 0; overflow: hidden;
}
.v3-ed-image img, .v3-ed-image picture img {
    width: 100%; height: auto; max-height: 500px; object-fit: cover;
    border-radius: 0;
}

/* ═══════════ SIDEBAR ═══════════ */
.v3-sb-header {
    max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem 2rem;
}
.v3-sb-hero {
    margin-bottom: 1.5rem; border-radius: 12px; overflow: hidden;
}
.v3-sb-hero img, .v3-sb-hero picture img {
    width: 100%; height: auto; max-height: 420px; object-fit: cover;
    border-radius: 12px;
}
.v3-sb-title {
    font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.2; margin: 0.8rem 0 1rem;
}
.v3-sb-layout {
    display: grid; grid-template-columns: 1fr 300px; gap: 3rem;
    max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 4rem;
}
.v3-sb-main.v3-article {
    max-width: none; padding: 0; margin: 0;
}
.v3-sb-side { position: relative; }
.v3-sb-sticky {
    position: sticky; top: 2rem; display: flex; flex-direction: column; gap: 1.5rem;
}
.v3-sb-card {
    background: var(--surface, #f8f8f8); border-radius: 12px; padding: 1.5rem;
}
.v3-sb-card-author {
    display: flex; gap: 1rem; align-items: center;
}
.v3-sb-card-author img {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
}
.v3-sb-card-author p {
    font-size: 0.82rem; color: var(--text-light); margin: 0.4rem 0 0; line-height: 1.5;
}
.v3-sb-card-title {
    display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-light); margin-bottom: 0.8rem;
}
.v3-tags-sm span { font-size: 0.75rem; padding: 0.3rem 0.7rem; }

/* ═══════════ MINIMAL ═══════════ */
.v3-mn {
    max-width: 680px;
}
.v3-mn-cat {
    display: inline-block; color: var(--primary, #2563EB); font-size: 0.78rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.8rem;
}
.v3-mn-title {
    font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15; margin-bottom: 1rem;
}
.v3-mn-meta {
    font-size: 0.88rem; color: var(--text-light, #7F8C8D); margin-bottom: 1.5rem;
}
.v3-mn-hr {
    border: none; border-top: 2px solid var(--primary, #2563EB);
    width: 60px; margin: 0 0 2rem;
}
.v3-mn-intro {
    font-size: 1.15rem; line-height: 1.75; color: var(--text, #1a1a1a);
    margin-bottom: 2rem;
}
.v3-mn-image {
    margin: 0 -1.5rem 2.5rem; overflow: hidden;
}
.v3-mn-image img, .v3-mn-image picture img {
    width: 100%; height: auto; border-radius: 0;
}
.v3-content-mn h2 {
    border-bottom: none; padding-bottom: 0;
    font-size: 1.4rem; margin: 2rem 0 0.8rem;
}
.v3-content-mn p { font-size: 1.02rem; }

/* ═══════════ CARD ═══════════ */
.v3-cd-top {
    text-align: center; padding: 4rem 1.5rem 2rem; max-width: 800px; margin: 0 auto;
}
.v3-cd-title {
    font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    line-height: 1.2; margin-bottom: 1.2rem;
}
.v3-cd-image {
    max-width: 900px; margin: 0 auto 0; padding: 0 1.5rem;
}
.v3-cd-image picture img, .v3-cd-image img {
    width: 100%; height: auto; max-height: 480px; object-fit: cover;
    border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Responsive */
@media (max-width: 768px) {
    .v3-hero { height: 50vh; min-height: 300px; }
    .v3-hero-overlay { padding: 2rem 1.25rem; }
    .v3-article { padding: 1.5rem 1.25rem 3rem; }
    .v3-author { flex-direction: column; align-items: center; text-align: center; }
    .v3-intro { font-size: 1.05rem; padding-left: 1rem; }
    .v3-sb-layout { grid-template-columns: 1fr; }
    .v3-sb-side { order: -1; }
    .v3-sb-sticky { position: static; }
    .v3-ed-header { padding: 2.5rem 1.25rem 1.5rem; }
    .v3-cd-image { padding: 0; }
    .v3-cd-image picture img, .v3-cd-image img { border-radius: 0; }
    .v3-mn-image { margin: 0 0 2rem; }
}
