/**
 * Ghoghnoos Research - Article Details Styles
 * Timeline and Article View Components
 *
 * @package Ghoghnoos_Research
 */

/* Import Custom Fonts */
@import url('/wp-content/plugins/ghoghnoos-research/assets/fonts/fonts.css');

/* Apply fonts only - let theme handle styling */
.gr-article-history-section *,
.gr-article-view-header *,
.gr-article-view-details *,
.gr-article-notice *,
.gr-article-comments-section *,
.gr-article-section-header * {
    font-family: 'AzarMehr', 'Vazirmatn', 'Noto Sans Arabic', 'IRANSans', Tahoma, sans-serif !important;
}

/* ========================================
   Article History Timeline - RTL Design
   ======================================== */

.gr-article-history-section .gr-timeline {
    position: relative;
    padding: 20px 0;
    margin-top: 24px;
    margin-right: 45px;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start; /* راست‌چین کردن آیتم‌ها (در RTL) */
}

/* خط عمودی اصلی تایم‌لاین */
.gr-article-history-section .gr-timeline::before {
    content: '';
    position: absolute;
    right: -20.5px; /* 1px برگشت - مرکز خط */
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gr-primary) 0%, var(--gr-primary-light) 30%, var(--gr-border-light) 70%, var(--gr-border) 100%);
    border-radius: 2px;
    z-index: 1; /* زیر دایره‌ها */
}

.gr-article-history-section .gr-timeline-item {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start; /* راست‌چین کردن (در RTL) */
    animation: timelineItemSlideIn 0.6s ease-out;
    animation-fill-mode: both;
    z-index: 2; /* بالاتر از خط برای دایره‌ها */
}

.gr-article-history-section .gr-timeline-item:nth-child(1) { animation-delay: 0.1s; }
.gr-article-history-section .gr-timeline-item:nth-child(2) { animation-delay: 0.2s; }
.gr-article-history-section .gr-timeline-item:nth-child(3) { animation-delay: 0.3s; }
.gr-article-history-section .gr-timeline-item:nth-child(4) { animation-delay: 0.4s; }
.gr-article-history-section .gr-timeline-item:nth-child(5) { animation-delay: 0.5s; }
.gr-article-history-section .gr-timeline-item:nth-child(6) { animation-delay: 0.6s; }
.gr-article-history-section .gr-timeline-item:nth-child(7) { animation-delay: 0.7s; }
.gr-article-history-section .gr-timeline-item:nth-child(8) { animation-delay: 0.8s; }

/* دایره حذف شده */
.gr-article-history-section .gr-timeline-dot {
    display: none;
}

/* حذف marker قدیمی */
.gr-article-history-section .gr-timeline-marker {
    display: none;
}

.gr-article-history-section .gr-timeline-line {
    display: none;
}

/* کارت محتوا */
.gr-article-history-section .gr-timeline-content {
    position: relative;
    background: linear-gradient(135deg, var(--gr-bg-card) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid var(--gr-border-light);
    border-radius: var(--gr-radius);
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: -15px; /* 15px به سمت راست (به سمت دایره‌ها) */
    margin-left: 0;
    margin-top: -15px; /* 15px بالاتر */
    text-align: right; /* راست‌چین محتوا */
}

/* خط اتصال افقی از کارت به دایره */
.gr-article-history-section .gr-timeline-content::before {
    content: '';
    position: absolute;
    right: -11px; /* 3px نزدیک‌تر به کارت */
    top: 23px; /* 1px بالاتر */
    width: 8px; /* فاصله تا مرکز دایره: -19px - (-11px) = 8px */
    height: 2px;
    background: var(--gr-border-light);
}

/* فلش اشاره به سمت راست */
.gr-article-history-section .gr-timeline-content::after {
    content: '';
    position: absolute;
    right: -7px; /* 3px نزدیک‌تر به کارت */
    top: 19px; /* 1px بالاتر */
    width: 10px;
    height: 10px;
    background: var(--gr-bg-card);
    border: 1px solid var(--gr-border-light);
    border-left: none;
    border-bottom: none;
    transform: rotate(45deg);
}

.gr-article-history-section .gr-timeline-item:hover .gr-timeline-content {
    border-color: var(--gr-primary-light);
    box-shadow: 0 8px 32px rgba(46, 125, 50, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: none;
}

.gr-article-history-section .gr-timeline-item:hover .gr-timeline-content::after {
    border-color: var(--gr-primary-light);
}

.gr-article-history-section .gr-timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row; /* راست‌چین برای RTL */
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gr-border-light);
}

/* Status badges در تایم‌لاین از استایل عمومی gr-status-badge استفاده می‌کنند */

