/*
 * Raboks Library Research & Development Center
 * Main Stylesheet
 * 
 * A minimalist, elegant design system for academic institutions
 * Color scheme: Cream backgrounds with muted grays for sophisticated readability
 * Typography: Helvetica Neue for clean, professional appearance
 * 
 * Author: Raboks Library R&D Team
 * Version: 1.0
 * Last Updated: 2024
 */

/* ===================================
   RESET & BASE STYLES
   =================================== */

/* Universal reset for consistent cross-browser styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   =================================== */

:root {
    /* Color Palette - Minimalist Academic Theme */
    --bg-cream: #f5f5f0;          /* Main background - warm cream */
    --bg-white: #ffffff;          /* Card backgrounds - pure white */
    --text-primary: #6b6b6b;      /* Primary text - medium gray */
    --text-dark: #4a4a4a;         /* Headings and emphasis - dark gray */
    --text-light: #9a9a9a;        /* Secondary text - light gray */
    --border-gray: #d4d4d4;       /* Borders and dividers */
    --accent-gray: #8a8a8a;       /* Accent elements */
    
    /* Shadow System - Subtle depth */
    --shadow-subtle: 0 2px 8px rgba(0,0,0,0.04);   /* Light shadow for cards */
    --shadow-medium: 0 4px 16px rgba(0,0,0,0.08);  /* Medium shadow for hover states */
    
    /* Typography Scale */
    --font-family-primary: 'Helvetica Neue', 'Arial', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    
    /* Spacing System */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 80px;
    
    /* Layout Constraints */
    --max-width-content: 1400px;
    --header-height: 80px;
}

/* ===================================
   GLOBAL STYLES
   =================================== */

body {
    font-family: var(--font-family-primary);
    background: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    font-weight: var(--font-weight-light);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

/* Fixed header with backdrop blur for modern glass effect */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-gray);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Navigation container with centered content */
nav {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 40px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo styling - inspired by academic institutions */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Main logo text - elegant italic styling */
.logo-main {
    font-size: 28px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    letter-spacing: 2px;
    font-style: italic;
    margin-bottom: -4px;
}

/* Logo subtitle - small caps for institutional feel */
.logo-sub {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: var(--font-weight-normal);
}

/* Decorative frame element */
.logo-frame {
    width: 60px;
    height: 40px;
    border: 2px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

/* Navigation links styling */
.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: var(--font-weight-light);
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-dark);
}

/* Elegant underline animation on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-dark);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===================================
   HERO SECTION
   =================================== */

/* Full-height hero with centered content */
.hero {
    margin-top: var(--header-height);
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-cream);
    position: relative;
}

.hero-content {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

/* Large, elegant hero title */
.hero h1 {
    font-size: 72px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    letter-spacing: 4px;
    font-style: italic;
    line-height: 1.2;
}

/* Hero subtitle with institutional styling */
.hero-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    font-weight: var(--font-weight-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Hero description paragraph */
.hero-description {
    font-size: 18px;
    color: var(--text-primary);
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.8;
    font-weight: var(--font-weight-light);
}

/* Call-to-action button with minimal styling */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: var(--spacing-sm) var(--spacing-xl);
    background: transparent;
    color: var(--text-dark);
    text-decoration: none;
    border: 1px solid var(--border-gray);
    font-weight: var(--font-weight-light);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--text-dark);
    color: var(--bg-white);
    border-color: var(--text-dark);
}

/* ===================================
   SECTION LAYOUTS
   =================================== */

/* Standard section spacing and layout */
.section {
    padding: 120px 40px;
    max-width: var(--max-width-content);
    margin: 0 auto;
}

/* Section titles with elegant typography */
.section-title {
    font-size: 48px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    letter-spacing: 2px;
    text-align: center;
}

/* Section subtitles for context */
.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: var(--spacing-xxl);
    font-weight: var(--font-weight-light);
    text-align: center;
    letter-spacing: 1px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-xxl);
}

/* ===================================
   RESEARCH AREAS GRID
   =================================== */

/* Responsive grid for research cards */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* Individual research area cards */
.research-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.research-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-8px);
}

/* Research card image/icon area */
.research-image {
    width: 100%;
    height: 240px;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-gray);
}

/* Research card content area */
.research-content {
    padding: var(--spacing-lg);
}

.research-title {
    font-size: 22px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 1px;
}

.research-description {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: var(--font-weight-light);
}

.research-meta {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--font-weight-normal);
}

/* ===================================
   SERVICES GRID
   =================================== */

/* Services grid layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: 60px;
}

/* Service cards with centered content */
.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-subtle);
}

.service-icon {
    font-size: 32px;
    margin-bottom: var(--spacing-md);
    display: block;
    color: var(--text-light);
}

