/* ==================== CSS Variables ==================== */
:root {
    --primary-color: #1a5276;
    --primary-dark: #0e3a56;
    --primary-light: #2980b9;
    --secondary-color: #27ae60;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --white: #fff;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== Header ==================== */
.journal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.journal-brand a {
    color: var(--white);
    text-decoration: none;
}

.journal-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.journal-subtitle {
    font-size: 0.95rem;
    font-weight: 300;
    display: block;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #219a52;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-danger {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #c0392b;
    color: var(--white);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ==================== Navigation ==================== */
.main-nav {
    background-color: var(--white);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: center;
    gap: 5px;
    padding: 10px 0;
}

.nav-list li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 500;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-list li a:hover,
.nav-list li a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ==================== Alerts ==================== */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
}

.alert-close:hover {
    opacity: 1;
}

/* ==================== Main Content ==================== */
.main-content {
    min-height: calc(100vh - 400px);
    padding: 30px 0;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.page-header h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.page-header .breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* ==================== Cards ==================== */
.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 15px 20px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* ==================== Home Page ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 25px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.latest-issue {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px;
}

.latest-issue h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.sidebar-widget h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* ==================== Article List ==================== */
.article-list {
    list-style: none;
}

.article-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.article-item:last-child {
    border-bottom: none;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.article-title a:hover {
    color: var(--primary-light);
}

.article-authors {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-abstract {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ==================== Volume/Issue Navigation ==================== */
.volume-nav {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 30px;
}

.decade-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.decade-tab {
    padding: 8px 16px;
    background: var(--bg-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.decade-tab.active,
.decade-tab:hover {
    background: var(--primary-color);
    color: var(--white);
}

.year-volumes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.volume-card {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

.volume-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.issue-list {
    list-style: none;
}

.issue-list li {
    padding: 5px 0;
}

/* ==================== Editor Cards ==================== */
.editor-section {
    margin-bottom: 40px;
}

.editor-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.editor-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    transition: var(--transition);
}

.editor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.editor-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.editor-affiliation {
    color: var(--text-light);
    font-size: 0.9rem;
}

.editor-country {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

/* ==================== Forms ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group label .required {
    color: var(--accent-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ==================== Tables ==================== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== Footer ==================== */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

.issn-info {
    margin-top: 15px;
    font-size: 0.85rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ==================== Article Detail Page ==================== */
.article-detail {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.article-detail .article-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.article-detail .article-authors {
    font-size: 1rem;
    margin-bottom: 20px;
}

.article-section {
    margin: 25px 0;
}

.article-section h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    background: var(--bg-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.article-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
}

/* ==================== Admin Styles ==================== */
.admin-header {
    background: #2c3e50;
    color: var(--white);
    padding: 15px 0;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-brand {
    font-size: 1.3rem;
    font-weight: 600;
}

.admin-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.admin-menu a {
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 5px;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-card .stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-under_review {
    background: #cce5ff;
    color: #004085;
}

.badge-accepted {
    background: #d4edda;
    color: #155724;
}

.badge-rejected {
    background: #f8d7da;
    color: #721c24;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

/* ==================== File Upload ==================== */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.file-upload:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.file-upload i {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.file-upload p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.file-upload input[type="file"] {
    display: none;
}

/* ==================== Responsive ==================== */
@media (max-width: 992px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .journal-title {
        font-size: 2rem;
    }
    
    .nav-list {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .nav-list li a {
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .editor-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .admin-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==================== Login Page ==================== */
.login-container {
    max-width: 400px;
    margin: 50px auto;
}

.login-box {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 40px;
}

.login-box h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.login-box .btn {
    width: 100%;
    justify-content: center;
}

/* ==================== Content Pages ==================== */
.content-page {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.content-page h1 {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.content-page h2 {
    color: var(--primary-dark);
    margin: 25px 0 15px;
    font-size: 1.3rem;
}

.content-page h3 {
    color: var(--primary-color);
    margin: 20px 0 10px;
    font-size: 1.1rem;
}

.content-page p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.content-page ul,
.content-page ol {
    margin: 15px 0;
    padding-left: 30px;
}

.content-page li {
    margin-bottom: 8px;
}

/* ==================== Utilities ==================== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-light);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.d-flex {
    display: flex;
}

.gap-10 {
    gap: 10px;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.open-access-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}
