/* Academic Publication Website Styles */

:root {
    --primary-color: #2C5F8D;
    --secondary-color: #4A90E2;
    --dark-color: #1a1a1a;
    --light-gray: #f8f9fa;
    --text-color: #333;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--dark-color);
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* Navbar */
.navbar {
    background-color: var(--primary-color) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2C5F8D 0%, #4A90E2 100%);
    color: white;
    padding: 60px 0;
}

.hero-section h1 {
    color: white;
}

.search-box {
    border-radius: 10px;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.journal-card, .article-card, .book-card {
    height: 100%;
}

.placeholder-cover {
    height: 200px;
    border-radius: 10px 10px 0 0;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* Buttons */
.btn {
    border-radius: 5px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1a4a6f;
    border-color: #1a4a6f;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #1a1a1a !important;
    margin-top: 3rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1rem;
}

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

.footer a:hover {
    color: var(--secondary-color) !important;
}

/* Forms */
.form-control, .form-select {
    border-radius: 5px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* Tables */
.table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
}

/* Alert Messages */
.alert {
    border-radius: 5px;
    border: none;
}

/* Dashboard */
.dashboard-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.dashboard-card h3 {
    color: white;
}

.stat-box {
    border-radius: 10px;
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Admin Panel */
.admin-sidebar {
    background-color: #2C5F8D;
    min-height: calc(100vh - 56px);
    padding: 2rem 1rem;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/* Article View */
.article-meta {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

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

/* Loading Spinner */
.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}