.service-title {
    font-size: 18px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 1px;
}

.service-description {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.8;
    font-weight: var(--font-weight-light);
}

/* ===================================
   FEATURED SECTION
   =================================== */

/* Featured content with two-column layout */
.featured-section {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    padding: var(--spacing-xxl) 60px;
    margin: var(--spacing-xxl) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.featured-content h3 {
    font-size: 36px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
    line-height: 1.3;
}

.featured-content p {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    font-weight: var(--font-weight-light);
}

.featured-image {
    width: 100%;
    height: 400px;
    background: var(--bg-cream);
    border: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--text-light);
}

/* Learn more button with underline animation */
.learn-more-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: var(--font-weight-light);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.learn-more-button:hover {
    border-bottom-color: var(--text-dark);
}

/* ===================================
   FOOTER
   =================================== */

/* Footer with organized link sections */
footer {
    background: var(--bg-white);
    padding: var(--spacing-xxl) 40px 40px;
    border-top: 1px solid var(--border-gray);
}

.footer-content {
    max-width: var(--max-width-content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: var(--font-weight-normal);
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-light);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-dark);
}

/* Footer bottom with copyright */
.footer-bottom {
    margin-top: 60px;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-gray);
    text-align: center;
    color: var(--text-light);
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: var(--font-weight-light);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet and mobile adjustments */
@media (max-width: 768px) {
    /* Hide navigation on mobile - could be replaced with hamburger menu */
    .nav-links {
        display: none;
    }
    
    nav {
        padding: 0 var(--spacing-md);
    }
    
    /* Adjust hero typography for smaller screens */
    .hero h1 {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    /* Reduce section padding on mobile */
    .section {
        padding: var(--spacing-xxl) var(--spacing-md);
    }
    
    /* Single column layout for research grid */
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    /* Two-column services grid on tablet */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Stack featured section on mobile */
    .featured-section {
        grid-template-columns: 1fr;
        padding: 60px 40px;
        gap: 40px;
    }
    
    /* Two-column footer on tablet */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    /* Single column for all grids on small screens */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Further reduce typography on very small screens */
    .hero h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

/* ===================================
   ANIMATION UTILITIES
   =================================== */

/* Smooth transitions for interactive elements */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects for cards */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

/* ===================================
   LOGO IMAGE STYLES
   =================================== */

.logo-image {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-image:hover {
    opacity: 0.8;
}

/* ===================================
   HERO BACKGROUND IMAGE
   =================================== */

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* ===================================
   RESEARCH CARD IMAGES
   =================================== */

.research-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   PUBLICATIONS PAGE STYLES
   =================================== */

/* Page hero for publications */
.page-hero {
    margin-top: var(--header-height);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-cream);
    position: relative;
    text-align: center;
}

/* Publications controls */
.publications-controls {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 600px;
    margin: var(--spacing-xl) auto 0;
}

.search-container {
    display: flex;
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    overflow: hidden;
}

#publication-search {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-dark);
}

#publication-search::placeholder {
    color: var(--text-light);
}

.search-button {
    padding: 12px 16px;
    background: var(--text-dark);
    color: var(--bg-white);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: var(--text-primary);
}

.filter-container {
    display: flex;
    gap: var(--spacing-sm);
}

.filter-container select {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-gray);
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 14px;
    border-radius: 4px;
    outline: none;
}

/* Featured publications grid */
.featured-publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--spacing-xl);
    margin-top: 60px;
}

.featured-publication-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.featured-publication-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.featured-publication-card .publication-image {
    height: 200px;
    overflow: hidden;
}

.publication-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-publication-card .publication-content {
    padding: var(--spacing-lg);
}

