/* ============================================
   Featured Article Detail Page
   ============================================ */

:root {
    --article-bg: #ffffff;
    --article-panel-bg: #ffffff
    --article-text: #0b1f2a;
    --article-muted: rgba(11, 31, 42, 0.74);
    --article-soft: rgba(11, 31, 42, 0.50);
    --article-border: rgba(11, 31, 42, 0.14);
    --article-border-strong: rgba(11, 31, 42, 0.22);
    --article-divider: rgba(11, 31, 42, 0.12);

    --article-page-width: min(1180px, 92vw);
    --article-panel-width: min(960px, 82vw);
    --article-recent-width: min(960px, 82vw);

    --article-title-size: clamp(2.25rem, 4.3vw, 3.9rem);
    --article-body-size: 1.08rem;
    --article-meta-size: 0.95rem;
    --article-small-size: 0.88rem;
}

/* Extend warm background to main when article page is present */
.journal-main:has(.featured-article-page) {
    background: var(--article-bg);
}

.featured-article-page {
    background: var(--article-bg);
    color: var(--article-text);
    padding: 2.75rem 0 3.5rem;
}

.featured-article-page__container {
    max-width: var(--article-page-width);
    margin: 0 auto;
    padding: 0 1.75rem;
}

.featured-article-page__back {
    margin-bottom: 1.6rem;
}

.featured-article-page__back a {
    font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: var(--article-small-size);
    color: var(--article-muted);
    text-decoration: none;
}

.featured-article-page__back a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.featured-article-panel {
    max-width: var(--article-panel-width);
    margin: 0 auto 2.5rem;
    border: 1px solid var(--article-border);
    background: var(--article-panel-bg);
}

.featured-article-panel__inner {
    padding: 3.5rem 4rem 2.5rem;
}

@media (max-width: 900px) {
    .featured-article-panel__inner {
        padding: 2.4rem 1.8rem 2.1rem;
    }
}

/* Meta row */
.featured-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 1.75rem;
}

.featured-article-meta__left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: var(--article-meta-size);
    color: var(--article-muted);
}

.featured-article-meta__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--article-soft);
    opacity: 0.35;
}

.featured-article-meta__author {
    font-weight: 500;
}

.featured-article-meta__dot {
    opacity: 0.7;
}

.featured-article-meta__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.featured-article-meta__dropdown {
    position: relative;
}

.featured-article-meta__icon,
.featured-article-meta__dots {
    font-size: 1.1rem;
    color: var(--article-soft);
    background: none;
    border: none;
    padding: 0.25rem 0.4rem;
    cursor: pointer;
    line-height: 1;
}

.featured-article-meta__dots:hover {
    color: var(--article-text);
}

.featured-article-meta__dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.35rem;
    min-width: 220px;
    padding: 0.6rem 0;
    background: #fcfcf8;
    border: 1px solid var(--article-border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(11, 31, 42, 0.08);
    z-index: 100;
}

.featured-article-meta__dropdown-header {
    font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--article-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 1rem 0.5rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid var(--article-divider);
}

.featured-article-meta__share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.featured-article-share-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: 0.9rem;
    color: var(--article-text);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.featured-article-share-btn:hover {
    background: rgba(11, 31, 42, 0.05);
}

.featured-article-share-btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Title */
.featured-article-title {
    font-family: var(--font-serif, 'Playfair Display', 'Georgia', 'Times New Roman', serif);
    font-size: clamp(36px, 4.3vw, 62.4px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--article-text);
    margin: 0 0 1.5rem;
    max-width: 90%;
}

/* Updated date */
.featured-article-updated {
    font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: var(--article-small-size);
    color: var(--article-muted);
    margin-bottom: 1.75rem;
}

/* Body / abstract */
.featured-article-body {
    font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: var(--article-body-size);
    line-height: 1.78;
    color: var(--article-text);
    max-width: 88%;
}

.featured-article-body p {
    margin: 0 0 1.4rem;
}

.featured-article-body p:last-child {
    margin-bottom: 0;
}

