/* ===== Article Page — Luxury Editorial ===== */
:root {
    --a-black: #550000;
    --a-white: #ffffff;
    --a-cream: #ffe4e4;
    --a-warm-gray: #ffc4c4;
    --a-mid-gray: #cc9999;
    --a-text: #550000;
    --a-text-light: #8a4444;
    --a-gold: #890808;
    --a-gold-light: #992424;
    --a-blush: #ffc4c4;
    --a-font-display: 'Cormorant Garamond', serif;
    --a-font-body: 'Outfit', sans-serif;
}

/* --- Breadcrumb --- */
.article-breadcrumb {
    padding: 1.5rem 0 0;
    font-family: var(--a-font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--a-mid-gray);
    text-align: center;
}
.article-breadcrumb a {
    color: var(--a-mid-gray);
    transition: color 0.3s ease;
}
.article-breadcrumb a:hover {
    color: var(--a-gold);
}
.article-breadcrumb .breadcrumb-sep {
    margin: 0 0.6rem;
    opacity: 0.5;
}

/* --- Article Hero Header --- */
.article-hero-header {
    text-align: center;
    padding: 2.5rem 0 3rem;
    background: var(--a-white);
}
.article-hero-header .container {
    max-width: 1200px;
}
.article-category-label {
    display: inline-block;
    font-family: var(--a-font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--a-gold);
    margin-bottom: 1.5rem;
}
.article-category-label a {
    color: var(--a-gold);
    transition: color 0.3s ease;
}
.article-category-label a:hover {
    color: var(--a-text);
}
.article-display-title {
    font-family: var(--a-font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--a-black);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}
.article-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--a-font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--a-text-light);
    letter-spacing: 0.04em;
    flex-wrap: wrap;
}
.article-meta-row .meta-separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--a-mid-gray);
    display: inline-block;
}
.article-gold-rule {
    width: 60px;
    height: 1px;
    background: var(--a-gold);
    margin: 2rem auto 0;
    border: none;
}

/* --- Featured Image --- */
.article-featured-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 3rem;
}
.article-featured-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}
.article-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--a-cream) 0%, var(--a-blush) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-image-placeholder-inner {
    text-align: center;
    color: var(--a-gold);
}
.article-image-placeholder-inner svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}
.article-image-caption {
    font-family: var(--a-font-body);
    font-size: 0.75rem;
    color: var(--a-mid-gray);
    text-align: center;
    margin-top: 0.75rem;
    letter-spacing: 0.02em;
}

/* --- Article Body / Content --- */
.article-body-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 4rem;
    font-family: var(--a-font-body);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--a-text);
}
.article-body-section h1,
.article-body-section h2,
.article-body-section h3,
.article-body-section h4 {
    font-family: var(--a-font-display);
    font-weight: 600;
    color: var(--a-black);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}
.article-body-section h2 {
    font-size: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: none;
}
.article-body-section h3 {
    font-size: 1.5rem;
    color: var(--a-text);
}
.article-body-section p {
    margin-bottom: 1.5rem;
}
.article-body-section a {
    color: var(--a-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}
.article-body-section a:hover {
    color: var(--a-black);
}
.article-body-section ul,
.article-body-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-body-section ul {
    list-style: none;
    padding-left: 0;
}
.article-body-section ul li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.75rem;
}
.article-body-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--a-gold);
}
.article-body-section ol li {
    margin-bottom: 0.75rem;
    padding-left: 0.3rem;
}
.article-body-section ol li::marker {
    color: var(--a-gold);
    font-weight: 500;
}
.article-body-section blockquote {
    border-left: 3px solid var(--a-gold);
    margin: 2.5rem 0;
    padding: 1.25rem 1.75rem;
    background: var(--a-cream);
    border-radius: 0 4px 4px 0;
    font-family: var(--a-font-display);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--a-text-light);
}
.article-body-section blockquote p {
    margin-bottom: 0;
}
.article-body-section img {
    width: 100%;
    border-radius: 4px;
    margin: 2rem 0;
}
.article-body-section pre,
.article-body-section code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.88rem;
}
.article-body-section pre {
    background: var(--a-cream);
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--a-warm-gray);
}
.article-body-section code {
    background: var(--a-cream);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}
