/* Repository Style - Academic Digital Commons Design - Simplified */

:root {
    --repo-primary: #2c5282;
    --repo-secondary: #4a7ba7;
    --repo-accent: #1a365d;
    --repo-light-bg: #fafafa;
    --repo-border: #e0e0e0;
    --repo-hover: #f5f5f5;
    --repo-text: #2d3748;
    --repo-text-light: #718096;
}

/* Repository Header */
.repository-header {
    background: var(--repo-primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.journal-logo {
    width: 175px;
    height: 250px;
    object-fit: cover;
    margin-bottom: -60px;
    position: relative;
    z-index: 101;
}

.header-text h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0.5rem 0 0 0;
    font-weight: 300;
}

/* Navigation Bar */
.repository-nav {
    background: white;
    border-bottom: 2px solid var(--repo-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.repository-nav .container {
    padding-left: 0;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    margin-left: auto;
    margin-right: 20px;
    padding: 0;
    gap: 0.5rem;
}

.nav-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--repo-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: var(--repo-hover);
    color: var(--repo-primary);
    border-bottom-color: var(--repo-primary);
}

.nav-item.active {
    color: var(--repo-primary);
    border-bottom-color: var(--repo-primary);
    font-weight: 600;
}

/* Repository Layout */
.repository-container {
    padding: 2rem 0;
    background: #ffffff;
}

.repository-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    min-height: 60vh;
}

/* Sidebar */
.repository-sidebar {
    background: white;
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--repo-border);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--repo-border);
}

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

.sidebar-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--repo-accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Form - Updated Design */
.search-section {
    padding: 1rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-input {
    width: 100%;
    padding: 0.65rem;
    border: 1px solid var(--repo-border);
    border-radius: 4px;
    font-size: 0.85rem;
    background: white;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: var(--repo-primary);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.search-btn {
    width: 100%;
    padding: 0.65rem;
    background: var(--repo-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.search-btn:hover {
    background: var(--repo-accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Browse List */
.browse-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.browse-list li {
    margin-bottom: 0.5rem;
}

.browse-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--repo-text);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.browse-list a:hover {
    background: var(--repo-light-bg);
    color: var(--repo-primary);
    border-left-color: var(--repo-primary);
    padding-left: 1rem;
}

/* Author Corner */
.author-corner {
    background: var(--repo-light-bg);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--repo-border);
}

/* Stats Box */
.stats-box {
    background: var(--repo-primary);
    color: white;
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
}

.stats-box h3 {
    color: white;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Main Content */
.repository-main {
    background: white;
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--repo-border);
}

.content-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--repo-border);
}

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

.content-section h2 {
    font-size: 1.5rem;
    color: var(--repo-accent);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--repo-border);
}

/* Browse Grid */
.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.browse-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--repo-light-bg);
    border: 1px solid var(--repo-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--repo-text);
    transition: all 0.3s ease;
    text-align: center;
}

.browse-card:hover {
    background: white;
    border-color: var(--repo-primary);
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.15);
    transform: translateY(-2px);
    color: var(--repo-primary);
}

.browse-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--repo-primary);
}

.browse-card h4 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

/* About Section */
.about-section p {
    line-height: 1.8;
    color: var(--repo-text);
    margin-bottom: 1rem;
}

.journal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--repo-light-bg);
    border-radius: 4px;
    border-left: 3px solid var(--repo-primary);
}

.info-item {
    font-size: 0.95rem;
}

.info-item strong {
    color: var(--repo-accent);
    display: block;
    margin-bottom: 0.25rem;
}

/* Journal Sections List */
.journal-sections {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--repo-border);
    border-radius: 4px;
}

.journal-sections ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.journal-sections li {
    padding: 0.5rem 0.75rem;
    background: var(--repo-light-bg);
    border-left: 3px solid var(--repo-primary);
    font-size: 0.9rem;
}

/* Volumes Grid */
.volumes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.volume-card {
    background: var(--repo-light-bg);
    border: 1px solid var(--repo-border);
    border-radius: 4px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.volume-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.volume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--repo-border);
}

.volume-header h4 {
    margin: 0;
    color: var(--repo-accent);
    font-size: 1.1rem;
}

.page-count {
    font-size: 0.85rem;
    color: var(--repo-text-light);
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--repo-border);
}

.volume-preview {
    font-size: 0.85rem;
    color: var(--repo-text);
    line-height: 1.6;
    margin-bottom: 1rem;
    min-height: 60px;
}

.volume-link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--repo-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.volume-link:hover {
    background: var(--repo-accent);
    color: white;
}

/* Articles List */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-item .keywords {
    font-size: 0.85rem;
    color: var(--repo-text-light);
    margin-top: 0.5rem;
}

.article-item .article-meta {
    font-size: 0.85rem;
    color: var(--repo-text-light);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--repo-border);
}

/* At a Glance */
.glance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.glance-box {
    background: var(--repo-light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--repo-border);
}