.gr-article-history-section .gr-timeline-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gr-text-secondary);
    font-weight: 500;
    background: var(--gr-bg);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--gr-border-light);
}

.gr-article-history-section .gr-timeline-date svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--gr-primary);
}

.gr-article-history-section .gr-timeline-status-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gr-article-history-section .gr-timeline-details {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gr-article-history-section .gr-timeline-comment {
    background: linear-gradient(135deg, var(--gr-bg) 0%, rgba(46, 125, 50, 0.02) 100%);
    border-radius: var(--gr-radius-sm);
    border: 1px solid var(--gr-border-light);
    border-right: 4px solid var(--gr-primary);
    padding: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.gr-article-history-section .gr-timeline-comment:hover {
    border-color: var(--gr-primary-light);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.1);
}

.gr-article-history-section .gr-timeline-comment-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gr-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.gr-article-history-section .gr-timeline-comment-label svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.gr-article-history-section .gr-timeline-comment-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gr-text);
    padding-right: 8px;
}

.gr-article-history-section .gr-timeline-files {
    background: linear-gradient(135deg, var(--gr-bg) 0%, rgba(25, 118, 210, 0.02) 100%);
    border-radius: var(--gr-radius-sm);
    border: 1px solid var(--gr-border-light);
    border-right: 4px solid var(--gr-info);
    padding: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.gr-article-history-section .gr-timeline-files:hover {
    border-color: var(--gr-info);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.1);
}

.gr-article-history-section .gr-timeline-files-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gr-info);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.gr-article-history-section .gr-timeline-files-label svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.gr-article-history-section .gr-timeline-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gr-article-history-section .gr-timeline-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--gr-text);
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--gr-bg-card) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 8px;
    border: 1px solid var(--gr-border-light);
    transition: all 0.2s ease;
}

.gr-article-history-section .gr-timeline-file-item:hover {
    background: var(--gr-bg-card);
    border-color: var(--gr-info);
    transform: translateX(-4px);
}

.gr-article-history-section .gr-timeline-file-item svg {
    width: 16px;
    height: 16px;
    color: var(--gr-info);
    flex-shrink: 0;
}

.gr-article-history-section .gr-timeline-note-status {
    margin-top: -4px;
}

.gr-article-history-section .gr-timeline-note-status small {
    font-size: 12px;
    color: var(--gr-text-secondary);
}

.gr-article-history-section .gr-timeline-file-item-rich {
    align-items: flex-start;
}

.gr-article-history-section .gr-note-file-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.gr-article-history-section .gr-note-file-title {
    color: var(--gr-info);
    text-decoration: none;
    font-weight: 600;
}

.gr-article-history-section .gr-note-file-title:hover {
    text-decoration: underline;
}

.gr-article-history-section .gr-note-file-description {
    font-size: 12px;
    color: var(--gr-text-secondary);
    line-height: 1.7;
}

.gr-article-history-section .gr-timeline-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gr-text-secondary);
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--gr-bg);
    border-radius: 12px;
    border: 1px solid var(--gr-border-light);
    font-weight: 500;
}

.gr-article-history-section .gr-timeline-user svg {
    width: 16px;
    height: 16px;
    color: var(--gr-primary);
    flex-shrink: 0;
}

#add-history-note-form label {
    font-weight: 600;
    display: inline-block;
    margin-bottom: 4px;
}

#history-note-files-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#history-note-files-wrapper .gr-note-file-row {
    border: 1px dashed var(--gr-border);
    border-radius: 8px;
    padding: 12px;
    background: var(--gr-bg);
}

#history-note-files-wrapper .gr-note-file-row p {
    margin: 0 0 10px;
}

#history-note-files-wrapper .gr-note-file-row p:last-child {
    margin-bottom: 0;
}

.gr-submitter-other-wrapper {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--gr-border-light);
}

.gr-submitter-other-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gr-text);
}

.gr-submitter-other-articles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gr-submitter-other-item {
    border: 1px solid var(--gr-border-light);
    border-radius: 8px;
    padding: 8px 10px;
    background: var(--gr-bg);
}

.gr-submitter-other-link {
    color: var(--gr-primary);
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.gr-submitter-other-link:hover {
    text-decoration: underline;
}

.gr-submitter-other-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.gr-submitter-tracking,
.gr-submitter-date {
    font-size: 12px;
    color: var(--gr-text-secondary);
}

@keyframes timelineItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ========================================
   Article View Page
   ======================================== */

   .gr-article-view-header {
    background: linear-gradient(135deg, var(--gr-bg-card) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-radius: var(--gr-radius);
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--gr-border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.gr-article-view-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gr-primary), var(--gr-primary-light), var(--gr-secondary));
}

