/* استایل‌های پایه مشترک */
:root {
    --primary: #00b4db;
    --primary-dark: #0083b0;
    --primary-light: #e6f7fc;
    --secondary: #ff7e5f;
    --secondary-dark: #e86a4c;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg: #f5f7fa;
    --card: #ffffff;
    --border: #e0e0e0;
    --success: #4CAF50;
    --error: #e74c3c;
    --warning: #f39c12;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* متغیرهای سیستم نظرات */
    --primary-color-start: #4b6cb7;
    --primary-color-end: #182848;
    --secondary-color-start: #ff8a00;
    --secondary-color-end: #e52e71;
    --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --header-gradient: linear-gradient(90deg, var(--primary-color-start) 0%, var(--primary-color-end) 100%);
    --button-gradient: linear-gradient(90deg, var(--primary-color-start) 0%, var(--primary-color-end) 100%);
    --line-gradient: linear-gradient(90deg, var(--secondary-color-start), var(--secondary-color-end));
    --text-primary: #333;
    --text-secondary: #555;
    --text-light-comment: #777;
    --border-color: #eaeaea;
    --background-light: #f8f9fa;
    --background-white: #fff;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-dark: rgba(0, 0, 0, 0.1);
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --like-color: #4b6cb7;
    --dislike-color: #e52e71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Vazir, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* نسخه موبایل - به طور پیش فرض نمایش داده می شود */
.mobile-version {
    display: block;
    padding: 12px;
    font-size: 15px;
}

.desktop-version {
    display: none;
}

/* استایل‌های مشترک بین دو نسخه */
.container {
    max-width: 100%;
    margin: 0 auto;
    animation: fadeIn 0.8s ease;
}

.article-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 25px 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: white;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(30deg);
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 12px;
    font-size: 0.85rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.article-content {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 25px;
    position: relative;
    transition: var(--transition);
}

.article-text {
    font-size: 0.95rem;
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 18px;
    word-spacing: -1px;
}

.article-image {
    width: 100%;
    border-radius: var(--radius);
    margin: 18px 0;
    box-shadow: var(--shadow);
    /* opacity: 0; حذف شد */
}

.article-image.loaded {
    opacity: 1;
}

.article-image.placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.article-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
}

.action-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.btn {
    padding: 12px 18px;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: var(--shadow);
    flex: 1;
    max-width: 160px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn:hover::after {
    transform: translateX(0);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* استایل‌های جدید برای بخش نظرات */
.comments-toggle {
    display: flex;
    justify-content: center;
    margin: 22px 0;
}

.comments-container {
    background: var(--card);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    margin-top: 18px;
    transition: var(--transition);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.comments-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    position: relative;
    padding-right: 12px;
}

.comments-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--primary);
    border-radius: 8px;
}

.comment-form {
    background: rgba(0, 180, 219, 0.05);
    padding: 18px;
    border-radius: var(--radius);
    margin-bottom: 22px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.comment-form:hover {
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: var(--text);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--card);
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 219, 0.2);
}

.error-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

