/* ========== ARTICLE PAGE STYLES ========== */

/* ========== ARTICLE HERO ========== */
.article-hero {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 60px) 32px 0;
}
.article-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 40px;
    transition: color 0.2s;
    text-decoration: none;
}
.article-hero__back:hover { color: var(--primary); }
.article-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.article-hero__tag {
    display: inline-block;
    padding: 4px 14px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    background: rgba(29, 185, 160, 0.08);
    color: var(--primary);
    border: 1px solid rgba(29, 185, 160, 0.12);
}
.article-hero__date { font-size: 12px; color: var(--text-muted); }
.article-hero__reading { font-size: 12px; color: var(--text-dim); }
.article-hero__title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 800px;
    margin-bottom: 20px;
}
.article-hero__title span {
    background: linear-gradient(135deg, var(--primary-bright) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.article-hero__excerpt {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 48px;
}
.article-hero__img {
    width: calc(100% + 180px);
    margin-left: -90px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}
.article-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== ARTICLE BODY ========== */
.article-body {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 72px 32px 120px;
}
.article-body h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 56px 0 20px;
    line-height: 1.2;
    color: var(--text-primary);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 40px 0 16px;
    line-height: 1.3;
    color: var(--text-primary);
}
.article-body p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 24px;
}
.article-body strong { color: var(--text-primary); font-weight: 600; }
.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.article-body a:hover { color: var(--primary-bright); }
.article-body blockquote {
    margin: 40px 0;
    padding: 24px 32px;
    border-left: 3px solid var(--primary);
    background: rgba(29, 185, 160, 0.03);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.article-body blockquote p {
    font-size: 17px;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 0;
    line-height: 1.7;
}
.article-body ul, .article-body ol {
    margin: 0 0 24px 20px;
    color: var(--text-secondary);
}
.article-body li {
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 8px;
    padding-left: 8px;
}
.article-body li::marker { color: var(--primary); }

/* Callout box */
.article-callout {
    margin: 48px 0;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}
.article-callout::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-bright), transparent);
}
.article-callout__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.article-callout p { margin-bottom: 0; }

/* Divider */
.article-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
    margin: 56px 0;
}

/* ========== ARTICLE END — Share + CTA ========== */
.article-end {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px 80px;
}
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}
.article-share__label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.article-share__btn {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}
.article-share__btn:hover { border-color: var(--primary); color: var(--primary); }

/* Next article */
.article-next {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}
.article-next:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.article-next__img {
    width: 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.article-next__img img { width: 100%; height: 100%; object-fit: cover; }
.article-next__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 6px;
}
.article-next__title { font-size: 16px; font-weight: 600; line-height: 1.4; }

/* ========== RELATED ARTICLES ========== */
.related {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px 120px;
}
.related__heading {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 32px;
}
.related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}
.related-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.related-card__img { width: 100%; height: 180px; overflow: hidden; }
.related-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.related-card:hover .related-card__img img { transform: scale(1.05); }
.related-card__body { padding: 24px; }
.related-card__tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}
.related-card__title { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.related-card__date { font-size: 12px; color: var(--text-muted); }

/* ========== ARTICLE RESPONSIVE ========== */
@media (max-width: 1000px) {
    .article-hero__title { font-size: 40px; }
    .related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .article-hero__title { font-size: 32px; }
    .article-hero__excerpt { font-size: 16px; }
    .article-body h2 { font-size: 24px; }
    .related__grid { grid-template-columns: 1fr; }
    .article-next { flex-direction: column; }
    .article-next__img { width: 100%; height: 160px; }
    .article-hero, .article-body, .article-end, .related { padding-left: 20px; padding-right: 20px; }
}