.featured-article-readmore {
    font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: var(--article-body-size);
    margin-top: 0.6rem;
    margin-bottom: 1.6rem;
    color: var(--article-text);
}

/* PDF attachment box */
.featured-article-pdf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1rem 1.1rem;
    border-radius: 4px;
    border: 1px solid var(--article-border);
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    transition: 
        background 0.2s ease, 
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* .featured-article-pdf:hover {
    background: #f8f8f2;
    border-color: var(--article-border-strong);
} */

.featured-article-pdf:hover {
    background: #ffffff;
    border-color: #444;
    box-shadow: 0 0 0 1px #444;
}

.featured-article-pdf__left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.featured-article-pdf__icon {
    font-size: 1.3rem;
    color: var(--article-soft);
}

.featured-article-pdf__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.featured-article-pdf__name {
    font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--article-text);
}

.featured-article-pdf__meta {
    font-size: var(--article-small-size);
    color: var(--article-muted);
}

.featured-article-pdf__download {
    font-size: 1.1rem;
    color: var(--article-soft);
}

/* Dividers */
.featured-article-divider {
    height: 1px;
    width: 100%;
    background: var(--article-divider);
    margin: 1.75rem 0 1.1rem;
}

/* Share row */
.featured-article-share {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.featured-article-share__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: 0.95rem;
    color: var(--article-text);
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background: rgba(11, 31, 42, 0.03);
    border: 1px solid var(--article-border);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.featured-article-share__link:hover {
    background: rgba(11, 31, 42, 0.06);
    border-color: var(--article-border-strong);
}

.featured-article-share__link.featured-article-copy-link {
    cursor: pointer;
}

.featured-article-share__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Stats row */
.featured-article-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

.featured-article-stats__views {
    font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: var(--article-small-size);
    color: var(--article-muted);
}

.featured-article-stats__likes {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--article-border);
    background: #ffffff;
    cursor: pointer;
    font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: var(--article-small-size);
    color: var(--article-muted);
}

.featured-article-stats__likes:hover {
    border-color: var(--article-border-strong);
}

.featured-article-like-btn--active {
    background: #0b1f2a;
    color: #ffffff;
    border-color: #0b1f2a;
}

.featured-article-stats__heart {
    font-size: 0.85rem;
}

/* ============================================
   Recent Posts
   ============================================ */

.featured-article-recent {
    max-width: var(--article-panel-width);
    margin: 2rem auto 0;
}

.featured-article-recent__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.featured-article-recent__title {
    font-family: var(--font-serif, 'Playfair Display', 'Georgia', 'Times New Roman', serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--article-text);
}

.featured-article-recent__seeall {
    font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: var(--article-small-size);
    color: var(--article-muted);
    text-decoration: none;
}

.featured-article-recent__seeall:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.featured-article-recent__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.featured-article-recent-card {
    border-radius: 4px;
    border: 1px solid var(--article-border);
    background: #ffffff;
    overflow: hidden;
}

.featured-article-recent-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-article-recent-card__image-wrap {
    width: 100%;
    aspect-ratio: 1.35 / 1;
    overflow: hidden;
    background: #ffffff;
}

.featured-article-recent-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.featured-article-recent-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

.featured-article-recent-card:hover .featured-article-recent-card__image {
    transform: scale(1.04);
}

.featured-article-recent-card__body {
    padding: 0.9rem 0.9rem 0.7rem;
}

.featured-article-recent-card__title {
    font-family: var(--font-serif, 'Playfair Display', 'Georgia', 'Times New Roman', serif);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.42;
    margin: 0 0 0.55rem;
    min-height: 2.4em;
}

.featured-article-recent-card__divider {
    height: 1px;
    width: 100%;
    background: var(--article-divider);
    margin: 0.3rem 0 0.4rem;
}

.featured-article-recent-card__stats {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: var(--article-small-size);
    color: var(--article-muted);
}

.featured-article-recent-card__stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

@media (max-width: 900px) {
    .featured-article-recent__grid {
        grid-template-columns: 1fr;
    }
}

