/* Publications Section Styles */
.publications-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gradient-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #0070f3, #6b46c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Timeline and Year Sections */
.publications-timeline {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.year-section {
    margin-bottom: 4rem;
}

.year-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.year-title {
    font-size: 2rem;
    font-weight: bold;
    color: #0f172a;
    margin-right: 1.5rem;
    min-width: 100px;
}

.year-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, #0070f3, #6b46c1);
    opacity: 0.3;
}

/* Publication Cards */
.publication-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.publication-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.pub-type {
    margin-bottom: 1rem;
}

.pub-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.pub-badge.conference {
    background: #dbeafe;
    color: #1e40af;
}

.pub-badge.thesis {
    background: #fae8ff;
    color: #86198f;
}

.pub-badge.book {
    background: #dcfce7;
    color: #166534;
}

.pub-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.pub-authors {
    color: #475569;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.pub-venue {
    color: #64748b;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pub-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.download-link {
    display: inline-flex;
    align-items: center;
    color: #0070f3;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.download-link i {
    margin-right: 0.5rem;
}

.download-link:hover {
    color: #0051b3;
}

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

.publication-card {
    animation: fadeIn 0.6s ease backwards;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .publications-section {
        background: #0f172a;
    }

    .year-title {
        color: #f1f5f9;
    }

    .publication-card {
        background: #1e293b;
    }

    .pub-title {
        color: #f1f5f9;
    }

    .pub-authors {
        color: #cbd5e1;
    }

    .pub-venue {
        color: #94a3b8;
    }

    .download-link {
        color: #60a5fa;
    }

    .download-link:hover {
        color: #93c5fd;
    }

    .pub-badge {
        opacity: 0.9;
    }

    .pub-actions {
        border-color: #334155;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .publications-section {
        padding: 4rem 0;
    }

    .gradient-title {
        font-size: 2rem;
    }

    .year-title {
        font-size: 1.75rem;
        min-width: 80px;
    }

    .publication-card {
        padding: 1.25rem;
    }

    .pub-title {
        font-size: 1.1rem;
    }
}

/* Loading States */
.publication-card.loading {
    position: relative;
    overflow: hidden;
}

.publication-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}