.publication-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.publication-type {
    background: var(--text-light);
    color: var(--bg-white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publication-year {
    color: var(--text-light);
    font-size: 12px;
    font-weight: var(--font-weight-normal);
}

.publication-title {
    font-size: 20px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.publication-authors {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.publication-description {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.publication-journal {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-normal);
}

.publication-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.publication-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.publication-link:hover {
    background: var(--text-dark);
    color: var(--bg-white);
}

/* Publications list */
.publications-list {
    margin-top: 60px;
}

.publication-year-group {
    margin-bottom: var(--spacing-xl);
}

.year-heading {
    font-size: 24px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-gray);
}

.publication-item {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.publication-item:hover {
    box-shadow: var(--shadow-subtle);
    transform: translateY(-2px);
}

.publication-item-content {
    padding: var(--spacing-md);
}

.publication-item-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.publication-item-title {
    font-size: 16px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.publication-item-authors {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-style: italic;
}

.publication-item-journal {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.publication-item-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* Statistics section */
.stats-section {
    background: var(--bg-white);
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: 60px;
}

.stat-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.stat-number {
    font-size: 48px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 14px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section CTA */
.section-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* Active navigation link */
.nav-links a.active {
    color: var(--text-dark);
    font-weight: var(--font-weight-normal);
}

.nav-links a.active::after {
    width: 100%;
}

/* ===================================
   RESPONSIVE UPDATES
   =================================== */

@media (max-width: 768px) {
    .logo-image {
        height: 40px;
    }
    
    .publications-controls {
        padding: 0 var(--spacing-md);
    }
    
    .filter-container {
        flex-direction: column;
    }
    
    .featured-publications-grid {
        grid-template-columns: 1fr;
    }
    
    .publication-actions,
    .publication-item-actions {
        flex-wrap: wrap;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 36px;
    }
}
/* ===================================
   PEER REVIEW SYSTEM STYLES
   =================================== */

/* Authentication Area */
.auth-area {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.auth-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-button:hover {
    background: var(--text-dark);
    color: var(--bg-white);
    border-color: var(--text-dark);
}

.auth-icon {
    font-size: 16px;
}

/* User Menu */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 14px;
    font-weight: var(--font-weight-normal);
}

.avatar-initials {
    text-transform: uppercase;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 14px;
    font-weight: var(--font-weight-normal);
    color: var(--text-dark);
}

.user-institution {
    font-size: 12px;
    color: var(--text-light);
}

/* Peer Review Hero */
.peer-review-hero {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-white) 100%);
    border-bottom: 1px solid var(--border-gray);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-gray);
}

.cta-button.secondary:hover {
    background: var(--text-dark);
    color: var(--bg-white);
}

.system-status {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 12px;
    color: var(--text-light);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34a853;
}

.status-indicator.online {
    background: #34a853;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-gray);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: var(--spacing-lg);
}

/* Authentication Forms */
.auth-form {
    max-width: 500px;
    margin: 0 auto;
}

.auth-form h3 {
    font-size: 20px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    text-align: center;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.form-grid {
    display: grid;
    gap: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: var(--font-weight-normal);
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-dark);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ea4335;
}

.form-help {
    font-size: 12px;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    width: auto;
}

.checkbox-group label {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.form-button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: var(--font-weight-normal);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-button.primary {
    background: var(--text-dark);
    color: var(--bg-white);
}

.form-button.primary:hover {
    background: var(--text-primary);
}

.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-md);
}

.form-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.form-link:hover {
    color: var(--text-dark);
    text-decoration: underline;
}
/* Dashboard Styles */
.dashboard-section {
    background: var(--bg-white);
    min-height: calc(100vh - var(--header-height));
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-gray);
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.dashboard-nav {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-gray);
}

.dashboard-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-tab.active {
    color: var(--text-dark);
    border-bottom-color: var(--text-dark);
}

.dashboard-tab:hover {
    color: var(--text-dark);
}

.dashboard-content {
    position: relative;
}

.dashboard-panel {
    display: none;
}

.dashboard-panel.active {
    display: block;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.panel-header h3 {
    font-size: 20px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
}

/* Submission Items */
.submissions-list,
.reviews-list,
.collaborations-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.submission-item,
.review-item,
.collaboration-item {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.submission-item:hover,
.review-item:hover,
.collaboration-item:hover {
    box-shadow: var(--shadow-subtle);
    transform: translateY(-2px);
}

.submission-header,
.review-header,
.collaboration-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.submission-title,
.review-title,
.collaboration-title {
    font-size: 16px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
}

.submission-status,
.review-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: var(--font-weight-normal);
}

.status-under-review {
    background: #fff3cd;
    color: #856404;
}

.status-accepted {
    background: #d4edda;
    color: #155724;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.submission-meta,
.review-meta,
.collaboration-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 13px;
    color: var(--text-light);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-gray);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.progress-fill {
    height: 100%;
    background: var(--text-dark);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-light);
}

.submission-actions,
.review-actions,
.collaboration-actions {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.action-button {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: var(--text-dark);
    color: var(--bg-white);
    border-color: var(--text-dark);
}

.action-button.primary {
    background: var(--text-dark);
    color: var(--bg-white);
    border-color: var(--text-dark);
}

.action-button.primary:hover {
    background: var(--text-primary);
}

/* Manuscripts Grid */
.manuscripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.manuscript-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.manuscript-card:hover {
    box-shadow: var(--shadow-subtle);
    transform: translateY(-4px);
}

.manuscript-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-sm);
}

.manuscript-title {
    font-size: 16px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.manuscript-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.manuscript-status {
    padding: 4px 8px;
    background: var(--border-gray);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.manuscript-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
}
/* Submission Form Styles */
.submission-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
}

.submission-form {
    padding: var(--spacing-xl);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-title {
    font-size: 24px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.authors-section {
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: var(--spacing-lg);
}

.author-item {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-gray);
}

.author-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.author-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.author-header h4 {
    font-size: 16px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin: 0;
}

.remove-author-btn {
    background: #ea4335;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.add-author-btn {
    background: transparent;
    border: 1px dashed var(--border-gray);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    margin-top: var(--spacing-md);
    transition: all 0.3s ease;
}

.add-author-btn:hover {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

/* File Upload Styles */
.upload-section {
    display: grid;
    gap: var(--spacing-lg);
}

.upload-area {
    border: 2px dashed var(--border-gray);
    border-radius: 8px;
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--text-dark);
    background: var(--bg-cream);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-sm);
}

.upload-area h4 {
    font-size: 16px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.upload-area p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.upload-button {
    background: var(--text-dark);
    color: var(--bg-white);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.upload-button:hover {
    background: var(--text-primary);
}

.uploaded-files {
    margin-top: var(--spacing-lg);
}

.uploaded-file {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-cream);
    border-radius: 4px;
    margin-bottom: var(--spacing-xs);
}

.file-icon {
    font-size: 24px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-size: 14px;
    font-weight: var(--font-weight-normal);
    color: var(--text-dark);
}

.file-meta {
    font-size: 12px;
    color: var(--text-light);
}

.file-actions {
    display: flex;
    gap: var(--spacing-xs);
}

/* Submission Summary */
.submission-summary {
    background: var(--bg-cream);
    border-radius: 8px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.submission-summary h4 {
    font-size: 18px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.summary-grid {
    display: grid;
    gap: var(--spacing-sm);
}

.summary-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--spacing-sm);
    font-size: 14px;
}

.summary-item strong {
    color: var(--text-dark);
    font-weight: var(--font-weight-normal);
}

.submission-agreements {
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: var(--spacing-lg);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-gray);
}

.nav-button {
    padding: 12px 24px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-button.primary {
    background: var(--text-dark);
    color: var(--bg-white);
    border-color: var(--text-dark);
}

.nav-button:hover:not(:disabled) {
    background: var(--text-dark);
    color: var(--bg-white);
    border-color: var(--text-dark);
}

.step-indicator {
    font-size: 14px;
    color: var(--text-light);
}

/* Repository Styles */
.repository-controls {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-xl);
}

.repository-results {
    max-width: 1200px;
    margin: 0 auto;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-gray);
}

