/* article.css - طرح صفحات مقاله */
.article-layout {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    position: relative;
}

/* ستون چپ - اطلاعات مقاله */
.article-sidebar {
    flex: 0 0 350px;
    position: sticky;
    top: 100px;
    height: fit-content;
    /*max-height: calc(100vh - 120px);*/
    /*overflow-y: auto;*/
}

.article-info-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-3);
}

.info-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--light-2);
}

.info-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: block;
}

.info-value {
    font-size: 16px;
    color: var(--text);
    line-height: 1.6;
}

.info-value.english {
    font-family: 'Segoe UI', Arial, sans-serif;
    direction: ltr;
    text-align: left;
}

.authors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.author-item {
    padding: 8px 12px;
    background: var(--light-1);
    border-radius: 8px;
    font-size: 14px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-align: center;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 111, 165, 0.3);
}

/* ستون راست - محتوای مقاله */
.article-content {
    flex: 1;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-3);
    /*max-height: calc(100vh - 120px);
    overflow-y: auto;*/
}

.article-title {
    font-size: 32px;
    color: var(--text);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent);
}

.section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-2);
}

.section:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.section-title {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent);
}

.section-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
}

.section-content p {
    margin-bottom: 16px;
    font-size: 16px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* نویگیشن بین مقالات */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--light-2);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    background: var(--light-1);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(-5px);
}

.nav-btn.next:hover {
    transform: translateX(5px);
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .article-layout {
        flex-direction: column;
    }
    
    .article-sidebar {
        position: static;
        flex: none;
        max-height: none;
    }
    
    .article-content {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 26px;
        margin-bottom: 25px;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .section-content {
        font-size: 16px;
    }
    
    .section-content p {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .page-subtitle {
        font-size: 15px;
    }
}

/* استایل آیکون اشتراک‌گذاری در هدر */
.header-share-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-share-btn:hover {
    background: var(--light-1);
    color: var(--primary);
    transform: scale(1.1);
}

.header-share-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--light-3);
    padding: 15px;
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 10px;
    animation: fadeIn 0.2s ease;
}

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

.header-share-dropdown button {
    background: none;
    border: none;
    color: var(--text);
    text-align: right;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 14px;
}

.header-share-dropdown button:hover {
    background: var(--light-1);
}

.normal-cursor {
    cursor: default !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}