/* Research Page Specific Styles */

.research-page {
    padding: 2rem 0;
}

.research-page h2 {
    font-size: 2.8rem;
    color: #222;
    text-align: center;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.research-page > .container > p {
    text-align: center;
    font-size: 1.25rem;
    color: #555;
    margin: 0 auto 3rem auto;
    max-width: 800px;
    line-height: 1.7;
}

/* Publications Section */
.publications-section {
    margin-bottom: 4rem;
}

.publications-section h3 {
    font-size: 2rem;
    color: #222;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.publications-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.publications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.paper-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.paper-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.paper-card h4 {
    font-size: 1.4rem;
    color: #222;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.paper-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.paper-status.in-progress {
    background: #222;
    color: #fff;
}

.paper-status.under-review {
    background: #555;
    color: #fff;
}

.paper-status.published {
    background: #333;
    color: #fff;
}

.paper-authors {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.paper-abstract {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.paper-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.paper-tag {
    background: #f0f0f0;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.paper-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.paper-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.paper-btn:hover {
    background: #444;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.paper-btn.secondary {
    background: transparent;
    color: #222;
    border: 2px solid #222;
}

.paper-btn.secondary:hover {
    background: #222;
    color: #fff;
}

/* Research Interests Section */
.research-interests-section {
    padding: 3rem 2rem;
    background-color: #f9f9f9;
    margin-top: 2rem;
}

.research-interests-section h3 {
    font-size: 2rem;
    color: #222;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.research-interests-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.research-interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.research-interest-item {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-interest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.research-interest-icon {
    width: 50px;
    height: 50px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    transition: transform 0.3s ease;
}

.research-interest-item:hover .research-interest-icon {
    transform: scale(1.1);
}

.research-interest-icon i {
    font-size: 1.2rem;
    color: #fff;
}

.research-interest-item h4 {
    font-size: 1.15rem;
    color: #222;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.research-interest-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Paper Reader Section */
.paper-reader-section {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.paper-reader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: #222;
    color: #fff;
    gap: 1rem;
}

.paper-reader-header h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    color: #fff;
}

.paper-reader-close {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.paper-reader-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
}

.paper-pdf-container {
    width: 100%;
    height: 800px;
}

.paper-pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Paper Figures Gallery */
.paper-figures-section {
    margin-bottom: 3rem;
    text-align: center;
}

.paper-figures-section h3 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.paper-figures-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.figures-gallery {
    max-width: 900px;
    margin: 0 auto;
}

.figure-viewer {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.figure-display {
    background: #fafafa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.figure-display img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 4px;
}

.figure-caption {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-style: italic;
    padding: 0 1rem;
}

.figure-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.figure-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.figure-nav-btn:hover {
    background: #444;
    transform: scale(1.1);
}

.figure-counter {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.figure-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem;
    scroll-behavior: smooth;
}

.figure-thumbnails .thumb {
    width: 80px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.figure-thumbnails .thumb:hover {
    opacity: 0.9;
    border-color: #999;
}

.figure-thumbnails .thumb.active {
    border-color: #222;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Scrollbar for thumbnails */
.figure-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.figure-thumbnails::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 2px;
}

.figure-thumbnails::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .research-page h2 {
        font-size: 2rem;
    }

    .research-page > .container > p {
        font-size: 1rem;
    }

    .publications-section h3,
    .research-interests-section h3 {
        font-size: 1.6rem;
    }

    .paper-header {
        flex-direction: column;
    }

    .paper-card h4 {
        font-size: 1.2rem;
    }

    .paper-card {
        padding: 1.5rem;
    }

    .research-interests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .paper-actions {
        flex-direction: column;
    }

    .paper-btn {
        justify-content: center;
    }

    .paper-reader-header {
        flex-direction: column;
        padding: 1rem 1.5rem;
    }

    .paper-reader-header h3 {
        font-size: 1rem;
    }

    .paper-pdf-container {
        height: 500px;
    }

    .figure-display {
        min-height: 200px;
    }

    .figure-display img {
        max-height: 300px;
    }

    .figure-thumbnails .thumb {
        width: 60px;
        height: 42px;
    }

    .paper-figures-section h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .paper-card {
        padding: 1rem;
    }

    .paper-card h4 {
        font-size: 1.1rem;
    }

    .paper-abstract {
        font-size: 0.9rem;
    }

    .research-interest-item {
        padding: 1rem;
    }

    .paper-pdf-container {
        height: 400px;
    }

    .figure-viewer {
        padding: 1rem;
    }
}
