/* Journal Manager Frontend Styles */

/* Issues Grid */
.jm-issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.jm-issue-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jm-issue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.jm-issue-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.jm-issue-info {
    padding: 1.5rem;
}

.jm-issue-info h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.jm-issue-info h3 a {
    text-decoration: none;
    color: #333;
}

.jm-issue-info h3 a:hover {
    color: #007cba;
}

.jm-issue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.jm-issue-meta span {
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.jm-issue-meta .special-issue {
    background: #ff6b6b;
    color: white;
}

.jm-articles-count {
    color: #666;
    font-size: 0.9rem;
}

/* Articles List */
.jm-articles-list {
    margin: 2rem 0;
}

.jm-article-card {
    border: 1px solid #eee;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    background: #fff;
}

.jm-article-header h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.jm-article-header h4 a {
    text-decoration: none;
    color: #333;
}

.jm-article-header h4 a:hover {
    color: #007cba;
}

.jm-article-authors {
    color: #666;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.jm-article-keywords,
.jm-article-abstract {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.jm-article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Single Issue Display */
.jm-single-issue {
    max-width: 1200px;
    margin: 0 auto;
}

.jm-issue-cover-display {
    text-align: center;
    margin-bottom: 2rem;
}

.jm-issue-cover-display img {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.jm-issue-details h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.jm-issue-meta-details {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.jm-issue-meta-details p {
    margin: 0.5rem 0;
}

.jm-issue-content {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Issue Articles Table */
.jm-issue-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 0.5rem;
}

.jm-articles-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.jm-article-row {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.jm-article-row:last-child {
    border-bottom: none;
}

.jm-article-row:hover {
    background: #f8f9fa;
}

.jm-article-title {
    margin-bottom: 0.5rem;
}

.jm-article-title a {
    font-weight: 600;
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
}

.jm-article-title a:hover {
    color: #007cba;
}

.jm-article-authors-list {
    color: #666;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.jm-article-meta-row {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #777;
}

/* Single Article Display */
.jm-single-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.jm-article-header h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #333;
}

.jm-article-authors-detailed {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.jm-author {
    margin-bottom: 1rem;
}

.jm-author:last-child {
    margin-bottom: 0;
}

.author-name {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.author-orcid,
.author-institution {
    display: block;
    color: #666;
    font-size: 0.9rem;
}

.jm-article-keywords-detailed,
.jm-article-abstract-detailed,
.jm-article-metadata {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.jm-article-keywords-detailed h3,
.jm-article-abstract-detailed h3,
.jm-article-metadata h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.3rem;
}

.jm-article-abstract-detailed p {
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
}

.jm-article-metadata p {
    margin: 0.5rem 0;
}

/* Citations */
.jm-article-citations {
    margin-top: 3rem;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.jm-article-citations h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.3rem;
}

.jm-citations-list {
    padding-left: 1.5rem;
}

.jm-citations-list li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jm-issues-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .jm-issue-info {
        padding: 1rem;
    }
    
    .jm-article-card {
        padding: 1rem;
    }
    
    .jm-single-article {
        padding: 1rem;
    }
    
    .jm-article-header h1 {
        font-size: 1.8rem;
    }
    
    .jm-issue-cover-display img {
        max-width: 100%;
    }
    
    .jm-article-meta-row {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Print Styles */
@media print {
    .jm-issue-card,
    .jm-article-card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .jm-article-header h1,
    .jm-issue-details h2 {
        color: #000;
    }
    
    .jm-article-title a,
    .jm-issue-info h3 a {
        color: #000;
        text-decoration: underline;
    }
}