/* ============================================
   استایل صفحه مشاهده مقاله لوسیدا
   ============================================ */

/* مسیر راهنما */
.single-breadcrumb {
    padding: 20px 0;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-gold-subtle);
    /* margin-top: calc(var(--topbar-height) + var(--header-height)); */
}

.breadcrumb-items {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb-items a,
.breadcrumb-items span {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
    text-decoration: none;
}

.breadcrumb-items a:hover {
    color: var(--gold-light);
}

.breadcrumb-items span {
    color: var(--gold-light);
}

.breadcrumb-items svg {
    color: var(--text-muted);
    width: 12px;
    height: 12px;
}

/* صفحه مقاله */
.single-article {
    padding: 60px 0;
}

.single-article-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
}

/* محتوای اصلی */
.article-header {
    margin-bottom: 32px;
}

.article-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.category-badge {
    background: var(--gold-gradient-btn);
    color: #0A0A0A;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

body.light-mode .category-badge {
    color: #FFFFFF;
}

.article-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-gold-subtle);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.article-author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--border-gold-default);
    object-fit: cover;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.author-title {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.article-stats {
    display: flex;
    gap: 20px;
}

.article-stats span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* تصویر اصلی */
.article-featured-image {
    margin: 32px 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-gold-default);
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.image-caption {
    padding: 12px 20px;
    background: var(--bg-glass);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* بدنه مقاله */
.article-body {
    line-height: 1.9;
}

.article-intro {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 32px;
    padding-right: 20px;
    border-right: 3px solid var(--gold-primary);
}

.article-body h2 {
    font-size: 1.6rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-gold-subtle);
}

.article-body h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-right: 25px;
}

.article-body li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* جعبه اطلاعات */
.article-info-box {
    display: flex;
    gap: 16px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-gold-subtle);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 30px 0;
}

.info-icon {
    font-size: 2rem;
}

.info-content {
    flex: 1;
}

.info-content strong {
    color: var(--gold-light);
    display: block;
    margin-bottom: 8px;
}

.article-info-box.warning {
    background: rgba(255, 100, 50, 0.08);
    border-color: rgba(255, 100, 50, 0.3);
}

.article-info-box.success {
    background: rgba(46, 204, 113, 0.08);
    border-color: rgba(46, 204, 113, 0.3);
}

/* جدول رنگ الماس */
.color-chart {
    display: flex;
    flex-wrap: wrap;
    border-radius: 16px;
    overflow: hidden;
    margin: 25px 0;
}

.color-item {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 20px 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-item span:first-child {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #5b5d37;
}

.color-item span:last-child {
    font-size: 0.7rem;
    color: #5b5d37;
}

/* جدول شفافیت */
.clarity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 25px 0;
}

.clarity-grid div {
    background: var(--bg-glass);
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-gold-subtle);
}

body.light-mode .clarity-grid div {
    background: #FFFFFF;
}

.clarity-grid strong {
    display: block;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.clarity-grid span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* فهرست مطالب */
.article-toc {
    background: var(--bg-glass);
    border: 1px solid var(--border-gold-subtle);
    border-radius: 20px;
    padding: 24px 28px;
    margin: 30px 0;
}

body.light-mode .article-toc {
    background: #FFFFFF;
}

.toc-title {
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 16px;
    font-size: 1rem;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list li a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    display: block;
    padding: 4px 0;
    text-decoration: none;
}

.toc-list li a:hover {
    color: var(--gold-light);
    padding-right: 8px;
}

/* جمع‌بندی */
.article-summary {
    background: var(--bg-glass);
    border: 1px solid var(--border-gold-default);
    border-radius: 20px;
    padding: 28px 32px;
    margin: 40px 0;
}

body.light-mode .article-summary {
    background: #FFFFFF;
}

.article-summary h3 {
    margin-bottom: 16px;
    color: var(--gold-primary);
}

/* برچسب‌ها */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 20px;
}

.article-tags span {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold-subtle);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--gold-light);
    transition: var(--transition-fast);
    cursor: pointer;
}

.article-tags span:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* اشتراک گذاری */
.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--border-gold-subtle);
    border-bottom: 1px solid var(--border-gold-subtle);
    margin: 20px 0 40px;
}