.results-count {
    font-size: 14px;
    color: var(--text-light);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 14px;
}

.sort-options label {
    color: var(--text-light);
}

.sort-options select {
    padding: 4px 8px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 13px;
}

.repository-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.repository-item {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.repository-item:hover {
    box-shadow: var(--shadow-subtle);
    transform: translateY(-2px);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.item-title {
    font-size: 18px;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.item-type {
    padding: 4px 8px;
    background: var(--border-gray);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-authors {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-style: italic;
}

.item-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.item-abstract {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.item-metrics {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.metric {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 12px;
    color: var(--text-light);
}

.metric-icon {
    font-size: 14px;
}

.item-actions {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.pagination-btn,
.pagination-number {
    padding: 8px 12px;
    border: 1px solid var(--border-gray);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-number.active {
    background: var(--text-dark);
    color: var(--bg-white);
    border-color: var(--text-dark);
}

.pagination-btn:hover:not(:disabled),
.pagination-number:hover {
    background: var(--text-dark);
    color: var(--bg-white);
    border-color: var(--text-dark);
}

.pagination-ellipsis {
    color: var(--text-light);
    font-size: 14px;
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: var(--spacing-md);
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    padding: var(--spacing-sm) var(--spacing-md);
    box-shadow: var(--shadow-medium);
    z-index: 3000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #34a853;
}

.notification-error {
    border-left: 4px solid #ea4335;
}

.notification-info {
    border-left: 4px solid #4285f4;
}

.notification-warning {
    border-left: 4px solid #fbbc05;
}

/* Service Card Enhancement */
.service-card.peer-review-highlight {
    border: 2px solid var(--text-dark);
    position: relative;
}

.service-card.peer-review-highlight::before {
    content: 'NEW';
    position: absolute;
    top: -8px;
    right: var(--spacing-sm);
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: var(--font-weight-normal);
    letter-spacing: 1px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: var(--font-weight-normal);
    margin-top: var(--spacing-sm);
    transition: all 0.3s ease;
}

.service-link:hover {
    text-decoration: underline;
}

/* Responsive Design for Peer Review */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-nav {
        flex-wrap: wrap;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .repository-controls {
        padding: 0 var(--spacing-md);
    }
    
    .filter-container {
        flex-direction: column;
    }
    
    .results-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
    
    .item-actions {
        justify-content: center;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .submission-meta,
    .review-meta,
    .item-meta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .item-metrics {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}