/* ================================================================ */
/* صفحه جزئیات مقاله                                               */
/* ================================================================ */

/* هیرو مقاله */
.article-hero {
    min-height: 50vh;
    position: relative;
    background: url('/image/background.jpg') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 72px;
}
.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.7) 100%);
}
.article-hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
}
.article-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    color: var(--accent-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.article-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}
.article-hero .article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}
.article-hero .article-meta i {
    color: var(--accent);
    margin-left: 5px;
}

/* محتوای اصلی */
.article-content-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.article-body {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.article-featured-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

/* فهرست مطالب */
.article-toc {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}
.article-toc h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-toc ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.article-toc li {
    width: calc(50% - 0.5rem);
}
.article-toc li a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}
.article-toc li a:hover {
    color: var(--accent);
    padding-right: 5px;
}

/* بخش‌های مقاله */
.article-section {
    margin-bottom: 2rem;
    scroll-margin-top: 120px !important;
}
.article-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-right: 1rem;
    border-right: 4px solid var(--accent);
}
.article-section p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.article-section img {
    width: 100%;
    border-radius: 16px;
    margin-top: 1rem;
}

/* جمع‌بندی */
.article-conclusion {
    background: linear-gradient(145deg, var(--bg-light), var(--bg-white));
    padding: 1.5rem;
    border-radius: 20px;
    margin: 2rem 0;
}
.article-conclusion h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-conclusion p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* برچسب‌ها */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 1rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin: 1rem 0;
}
.article-tags span {
    font-weight: 600;
    color: var(--text-dark);
}
.article-tags a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}
.article-tags a:hover {
    color: var(--accent-dark);
}

/* اشتراک‌گذاری */
.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
}
.article-share span {
    font-weight: 600;
    color: var(--text-dark);
}
.article-share a {
    width: 35px;
    height: 35px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}
.article-share a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* باکس نویسنده */
.article-author-box {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}
.article-author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.author-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* نظرات */
.article-comments {
    margin-top: 2rem;
}
.article-comments h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comment-list {
    margin-bottom: 2rem;
}
.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}
.comment-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-content h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.comment-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.comment-content p {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.comment-form h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.comment-form .form-control {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.8rem;
    font-family: inherit;
}
.comment-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}
.comment-form .btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
}
.comment-form .btn-submit:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

/* سایدبار */
.sidebar-widget {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-box {
    display: flex;
    gap: 0.5rem;
}
.search-box input {
    flex: 1;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.7rem;
}
.search-box button {
    background: var(--accent);
    border: none;
    width: 45px;
    border-radius: 12px;
    color: var(--primary-dark);
    transition: var(--transition);
}
.search-box button:hover {
    background: var(--accent-dark);
}
.popular-posts, .categories {
    list-style: none;
    padding: 0;
    margin: 0;
}
.popular-posts li, .categories li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-light);
}
.popular-posts li:last-child, .categories li:last-child {
    border-bottom: none;
}
.popular-posts li a, .categories li a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}
.popular-posts li a:hover, .categories li a:hover {
    color: var(--accent);
}
.popular-posts li span {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.categories li span {
    color: var(--accent);
    font-size: 0.7rem;
}
.sidebar-widget input[type="email"] {
    width: 100%;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.7rem;
    margin-bottom: 0.5rem;
}
.sidebar-widget button[type="submit"] {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
}
.sidebar-widget button[type="submit"]:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .article-hero { margin-top: 65px; min-height: 40vh; }
    .article-content-section { padding: 50px 0; }
    .article-body { padding: 1.2rem; }
    .article-toc li { width: 100%; }
    .article-section h2 { font-size: 1.2rem; }
    .article-author-box { flex-direction: column; align-items: center; text-align: center; }
    .sidebar { margin-top: 2rem; }
}

@media (max-width: 576px) {
    .article-hero .article-meta { flex-direction: column; gap: 0.5rem; }
    .article-tags { flex-wrap: wrap; }
}