.btn-submit {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn-submit:hover::after {
    transform: translateX(0);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.comments-list {
    margin-top: 22px;
}

.comment {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.comment::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.comment:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.comment:hover::before {
    opacity: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 12px;
    border: 2px solid var(--primary);
    padding: 2px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.comment:hover .comment-avatar {
    transform: scale(1.1);
    border-color: var(--primary-dark);
}

.comment-info {
    flex: 1;
}

.comment-author {
    font-weight: bold;
    color: var(--text);
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

.comment-text {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 0.9rem;
    padding: 0 4px;
    word-spacing: -1px;
    text-align: justify;
}

.comment-actions {
    display: flex;
    gap: 10px;
    justify-content: space-around;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 6px;
    flex: 1;
    justify-content: center;
}

.comment-action:hover {
    color: var(--primary);
    background: rgba(0, 180, 219, 0.1);
    transform: translateY(-2px);
}

.user-liked {
    color: var(--error);
}

.like-count {
    font-size: 0.85rem;
    min-width: 22px;
    text-align: center;
    font-weight: bold;
}

.replies-container {
    margin-top: 15px;
    margin-right: 12px;
    padding-right: 12px;
    border-right: 2px solid var(--border);
    animation: slideDown 0.4s ease;
}

.reply-form {
    margin-top: 12px;
    padding: 12px;
    background: rgba(0, 180, 219, 0.03);
    border-radius: 10px;
    border: 1px solid var(--border);
    animation: slideDown 0.4s ease;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 15px;
}

.modal-overlay.visible {
    display: flex;
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.2);
    max-width: 380px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
}

.modal-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text);
}

.modal-text {
    margin-bottom: 22px;
    line-height: 1.6;
    color: var(--text-light);
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.modal-btn {
    padding: 9px 18px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    flex: 1;
    max-width: 110px;
}

.modal-btn-confirm {
    background: var(--error);
    color: white;
}

.modal-btn-cancel {
    background: var(--text-light);
    color: white;
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.notification {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: var(--shadow-hover);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: slideUp 0.4s ease;
    font-size: 0.9rem;
}

.notification.success {
    background: var(--success);
}

.notification.error {
    background: var(--error);
}

/* استایل‌های جدید برای سیستم نظرات */
.comments-system {
    margin-top: 25px;
    background: var(--background-white);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-dark);
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.comments-system-header {
    background: var(--header-gradient);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.comments-system-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.comments-system-header p {
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.comments-system-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--line-gradient);
    animation: headerLine 3s infinite alternate;
}

.comments-system-form {
    padding: 25px;
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

.comments-system-list {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.comments-system-comment {
    display: flex;
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--background-white);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-light);
    animation: slideIn 0.5s ease-out;
    transition: transform 0.3s ease;
    position: relative;
}

.comments-system-comment:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.comments-system-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 15px;
    flex-shrink: 0;
    border: 3px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.comments-system-comment:hover .comments-system-avatar {
    border-color: var(--primary-color-start);
}

.comments-system-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comments-system-content {
    flex: 1;
}

.comments-system-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comments-system-author {
    font-weight: 600;
    color: var(--primary-color-start);
    font-size: 1.1rem;
}

.comments-system-date {
    font-size: 0.85rem;
    color: #888;
}

.comments-system-text {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.comments-system-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.comments-system-action {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light-comment);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 6px;
    background: #f8f9fa;
}

.comments-system-action:hover {
    color: var(--primary-color-start);
    background: #e9ecef;
}

.comments-system-action.liked {
    color: var(--like-color);
    font-weight: bold;
    background: #e3f2fd;
}

.comments-system-action.disliked {
    color: var(--dislike-color);
    font-weight: bold;
    background: #ffebee;
}

.comments-system-action.reported {
    color: var(--danger-color);
    background: #f8d7da;
}

.comments-system-action.own-comment {
    background: #e3f2fd;
}

.comment-edit-form {
    margin-top: 10px;
}

.comment-edit-form textarea {
    min-height: 100px;
    margin-bottom: 10px;
}

.edit-actions {
    display: flex;
    gap: 10px;
}

/* Replies Section */
.reply-section {
    display: none;
    padding-right: 20px;
    margin-top: 15px;
    border-right: 2px solid var(--border-color);
}

.reply-form {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.reply-form .form-control {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.reply-form textarea.form-control {
    min-height: 80px;
}

.reply-form .btn {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.reply-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.cancel-reply-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cancel-reply-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.reply-list .comments-system-comment {
    box-shadow: none;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
}

.new-comment {
    border-right: 4px solid var(--primary-color-start);
    animation: highlight 2s ease;
}

.comments-system-footer {
    padding: 15px;
    text-align: center;
    background-color: var(--background-light);
    color: var(--text-light-comment);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* استایل‌های بخش‌بندی مقاله */
.article-section {
    margin: 25px 0;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border);
}

.article-section-title {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-right: 10px;
    border-right: 4px solid var(--primary);
}

.article-subsection {
    margin: 18px 0;
}

.article-subsection-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.article-highlight {
    background: linear-gradient(120deg, var(--primary-light) 0%, transparent 100%);
    padding: 15px;
    border-radius: var(--radius);
    border-right: 4px solid var(--primary);
    margin: 18px 0;
}

.article-highlight-title {
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-list {
    padding-right: 20px;
    margin: 15px 0;
}

.article-list li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes headerLine {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

@keyframes highlight {
    0% { background-color: rgba(75, 108, 183, 0.2); }
    100% { background-color: var(--background-white); }
}

.pulse {
    animation: pulse 0.5s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--header-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #3a5998 0%, #152642 100%);
}

/* استایل‌های نسخه دسکتاپ */
@media (min-width: 1024px) {
    .mobile-version {
        display: none;
    }

    .desktop-version {
        display: block;
        padding: 30px;
        font-size: 18px;
    }

    .container {
        max-width: 1000px;
    }

    .article-header {
        padding: 40px 30px;
        margin-bottom: 30px;
    }

    .article-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .article-meta {
        font-size: 1rem;
        gap: 25px;
        margin-top: 15px;
    }

    .article-content {
        padding: 35px;
        margin-bottom: 35px;
    }

    .article-text {
        font-size: 1.1rem;
        line-height: 1.9;
        margin-bottom: 25px;
        word-spacing: normal;
        text-align: right;
    }

    .article-image {
        margin: 25px 0;
    }

    .article-actions {
        margin: 35px 0;
        gap: 20px;
    }

    .action-row {
        justify-content: center;
        gap: 25px;
    }

    .btn {
        padding: 16px 28px;
        font-size: 1.1rem;
        gap: 8px;
        max-width: 220px;
    }

    .comments-toggle {
        margin: 30px 0;
    }

    .comments-container {
        padding: 30px;
        margin-top: 25px;
    }

    .comments-header {
        margin-bottom: 25px;
        padding-bottom: 18px;
    }

    .comments-title {
        font-size: 1.5rem;
    }

    .comments-title::before {
        width: 5px;
        height: 28px;
    }

    .comment-form {
        padding: 25px;
        margin-bottom: 30px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .form-control {
        padding: 16px 18px;
        font-size: 1.05rem;
    }

    .error-message {
        font-size: 0.9rem;
        margin-top: 5px;
    }

    .btn-submit {
        padding: 16px 28px;
        font-size: 1.1rem;
        gap: 8px;
    }

    .comments-list {
        margin-top: 30px;
    }

    .comment {
        padding: 22px;
        margin-bottom: 20px;
    }

    .comment-avatar {
        width: 50px;
        height: 50px;
        margin-left: 18px;
    }

    .comment-author {
        font-size: 1.1rem;
    }

    .comment-date {
        font-size: 0.85rem;
    }

    .comment-text {
        font-size: 1.05rem;
        line-height: 1.8;
        margin-bottom: 18px;
        padding: 0 8px;
        word-spacing: normal;
    }

    .comment-actions {
        gap: 15px;
        padding-top: 18px;
    }

    .comment-action {
        font-size: 1rem;
        padding: 8px 15px;
        gap: 6px;
    }

    .like-count {
        font-size: 1rem;
        min-width: 26px;
    }

    .replies-container {
        margin-top: 20px;
        margin-right: 18px;
        padding-right: 18px;
    }

    .reply-form {
        margin-top: 18px;
        padding: 18px;
    }

    .modal-content {
        padding: 30px;
        max-width: 450px;
    }

    .modal-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .modal-text {
        margin-bottom: 25px;
        font-size: 1.05rem;
    }

    .modal-btn {
        padding: 12px 22px;
        font-size: 1.05rem;
        max-width: 130px;
    }

    .notification {
        padding: 12px 22px;
        font-size: 1rem;
    }

    /* سیستم نظرات دسکتاپ */
    .comments-system-header {
        padding: 20px;
    }

    .comments-system-header h2 {
        font-size: 1.5rem;
    }

    .comments-system-header p {
        font-size: 1rem;
    }

    .comments-system-form {
        padding: 25px;
    }

    .comments-system-list {
        padding: 20px;
    }

    .comments-system-comment {
        padding: 20px;
        margin-bottom: 25px;
    }

    .comments-system-avatar {
        width: 60px;
        height: 60px;
        margin-left: 18px;
    }

    .comments-system-author {
        font-size: 1.1rem;
    }

    .comments-system-date {
        font-size: 0.85rem;
    }

    .comments-system-text {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .comments-system-actions {
        gap: 20px;
    }

    .comments-system-action {
        font-size: 0.9rem;
        gap: 5px;
    }

    .comments-system-footer {
        padding: 15px;
        font-size: 0.9rem;
    }

    /* بخش‌بندی مقاله در دسکتاپ */
    .article-section {
        margin: 30px 0;
    }

    .article-section-title {
        font-size: 1.6rem;
    }

    .article-subsection-title {
        font-size: 1.3rem;
    }

    .article-highlight {
        padding: 20px;
    }
}

/* حالت تلفن همراه در حالت افقی */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-version {
        padding: 10px;
        font-size: 14px;
    }

    .article-header {
        padding: 20px 15px;
    }

    .article-title {
        font-size: 1.3rem;
    }

    .article-content {
        padding: 15px;
    }

    .comment-form {
        padding: 15px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-control {
        padding: 10px;
    }

    .comments-system-form {
        padding: 15px;
    }

    .comments-system-comment {
        padding: 12px;
    }
}

/* حالت تلفن همراه کوچک */
@media (max-width: 360px) {
    .mobile-version {
        padding: 10px;
        font-size: 14px;
    }

    .article-header {
        padding: 20px 12px;
    }

    .article-title {
        font-size: 1.2rem;
    }

    .btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        max-width: 140px;
    }

    .comment-actions {
        flex-direction: column;
        gap: 8px;
    }

    .comment-action {
        justify-content: flex-start;
    }

    .comments-system-actions {
        flex-direction: column;
        gap: 8px;
    }

    .comments-system-action {
        justify-content: flex-start;
    }
}

/* Responsive design برای سیستم نظرات */
@media (max-width: 768px) {
    .comments-system-comment {
        flex-direction: column;
    }
    .comments-system-avatar {
        margin-left: 0;
        margin-bottom: 15px;
    }
    .comments-system-comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .comments-system-date {
        margin-top: 5px;
    }
    .comments-system-actions {
        gap: 10px;
    }
    .reply-form-actions,
    .edit-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .comments-system-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    .comments-system-action {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}