/* Journal Browser Styles */
.scopeis-journal-browser {
    width: 100%;
    margin: 30px 0;
}

.browse-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.browse-title {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.browse-description {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

.scopeis-journals-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.scopeis-journals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Journal Card Styles */
.scopeis-journal-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    overflow: hidden;
    height: fit-content;
    position: relative;
}

.scopeis-journal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007cba;
}

/* Cover Image with Badge */
.journal-cover {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.journal-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.scopeis-journal-card:hover .journal-cover-image {
    transform: scale(1.05);
}

.journal-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.journal-cover-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.journal-cover-placeholder span {
    font-size: 14px;
    opacity: 0.9;
}

/* Publication Badge */
.publication-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    z-index: 2;
}

.publication-current {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.publication-online_first {
    background: linear-gradient(45deg, #007cba, #0056b3);
}

.publication-all {
    background: linear-gradient(45deg, #6c757d, #495057);
}

.publication-free {
    background: linear-gradient(45deg, #fd7e14, #e8590c);
}

/* Journal Card Content */
.journal-card-content {
    padding: 20px;
}

.journal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.journal-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.journal-volume {
    background: #007cba;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Publication Info */
.publication-info {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #007cba;
}

.pub-date, .first-published, .latest-issue {
    font-size: 12px;
    color: #495057;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pub-date i, .first-published i, .latest-issue i {
    color: #007cba;
    width: 12px;
}

.first-published {
    color: #28a745;
    font-weight: 600;
}

.first-published i {
    color: #28a745;
}

.latest-issue {
    color: #dc3545;
    font-weight: 600;
}

.latest-issue i {
    color: #dc3545;
}

/* Issue Details */
.issue-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.detail-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 10px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-value {
    font-size: 12px;
    color: #2c3e50;
    font-weight: 700;
}

/* Authors Section */
.journal-authors {
    margin-bottom: 15px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 6px;
    border: 1px solid #ffeaa7;
}

.journal-authors strong {
    display: block;
    font-size: 11px;
    color: #856404;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.authors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.author-name {
    background: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    color: #495057;
    border: 1px solid #dee2e6;
    line-height: 1.2;
}

.more-authors {
    font-size: 10px;
    color: #6c757d;
    font-style: italic;
}

/* Journal Actions */
.journal-actions {
    display: flex;
    gap: 8px;
}

.view-journal-btn,
.download-pdf-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.view-journal-btn {
    background: #007cba;
    color: white;
}

.view-journal-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.download-pdf-btn {
    background: #28a745;
    color: white;
}

.download-pdf-btn:hover {
    background: #1e7e34;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Loading State */
.scopeis-loading {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.scopeis-loading p {
    color: #6c757d;
    margin: 0;
    font-size: 16px;
}

/* Error State */
.scopeis-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    grid-column: 1 / -1;
}

/* No Journals State */
.scopeis-no-journals {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-journals-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.scopeis-no-journals p {
    color: #6c757d;
    margin: 0;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .scopeis-journals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .scopeis-journals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .scopeis-journals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .browse-header {
        margin-bottom: 20px;
    }
    
    .browse-title {
        font-size: 24px;
    }
    
    .journal-card-content {
        padding: 15px;
    }
    
    .journal-cover {
        height: 180px;
    }
    
    .journal-title {
        font-size: 16px;
    }
    
    .journal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .scopeis-journals-grid-container {
        padding: 0 10px;
    }
    
    .journal-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .journal-volume {
        align-self: flex-start;
    }
    
    .issue-details {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .detail-item {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* 4x4 Grid for Desktop */
@media (min-width: 1200px) {
    .scopeis-journals-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 2x2 Grid for Tablet */
@media (max-width: 1199px) and (min-width: 768px) {
    .scopeis-journals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1x1 Grid for Mobile */
@media (max-width: 767px) {
    .scopeis-journals-grid {
        grid-template-columns: 1fr;
    }
}