/* Manuscripts Page Styles */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.manuscripts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
}

.manuscripts-header {
    text-align: center;
    margin-bottom: 50px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-bottom: 30px;
}

.manuscripts-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #713d0f;
    margin-bottom: 10px;
}

.manuscripts-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.manuscripts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.manuscript-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.manuscript-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a69279, #8b705f);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.manuscript-section:hover::before {
    transform: scaleX(1);
}

.manuscript-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.manuscript-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    will-change: transform;
}

.manuscript-item:hover {
    background: rgba(166, 144, 121, 0.05);
    transform: translateX(5px);
}

.manuscript-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #a69f79;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.manuscript-item:hover::after {
    transform: scaleY(1);
}

.manuscript-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.manuscript-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.manuscript-authors {
    font-size: 1rem;
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
}

.manuscript-date {
    font-size: 0.9rem;
    color: #a69979;
    font-weight: 500;
    margin-bottom: 15px;
}

.manuscript-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #a69279;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.manuscript-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.manuscript-link:hover::before {
    left: 100%;
}

.manuscript-link:hover {
    background: #8b755f;
    transform: translateY(-2px);
}

.manuscript-abstract {
    font-size: 0.95rem;
    color: #555;
}

.manuscript-abstract strong {
    color: #333;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #a69c79;
    border: 2px solid #a69d79;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.back-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #a69379;
    transition: left 0.3s ease;
    z-index: -1;
}

.back-link:hover::before {
    left: 0;
}

.back-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(151, 166, 121, 0.3);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #a69079;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #8b775f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .manuscripts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .manuscripts-container {
        padding: 20px 15px;
    }
    
    .manuscripts-title {
        font-size: 2rem;
    }
    
    .manuscript-section {
        padding: 20px;
    }
    
    .manuscript-title {
        font-size: 1.1rem;
    }
    
    .manuscripts-header {
        position: relative;
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }
} 