/* Article List and Detail Pages Styles */

/* Articles Page Container */
.allarticles {
    padding: 2rem 0 4rem 0;
}

.allarticles h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 400;
    color: #2c3e50;
}

/* Articles Layout with Sidebar */
.articles-layout {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Filter Sidebar */
.filter-sidebar {
    flex: 0 0 280px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    height: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-sidebar h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #34495e;
}

.filter-group label {
    display: block;
    margin-bottom: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.2s ease;
}

.filter-group input[type="checkbox"] {
    margin-right: 0.6rem;
    transform: scale(1.1);
}

.filter-group select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
    transition: border-color 0.2s ease;
}

.filter-group select:focus {
    border-color: #3498db;
    outline: none;
}

/* Year Filter */
.year-filter {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.year-filter h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #333;
}

.clear-filter {
    color: #dc3545;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border: 1px solid #dc3545;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.clear-filter:hover {
    background: #dc3545;
    color: white;
}

/* Articles Content */
.articles-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.articles-results-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.results-count {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Articles List - Scopus Style */
.articles-list.scopus-style {
    display: flex;
    flex-direction: column;
}

.articles-list.scopus-style .article-item {
    display: flex;
    padding: 1.5rem;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.articles-list.scopus-style .article-item:last-child {
    border-bottom: none;
}

/* Article Index Number */
.article-index {
    flex: 0 0 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #7f8c8d;
    margin-top: 0.2rem;
}

/* Article Content Wrapper */
.article-content-wrapper {
    flex: 1;
    margin-left: 1rem;
}

/* Article Header Row */
.article-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.document-type {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Article Title */
.article-title {
    margin: 0 0 0.2rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 600;
}

.article-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
}

.article-title a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Authors */
.article-authors {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
}

/* Journal and Year/Citations Row */
.article-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.journal-info {
    flex: 1;
}

.journal-link {
    color: #3498db;
    text-decoration: none;
    font-style: italic;
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.journal-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.year-citations {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6rem;
    color: #000000;
    white-space: nowrap;
}

.year {
    font-weight: 600;
}

.citations {
    color: #000000;
    font-weight: 500;
}

/* Abstract Container */
.article-abstract-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
}

.abstract-content strong {
    color: #2c3e50;
    font-size: 0.9rem;
}

.abstract-content p {
    margin: 0.5rem 0 0 0;
    line-height: 1.6;
    text-align: justify;
    font-size: 0.9rem;
    color: #444;
}

/* DOI */
.article-doi {
    margin-top: 0.8rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.article-doi small {
    color: #888;
    font-size: 0.8rem;
}

/* Load More Container */
.load-more-container {
    margin: 2rem 0;
    text-align: center;
}

/* Article Detail Page */
.article-detail {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.article-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.article-detail-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.article-detail-authors {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.article-detail-journal {
    font-style: italic;
    color: #3498db;
}

.article-detail-content {
    line-height: 1.8;
    font-size: 1rem;
}

.article-detail-content h2,
.article-detail-content h3,
.article-detail-content h4 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.article-detail-content ul,
.article-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

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

.article-detail-content blockquote {
    border-left: 4px solid #3498db;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    font-style: italic;
}

.article-detail-content figure {
    margin: 2rem 0;
    text-align: center;
}

.article-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-detail-content figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

/* Article Navigation */
.article-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-article {
    flex: 1;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    text-decoration: none;
    color: #495057;
    transition: background-color 0.3s ease;
}

.nav-article:hover {
    background: #e9ecef;
}

.nav-article-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.nav-article-title {
    font-weight: 600;
    line-height: 1.3;
}

.nav-article.next {
    text-align: right;
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.related-articles h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.3rem;
}

.related-article-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.related-article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.related-article-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.related-article-title a {
    color: #2c3e50;
    text-decoration: none;
}

.related-article-title a:hover {
    color: #3498db;
    text-decoration: underline;
}

.related-article-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Citation Styles */
.citation-box {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.citation-box h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.citation-formats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.citation-format-btn {
    padding: 0.25rem 0.75rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.citation-format-btn.active,
.citation-format-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.citation-text {
    padding: 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.copy-citation-btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
}

.copy-citation-btn:hover {
    background: #218838;
}

/* Article Metrics */
.article-metrics {
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.article-metrics h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.metric-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.metric-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
