/* Papers Page Specific Styles */

.papers-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.papers-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 100px 0 2rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #0065BD;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0065BD 0%, #003359 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.filter-tab:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: #0065BD;
    color: white;
    border-color: #0065BD;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 101, 189, 0.3);
}

/* Year Sections */
.papers-year-section {
    margin-bottom: 4rem;
}

.year-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0065BD;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.year-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, #0065BD, #003359);
    border-radius: 2px;
}

/* Papers Grid */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Paper Cards */
.paper-card {
    opacity: 1;
    transition: all 0.3s ease;
}

.paper-card .card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.paper-card .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 101, 189, 0.15);
    border-color: #0065BD;
}

.paper-card .card-image {
    position: relative;
    /* Remove fixed height, use aspect-ratio for elegant sizing */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paper-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.paper-card .card:hover .card-image img {
    transform: scale(1.05);
}

/* Paper Type Badge */
.paper-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 101, 189, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.paper-card .card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.paper-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.paper-card .card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.paper-card .card-category {
    background: #e3f2fd;
    color: #0065BD;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.paper-card .card-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.paper-card .authors {
    font-style: italic;
    color: #0065BD;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.paper-card .card-text p:not(.authors) {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.paper-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0065BD;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.2rem;
    border: 2px solid #0065BD;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.paper-card .read-more:hover {
    background: #0065BD;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 101, 189, 0.3);
}

/* Statistics Section */
.papers-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #0065BD;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .papers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .papers-container {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .papers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .paper-card .card-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Let aspect-ratio control height responsively */
    .paper-card .card-image {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .year-title {
        font-size: 2rem;
    }
    
    .paper-card .card-text h3 {
        font-size: 1.1rem;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-tab {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    /* Maintain aspect ratio; reduce padding on small screens */
    .paper-card .card-image {
        padding: 6px;
    }
}

/* Dark mode support - Commented out to maintain white background
@media (prefers-color-scheme: dark) {
    .paper-card .card {
        background: #1e1e1e;
        border-color: #333;
    }

    .paper-card .card-text h3 {
        color: #fff;
    }

    .paper-card .card-text p:not(.authors) {
        color: #ccc;
    }

    .section-subtitle {
        color: #ccc;
    }

    .papers-stats {
        background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    }

    .stat-label {
        color: #ccc;
    }
}
*/