.article-body-section pre code {
    background: none;
    padding: 0;
}
.article-body-section strong {
    font-weight: 500;
    color: var(--a-black);
}

/* --- Tags Section --- */
.article-tags-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 3rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.article-tags-label {
    font-family: var(--a-font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--a-mid-gray);
    margin-right: 0.25rem;
}
.article-tag-pill {
    display: inline-block;
    font-family: var(--a-font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--a-text-light);
    background: var(--a-cream);
    border: 1px solid var(--a-warm-gray);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.article-tag-pill:hover {
    background: var(--a-gold);
    color: var(--a-white);
    border-color: var(--a-gold);
}

/* --- Author Card --- */
.article-author-card {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 0 20px;
}
.author-card-inner {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 2.25rem;
    background: var(--a-cream);
    border-radius: 6px;
}
.author-card-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--a-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--a-font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--a-white);
}
.author-card-info {
    flex: 1;
}
.author-card-name {
    font-family: var(--a-font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--a-black);
    margin-bottom: 0.35rem;
}
.author-card-bio {
    font-family: var(--a-font-body);
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--a-text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.author-card-link {
    font-family: var(--a-font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--a-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}
.author-card-link:hover {
    color: var(--a-black);
}

/* --- Related Articles --- */
.article-related-section {
    background: var(--a-cream);
    padding: 5rem 0;
}
.related-section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.related-section-label {
    font-family: var(--a-font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--a-gold);
    display: block;
    margin-bottom: 0.75rem;
}
.related-section-title {
    font-family: var(--a-font-display);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--a-black);
    margin-bottom: 1rem;
}
.related-section-rule {
    width: 40px;
    height: 1px;
    background: var(--a-gold);
    margin: 0 auto;
    border: none;
}
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.related-card {
    background: var(--a-white);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(85, 0, 0, 0.08);
}
.related-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--a-cream) 0%, var(--a-blush) 100%);
}
.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.related-card:hover .related-card-image img {
    transform: scale(1.05);
}
.related-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: var(--a-font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--a-white);
    background: rgba(85, 0, 0, 0.7);
    padding: 0.3rem 0.75rem;
    border-radius: 3px;
    backdrop-filter: blur(4px);
}
.related-card-body {
    padding: 1.5rem;
}
.related-card-title {
    font-family: var(--a-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--a-black);
    margin-bottom: 0.6rem;
}
.related-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.related-card-title a:hover {
    color: var(--a-gold);
}
.related-card-excerpt {
    font-family: var(--a-font-body);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--a-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-card-link {
    font-family: var(--a-font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--a-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}
.related-card-link:hover {
    color: var(--a-black);
}

/* --- Back to Articles --- */
.article-back-nav {
    text-align: center;
    padding: 3rem 0 4rem;
    background: var(--a-white);
}
.article-back-link {
    font-family: var(--a-font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--a-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.article-back-link:hover {
    color: var(--a-gold);
}
.article-back-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}
.article-back-link:hover svg {
    transform: translateX(-3px);
}

/* --- Fade-in Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    animation: articleFadeInUp 0.7s ease forwards;
}
.fade-in-up.delay-1 { animation-delay: 0.1s; }
.fade-in-up.delay-2 { animation-delay: 0.2s; }
.fade-in-up.delay-3 { animation-delay: 0.3s; }
.fade-in-up.delay-4 { animation-delay: 0.4s; }

@keyframes articleFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .article-display-title {
        font-size: 2rem;
    }
    .article-hero-header {
        padding: 1.5rem 0 2rem;
    }
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    .author-card-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .article-meta-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    .article-meta-row .meta-separator {
        display: none;
    }
}