.gr-article-view-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gr-text);
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.gr-article-view-header .gr-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.gr-article-view-header .gr-article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gr-text-secondary);
    padding: 8px 14px;
    background: var(--gr-bg);
    border-radius: 20px;
    border: 1px solid var(--gr-border-light);
    transition: all 0.3s ease;
}

.gr-article-view-header .gr-article-meta-item:hover {
    border-color: var(--gr-primary-light);
    background: rgba(46, 125, 50, 0.05);
}

.gr-article-view-header .gr-article-meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--gr-primary);
    flex-shrink: 0;
}

.gr-article-view-header .gr-article-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Article View Details
   ======================================== */

.gr-article-view-details {
    background: linear-gradient(135deg, var(--gr-bg-card) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-radius: var(--gr-radius);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--gr-border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gr-article-view-details .gr-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gr-article-view-details .gr-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--gr-bg);
    border-radius: var(--gr-radius-sm);
    border: 1px solid var(--gr-border-light);
    transition: all 0.3s ease;
}

.gr-article-view-details .gr-detail-item:hover {
    border-color: var(--gr-primary-light);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.1);
}

.gr-article-view-details .gr-detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gr-article-view-details .gr-detail-label svg {
    width: 16px;
    height: 16px;
    color: var(--gr-primary);
    flex-shrink: 0;
}

.gr-article-view-details .gr-detail-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--gr-text);
    line-height: 1.6;
    padding-right: 24px;
}

/* ========================================
   Article Notice Boxes
   ======================================== */

.gr-article-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--gr-radius);
    margin-bottom: 24px;
    border: 1px solid;
    position: relative;
    overflow: hidden;
}

.gr-article-notice::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
}

.gr-article-notice-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.gr-article-notice-content {
    flex: 1;
}

.gr-article-notice-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.gr-article-notice-text {
    font-size: 14px;
    line-height: 1.7;
}

/* Notice Types */
.gr-article-notice.gr-notice-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08) 0%, rgba(33, 150, 243, 0.03) 100%);
    border-color: rgba(33, 150, 243, 0.3);
}

.gr-article-notice.gr-notice-info::before {
    background: var(--gr-info);
}

.gr-article-notice.gr-notice-info .gr-article-notice-icon {
    color: var(--gr-info);
}

.gr-article-notice.gr-notice-info .gr-article-notice-title {
    color: var(--gr-info);
}

.gr-article-notice.gr-notice-info .gr-article-notice-text {
    color: #1565C0;
}

.gr-article-notice.gr-notice-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08) 0%, rgba(76, 175, 80, 0.03) 100%);
    border-color: rgba(76, 175, 80, 0.3);
}

.gr-article-notice.gr-notice-success::before {
    background: var(--gr-success);
}

.gr-article-notice.gr-notice-success .gr-article-notice-icon {
    color: var(--gr-success);
}

.gr-article-notice.gr-notice-success .gr-article-notice-title {
    color: var(--gr-success);
}

.gr-article-notice.gr-notice-success .gr-article-notice-text {
    color: #2E7D32;
}

.gr-article-notice.gr-notice-warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08) 0%, rgba(255, 152, 0, 0.03) 100%);
    border-color: rgba(255, 152, 0, 0.3);
}

.gr-article-notice.gr-notice-warning::before {
    background: var(--gr-warning);
}

.gr-article-notice.gr-notice-warning .gr-article-notice-icon {
    color: var(--gr-warning);
}

.gr-article-notice.gr-notice-warning .gr-article-notice-title {
    color: #E65100;
}

.gr-article-notice.gr-notice-warning .gr-article-notice-text {
    color: #EF6C00;
}

.gr-article-notice.gr-notice-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.08) 0%, rgba(244, 67, 54, 0.03) 100%);
    border-color: rgba(244, 67, 54, 0.3);
}

.gr-article-notice.gr-notice-error::before {
    background: var(--gr-error);
}

.gr-article-notice.gr-notice-error .gr-article-notice-icon {
    color: var(--gr-error);
}

.gr-article-notice.gr-notice-error .gr-article-notice-title {
    color: var(--gr-error);
}

.gr-article-notice.gr-notice-error .gr-article-notice-text {
    color: #C62828;
}

/* ========================================
   Article Section Headers
   ======================================== */

.gr-article-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gr-border-light);
    position: relative;
}

.gr-article-section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gr-primary), var(--gr-primary-light));
    border-radius: 2px;
}

.gr-article-section-header svg {
    width: 24px;
    height: 24px;
    color: var(--gr-primary);
    flex-shrink: 0;
}