.article-share span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg-glass);
    border: 1px solid var(--border-gold-subtle);
    border-radius: 50%;
    transition: var(--transition-spring);
}

body.light-mode .article-share a {
    background: #FFFFFF;
}

.article-share a:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--border-gold-default);
    transform: translateY(-3px);
}

/* نظرات */
.article-comments {
    margin-top: 50px;
}

.article-comments h3 {
    margin-bottom: 25px;
}

.comments-list {
    margin-bottom: 40px;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-gold-subtle);
}

.comment-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.comment-header strong {
    color: var(--gold-light);
}

.comment-header span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.reply-btn {
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition-fast);
}

.reply-btn:hover {
    color: var(--gold-light);
}

.comment-form h4 {
    margin-bottom: 20px;
}

.comment-form textarea,
.comment-form input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-gold-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Peyda', sans-serif;
    margin-bottom: 15px;
}

body.light-mode .comment-form textarea,
body.light-mode .comment-form input {
    background: #FFFFFF;
}

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: var(--gold-light);
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* سایدبار */
.sidebar-widget {
    background: var(--bg-glass);
    border: 1px solid var(--border-gold-subtle);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 28px;
    backdrop-filter: blur(20px);
}

body.light-mode .sidebar-widget {
    background: #FFFFFF;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-gold-subtle);
}

/* جستجو سایدبار */
.search-widget .search-box {
    display: flex;
    gap: 10px;
}

.search-widget .search-box input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-gold-subtle);
    border-radius: 12px;
    color: var(--text-primary);
}

.search-widget .search-box button {
    padding: 0 18px;
    background: var(--gold-gradient-btn);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-spring);
}

.search-widget .search-box button:hover {
    transform: translateY(-2px);
}

/* نویسنده */
.author-widget {
    text-align: center;
}

.author-widget img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 2px solid var(--border-gold-default);
    object-fit: cover;
}

.author-widget h4 {
    margin-bottom: 12px;
    color: var(--gold-light);
}

.author-widget p {
    font-size: 0.8rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.author-social a {
    font-size: 0.75rem;
    color: var(--gold-primary);
    transition: var(--transition-fast);
    text-decoration: none;
}

.author-social a:hover {
    color: var(--gold-light);
}

/* مقالات مرتبط */
.related-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-gold-subtle);
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-item img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.related-item a {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.related-item a:hover {
    color: var(--gold-light);
}

.related-item span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* دسته‌بندی‌ها */
.categories-widget ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-gold-subtle);
}

.categories-widget ul li:last-child {
    border-bottom: none;
}

.categories-widget ul li a {
    font-size: 0.85rem;
    transition: var(--transition-fast);
    text-decoration: none;
    color: var(--text-secondary);
}

.categories-widget ul li a:hover {
    color: var(--gold-light);
    padding-right: 5px;
}

.categories-widget ul li span {
    color: var(--gold-primary);
    font-size: 0.7rem;
}

/* خبرنامه سایدبار */
.newsletter-widget input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-gold-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    margin: 15px 0;
}

.newsletter-widget button {
    width: 100%;
    justify-content: center;
}

/* مقالات پیشنهادی */
.single-suggested {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--black) 0%, rgba(212, 175, 55, 0.02) 100%);
}

.suggested-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.suggested-grid .blog-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
}

body.light-mode .suggested-grid .blog-card {
    background: #FFFFFF;
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .suggested-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .single-article-wrapper {
        grid-template-columns: 1fr;
    }
    .article-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .suggested-grid {
        grid-template-columns: 1fr;
    }
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .article-stats {
        flex-wrap: wrap;
    }
    .comment-form-row {
        grid-template-columns: 1fr;
    }
    .color-chart {
        flex-direction: column;
    }
    .clarity-grid {
        grid-template-columns: 1fr;
    }
    .article-header h1 {
        font-size: 1.6rem;
    }
    .single-article {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .article-body h2 {
        font-size: 1.3rem;
    }
    .article-share {
        flex-wrap: wrap;
    }
    .sidebar-widget {
        padding: 18px;
    }
}