/* ===================== ARTICLE DETAIL PAGE ===================== */

.article-detail-page {
    min-height: 100vh;
    background: var(--warm-white);
    padding-top: 80px; /* ارتفاع navbar */
}

/* --- Breadcrumb --- */
.art-breadcrumb {
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}
.art-breadcrumb-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.art-breadcrumb-inner a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.art-breadcrumb-inner a:hover {
    color: var(--gold-dark);
}
.art-bc-sep {
    color: var(--border);
}
.art-breadcrumb-inner span:last-child {
    color: var(--text);
    font-weight: 500;
}

/* --- Layout --- */
.art-detail-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* --- Article Header --- */
.art-header {
    margin-bottom: 28px;
}
.art-header-badge {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 0.03em;
}
.art-header-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--brown-dark);
    line-height: 1.5;
    margin-bottom: 16px;
}
.art-header-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.art-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
}
.art-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.art-meta-divider {
    width: 1px;
    height: 14px;
    background: var(--border);
    flex-shrink: 0;
}

/* --- Hero Image --- */
.art-hero-img {
    width: 100%;
    aspect-ratio: 16/7;
    background: linear-gradient(
        135deg,
        var(--brown) 0%,
        var(--brown-dark) 100%
    );
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    overflow: hidden;
}
.art-hero-img-inner {
    font-size: 6rem;
    opacity: 0.7;
}

/* --- Article Content --- */
.art-content {
    color: var(--text);
    line-height: 1.9;
    font-size: 1rem;
}
.art-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin: 36px 0 14px;
    padding-right: 14px;
    border-right: 4px solid var(--gold);
}
.art-content p {
    margin-bottom: 18px;
}

.art-lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--brown);
    background: var(--cream);
    padding: 18px 20px;
    border-radius: 10px;
    border-right: 4px solid var(--gold-dark);
    margin-bottom: 28px !important;
}

.art-quote {
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--cream);
    border-radius: 12px;
    border-right: 5px solid var(--gold);
    font-style: italic;
}
.art-quote p {
    font-size: 1.05rem;
    color: var(--brown-dark);
    margin-bottom: 8px !important;
}
.art-quote cite {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal;
}

/* --- Inline Gallery --- */
.art-inline-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0 8px;
}
.art-gallery-item {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--cream), var(--gold-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 1px solid var(--border);
}
.art-gallery-caption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px !important;
}

/* --- Highlight Box --- */
.art-highlight-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: linear-gradient(135deg, #fffbf0, #fff8e7);
    border: 1px solid var(--gold-light);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 28px 0;
}
.art-highlight-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.art-highlight-text {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.7;
}
.art-highlight-text strong {
    color: var(--brown-dark);
}

/* --- Tags --- */
.art-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.art-tag {
    background: var(--cream);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 5px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    cursor: default;
}
.art-tag:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

/* --- Share --- */
.art-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.art-share-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.art-share-btn {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.art-share-btn:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

/* --- Related Articles --- */
.art-related {
    margin-top: 8px;
}
.art-related-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
}
.art-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.art-related-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    background: #fff;
    transition: all 0.25s;
}
.art-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--gold-light);
}
.art-related-thumb {
    height: 90px;
    background: linear-gradient(135deg, var(--cream), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.art-related-info {
    padding: 12px;
}
.art-related-cat {
    font-size: 0.7rem;
    color: var(--gold-dark);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}
.art-related-name {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
}

/* ===================== SIDEBAR ===================== */
.art-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.art-sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}
.art-sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

/* Author box */
.art-author-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.art-author-avatar-lg {
    width: 52px;
    height: 52px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    border: 2px solid var(--gold-light);
}
.art-author-detail strong {
    display: block;
    font-size: 0.9rem;
    color: var(--brown-dark);
    margin-bottom: 4px;
}
.art-author-detail p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* TOC */
.art-toc {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.art-toc-link {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    border-right: 3px solid transparent;
}
.art-toc-link:hover,
.art-toc-link.art-toc-active {
    background: var(--cream);
    color: var(--brown-dark);
    border-right-color: var(--gold);
}

/* Popular list */
.art-popular-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.art-popular-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.art-popular-num {
    width: 24px;
    height: 24px;
    background: var(--gold);
    color: #fff;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.art-popular-item a {
    font-size: 0.82rem;
    color: var(--text);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
}
.art-popular-item a:hover {
    color: var(--gold-dark);
}

/* Category list */
.art-cat-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.art-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}
.art-cat-item:hover {
    background: var(--cream);
    color: var(--brown-dark);
}
.art-cat-count {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .art-detail-layout {
        grid-template-columns: 1fr;
    }
    .art-sidebar {
        position: static;
    }
    .art-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .art-detail-layout {
        padding: 24px 16px 60px;
    }
    .art-header-meta {
        font-size: 0.78rem;
    }
    .art-meta-item {
        padding: 0 6px;
    }
    .art-inline-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .art-related-grid {
        grid-template-columns: 1fr;
    }
    .art-hero-img {
        aspect-ratio: 16/9;
    }
}