.gr-article-section-header h2,
.gr-article-section-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gr-text);
    margin: 0;
}

/* ========================================
   Article Comments Section
   ======================================== */

.gr-article-comments-section {
    background: linear-gradient(135deg, var(--gr-bg-card) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-radius: var(--gr-radius);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--gr-border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gr-article-comments-section .gr-comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.gr-article-comments-section .gr-comment-item {
    background: var(--gr-bg);
    border-radius: var(--gr-radius-sm);
    padding: 20px;
    border: 1px solid var(--gr-border-light);
    border-right: 4px solid var(--gr-primary);
    transition: all 0.3s ease;
}

.gr-article-comments-section .gr-comment-item:hover {
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.1);
    border-color: var(--gr-primary-light);
}

.gr-article-comments-section .gr-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.gr-article-comments-section .gr-comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--gr-text);
}

.gr-article-comments-section .gr-comment-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gr-primary), var(--gr-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.gr-article-comments-section .gr-comment-date {
    font-size: 13px;
    color: var(--gr-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gr-article-comments-section .gr-comment-date svg {
    width: 14px;
    height: 14px;
}

.gr-article-comments-section .gr-comment-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gr-text);
}

.gr-article-comments-section .gr-comment-form {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gr-border-light);
}

.gr-article-comments-section .gr-comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 1px solid var(--gr-border-light);
    border-radius: var(--gr-radius-sm);
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    transition: all 0.3s ease;
    background: var(--gr-bg);
}

.gr-article-comments-section .gr-comment-form textarea:focus {
    outline: none;
    border-color: var(--gr-primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.gr-article-comments-section .gr-comment-form button {
    margin-top: 12px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--gr-primary), var(--gr-primary-light));
    color: white;
    border: none;
    border-radius: var(--gr-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.gr-article-comments-section .gr-comment-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 768px) {
    /* Reset old styles for modern mobile view */
    .gr-article-view-header,
    .gr-article-view-details,
    .gr-article-comments-section,
    .gr-article-history-section {
        display: none !important; /* Hide old containers if they still exist */
    }

    /* Modern View Styles already defined in public.css */
}

@media (max-width: 480px) {
    /* Extra Small Devices */
    .gr-article-history-section .gr-timeline {
        margin-right: 24px;
        gap: 28px;
    }

    .gr-article-history-section .gr-timeline::before {
        right: -8.5px; /* 1px برگشت - مرکز خط */
    }


    .gr-article-history-section .gr-timeline-content {
        padding: 14px;
        margin-right: -15px; /* 15px به سمت راست */
        margin-top: -15px; /* 15px بالاتر */
    }

    .gr-article-history-section .gr-timeline-content::before {
        right: -5px; /* 3px نزدیک‌تر به کارت */
        top: 17px; /* 1px بالاتر */
        width: 2px; /* فاصله تا مرکز دایره: -7px - (-5px) = 2px */
    }

    .gr-article-history-section .gr-timeline-content::after {
        right: -4px; /* 1px دورتر از کارت در موبایل کوچک */
        top: 14px; /* 1px بالاتر */
        width: 7px;
        height: 7px;
    }

    .gr-timeline-title {
        font-size: 13px;
    }

    .gr-timeline-date {
        font-size: 11px;
        padding: 3px 8px;
    }

    .gr-timeline-description {
        font-size: 12px;
    }

    .gr-article-view-header {
        padding: 16px;
    }

    .gr-article-view-header h1 {
        font-size: 20px;
    }

    .gr-article-view-header .gr-article-meta-item {
        font-size: 12px;
        padding: 5px 10px;
    }

    .gr-article-view-header .gr-article-status-badge {
        padding: 8px 14px;
        font-size: 12px;
    }

    .gr-article-view-details {
        padding: 16px;
    }

    .gr-article-view-details .gr-detail-item {
        padding: 12px;
    }

    .gr-article-view-details .gr-detail-label {
        font-size: 12px;
    }

    .gr-article-view-details .gr-detail-value {
        font-size: 14px;
    }

    .gr-article-notice {
        padding: 14px;
        flex-direction: column;
        gap: 10px;
    }

    .gr-article-notice::before {
        width: 100%;
        height: 3px;
        top: 0;
        right: 0;
        bottom: auto;
    }

    .gr-article-section-header h2,
    .gr-article-section-header h3 {
        font-size: 16px;
    }

    .gr-article-comments-section {
        padding: 16px;
    }

    .gr-article-comments-section .gr-comment-item {
        padding: 14px;
    }

    .gr-article-comments-section .gr-comment-author {
        font-size: 14px;
    }

    .gr-article-comments-section .gr-comment-date {
        font-size: 11px;
    }
}
