﻿

/* لینک بازگشت به صفحه اصلی */
.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: #a0724e;
    font-size: 0.9rem;
    font-weight: 500;
}

    .back-link:hover {
        text-decoration: underline;
    }

/* هدر مقاله */
.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 1rem;
}

.article-category {
    font-size: 0.85rem;
    color: #a0724e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: #1f1f1f;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6b5b4e;
    align-items: center;
}

.read-time {
    background: #f4efe9;
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* تصویر شاخص مقاله */
.featured-image {
    margin: 1.5rem 0;
    background: #f0e6de;
    border-radius: 28px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #f3ede8, #e4d9d0);
    color: #8b6b4f;
    border-radius: 32px;
}

@media (min-width: 600px) {
    .featured-image {
        height: 300px;
        font-size: 5rem;
    }
}

/* محتوای اصلی */
.article-content {
    font-size: 1rem;
    color: #2c2c2c;
    margin: 2rem 0;
}

    .article-content p {
        margin-bottom: 1.2rem;
        text-align: justify;
    }

    .article-content h2 {
        font-size: 1.4rem;
        margin: 1.5rem 0 0.8rem 0;
        color: #2c2c2c;
    }

    .article-content ul, .article-content ol {
        margin: 0.8rem 0 1rem 1.5rem;
    }

    .article-content li {
        margin-bottom: 0.4rem;
    }

/* دکمه لایک */
.like-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #eeece8;
    border-bottom: 1px solid #eeece8;
}

.like-btn {
    background: #f8f4f0;
    border: 1px solid #e1d6ce;
    padding: 10px 24px;
    border-radius: 60px;
    font-size: 1rem;
    font-family: Tahoma, sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    color: #4a3c30;
    font-weight: 500;
}

    .like-btn.liked {
        background: #f0e2d8;
        border-color: #c6aa90;
        color: #b3582c;
    }

    .like-btn:hover {
        background: #ede4db;
    }

.like-count {
    font-weight: 600;
    background: white;
    padding: 4px 12px;
    border-radius: 40px;
    border: 1px solid #e6ddd4;
}

/* بخش نظرات */
.comments-section {
    margin: 2rem 0;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #2c2c2c;
    border-right: 4px solid #d9b48b;
    padding-right: 12px;
}

.comment-form {
    background: #fefbf8;
    padding: 1.5rem;
    border-radius: 28px;
    margin-bottom: 2rem;
    border: 1px solid #ede4db;
}

.form-group {
    margin-bottom: 1rem;
}

    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 500;
        font-size: 0.85rem;
    }

    .form-group input, .form-group textarea {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #e0d5cb;
        border-radius: 20px;
        font-family: Tahoma, sans-serif;
        font-size: 0.9rem;
        background: white;
        transition: 0.15s;
    }

        .form-group input:focus, .form-group textarea:focus {
            outline: none;
            border-color: #c2a07e;
            box-shadow: 0 0 0 2px rgba(192, 144, 96, 0.1);
        }

.submit-btn {
    background: #dccbbc;
    border: none;
    padding: 10px 24px;
    border-radius: 60px;
    font-family: Tahoma, sans-serif;
    font-weight: 600;
    color: #2c2c2c;
    cursor: pointer;
    transition: 0.2s;
}

    .submit-btn:hover {
        background: #cbb299;
    }

/* لیست نظرات */
.comments-list {
    margin-top: 1rem;
}

.comment-item {
    background: #ffffff;
    border: 1px solid #efe6df;
    border-radius: 24px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.comment-name {
    font-weight: 700;
    margin-bottom: 6px;
    color: #3a2c21;
}

.comment-date {
    font-size: 0.7rem;
    color: #9b8a78;
    margin-bottom: 8px;
}

.comment-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #3a3a3a;
}

.no-comments {
    color: #9b8a78;
    font-style: italic;
    padding: 1rem;
    text-align: center;
}



@media (max-width: 560px) {
    .article-title {
        font-size: 1.5rem;
    }

    .like-btn {
        padding: 7px 18px;
    }

    .comment-form {
        padding: 1rem;
    }
}