.glance-box h3 {
    font-size: 1.25rem;
    color: var(--repo-accent);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Downloads List */
.downloads-list {
    counter-reset: download-counter;
    padding-left: 0;
}

.downloads-list li {
    counter-increment: download-counter;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.downloads-list li::before {
    content: counter(download-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--repo-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.downloads-list a {
    color: var(--repo-text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.downloads-list a:hover {
    color: var(--repo-primary);
    text-decoration: underline;
}

.download-count {
    font-size: 0.85rem;
    color: var(--repo-text-light);
}

/* Recent List */
.recent-list {
    list-style: none;
    padding: 0;
}

.recent-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.recent-list li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: var(--repo-primary);
    font-size: 1.5rem;
    line-height: 1;
}

.recent-list a {
    color: var(--repo-text);
    text-decoration: none;
    display: block;
}

.recent-list a:hover {
    color: var(--repo-primary);
    text-decoration: underline;
}

.recent-date {
    font-size: 0.85rem;
    color: var(--repo-text-light);
    display: block;
    margin-top: 0.25rem;
}

.view-all-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--repo-primary);
    text-decoration: none;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Paper of the Day */
.paper-of-day {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #ffc107;
}

.paper-of-day h3 {
    font-size: 1.5rem;
    color: var(--repo-accent);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.paper-of-day h3 i {
    color: #ffc107;
}

.featured-paper h4 {
    font-size: 1.25rem;
    color: var(--repo-accent);
    margin-bottom: 0.75rem;
}

.paper-authors {
    color: var(--repo-text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.paper-abstract {
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.paper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.paper-meta span {
    font-size: 0.9rem;
    color: var(--repo-text-light);
}

.paper-meta i {
    margin-right: 0.5rem;
    color: var(--repo-primary);
}

/* Buttons */
.btn-primary, .btn-submit {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--repo-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover, .btn-submit:hover {
    background: var(--repo-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
    color: white;
}

/* Issue Articles */
.issue-articles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-item {
    padding: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.article-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.article-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--repo-accent);
    line-height: 1.4;
}

.article-item .authors {
    color: var(--repo-text-light);
    font-style: italic;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.article-item .keywords {
    color: var(--repo-text-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.article-item .keywords i {
    margin-right: 0.25rem;
}

.article-item .article-meta {
    font-size: 0.85rem;
    color: var(--repo-text-light);
}

/* PDF Links */
.pdf-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.pdf-link:hover {
    color: #991b1b;
    text-decoration: underline;
}

.pdf-link i {
    margin-right: 0.25rem;
}

.pdf-download {
    margin-top: 1rem;
}

.pdf-download .btn {
    background-color: #dc2626;
    border-color: #dc2626;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.pdf-download .btn:hover {
    background-color: #991b1b;
    border-color: #991b1b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.article-meta .fas {
    margin-right: 0.25rem;
    opacity: 0.7;
}

/* Submission Info */
.submission-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.info-box {
    background: var(--repo-light-bg);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--repo-border);
}

.info-box h4 {
    color: var(--repo-accent);
    margin-bottom: 1rem;
}

.info-box ol, .info-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.info-box li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Footer */
.repository-footer {
    background: var(--repo-accent);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-section p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .repository-layout {
        grid-template-columns: 1fr;
    }
    
    .repository-sidebar {
        position: static;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
}

/* Article Item Enhancements */
.article-item {
    border: 1px solid var(--repo-border);
    border-radius: 8px;
    padding: 1.5rem !important;
    background: white;
    transition: all 0.3s ease;
}

.article-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    border-color: var(--repo-primary);
}

.article-number {
    display: inline-block;
    background: var(--repo-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.article-item h4 a {
    color: var(--repo-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.article-item h4 a:hover {
    color: var(--repo-primary);
    text-decoration: underline;
}

.article-item .authors {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-item .abstract {
    color: var(--repo-text);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.article-item .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--repo-border);
}

.article-item .pages {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--repo-text-light);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-download:hover {
    background: #991b1b;
    color: white;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--repo-text-light);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .header-text h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .journal-logo {
        width: 90px;
        height: 90px;
    }
    
    .repository-main {
        padding: 1.5rem;
    }
    
    .glance-grid {
        grid-template-columns: 1fr;
    }
    
    .browse-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .article-item .article-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;

    }
}

/* Additional Sections - Ethics and Aim & Scope */
.aim-scope-section,
.ethics-section {
    margin-top: 2rem;
}

.aim-scope-section h2,
.ethics-section h2 {
    color: var(--repo-primary);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--repo-border);
    padding-bottom: 0.75rem;
}

.ethics-section h3 {
    color: var(--repo-secondary);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.ethics-section p,
.aim-scope-section p {
    line-height: 1.8;
    color: var(--repo-text);
    margin-bottom: 1rem;
    text-align: justify;
}

.ethics-section a {
    color: var(--repo-primary);
    text-decoration: none;
    font-weight: 500;
}

.ethics-section a:hover {
    text-decoration: underline;
    color: var(--repo-accent);
}
