/* ===== ARTICLE PAGE ===== */
.article-page {
    padding: 24px 0 60px;
    min-height: 60vh;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--gray-500);
    margin-bottom: 28px;
}

.breadcrumb a {
    color: var(--gray-500);
    transition: color .25s;
}

.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--gray-900); font-weight: 600; }

/* Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* Main article */
.article-main {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: 1px solid var(--gray-200);
}

.article-hero-img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.article-hero-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.article-hero-placeholder svg {
    width: 50px;
    height: 50px;
    opacity: .3;
}

.article-body {
    padding: 36px 40px 40px;
}

.article-category-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    margin-bottom: 16px;
}

.article-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.article-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--gray-100);
    font-size: .84rem;
    color: var(--gray-500);
    flex-wrap: wrap;
}

.article-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-info-item svg {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
}

.article-author-name { color: var(--red); font-weight: 600; }

.article-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 3px solid var(--red);
}

.article-content {
    font-size: .95rem;
    line-height: 1.85;
    color: var(--gray-700);
}

.article-content p { margin-bottom: 18px; }

.article-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 32px 0 16px;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: var(--gray-50);
    border-left: 4px solid var(--red);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--gray-600);
}

.article-content ul, .article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li { margin-bottom: 8px; }

.article-content strong { color: var(--gray-900); }

/* Share bottom bar */
.article-share-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 28px;
    margin-top: 32px;
    border-top: 1px solid var(--gray-100);
    flex-wrap: wrap;
}

.article-share-bottom span {
    font-weight: 700;
    font-size: .85rem;
    color: var(--gray-900);
}

.share-btn-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform .25s, opacity .25s;
}

.share-btn-mini:hover { transform: scale(1.1); }
.share-btn-mini svg { width: 18px; height: 18px; }

.mini-facebook { background: #1877F2; }
.mini-whatsapp { background: #25D366; }
.mini-x { background: #000; }
.mini-telegram { background: #0088cc; }

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 90px;
}

.share-widget,
.related-widget {
    background: var(--white);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid var(--gray-200);
}

.share-widget h3,
.related-widget h3 {
    font-size: .95rem;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: .84rem;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
}

.share-btn:hover { transform: translateX(4px); opacity: .9; }
.share-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.share-facebook { background: #1877F2; }
.share-whatsapp { background: #25D366; }
.share-x { background: #000; }
.share-telegram { background: #0088cc; }
.share-copy { background: var(--gray-700); color: #fff; }

/* Related articles */
.related-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: padding .25s;
    text-decoration: none;
    color: inherit;
}

.related-item:last-child { border-bottom: none; }
.related-item:hover { padding-left: 6px; }

.related-item-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--gray-200);
}

.related-item-text h4 {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item-text span {
    font-size: .72rem;
    color: var(--gray-500);
}

/* Loading */
.article-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--gray-400);
    gap: 16px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #141414;
        flex-direction: column;
        padding: 16px;
        border-top: 1px solid #262626;
    }
    .nav.open { display: flex; }
    .menu-toggle { display: flex; }
    .article-body { padding: 24px 20px 28px; }
    .article-title { font-size: 1.5rem; }
    .article-excerpt { font-size: 1rem; }
}

@media (max-width: 480px) {
    .article-title { font-size: 1.3rem; }
    .article-info { gap: 10px; }
}
