/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 2rem 0;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.nav-brand {
    text-align: center;
}

.nav-brand h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.nav-brand p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.nav-links a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2563eb;
    background-color: #eff6ff;
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.profile-section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
}

.profile-image {
    width: 200px;
    height: 200px;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

.profile-info h2 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.profile-info p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-info {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

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

/* Inline Links (for links within text content) */
.profile-info p a,
.news-content p a,
.description a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.profile-info p a:hover,
.news-content p a:hover,
.description a:hover {
    background-color: #eff6ff;
    border-bottom: 1px solid #2563eb;
    transform: translateY(-1px);
}

/* Buttons */
.btn {
    background: #2563eb;
    color: white;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Research Section */
.research {
    padding: 4rem 0;
}

.research h2 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.research-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.research-item h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.research-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* News Section */
.news {
    padding: 4rem 0;
    background: #f9fafb;
}

.news h2 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.news-container {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.news-icon {
    font-size: 1.5rem;
}

.date-text {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem;
}

.news-content h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.news-content p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* News Filters */
.news-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e5e7eb;
}

.filter-btn.active {
    background: #2563eb;
    color: white;
}

/* Papers Controls */
.papers-controls {
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.papers-search {
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.papers-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Conference Controls */
.conference-controls {
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.conference-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group label {
    font-weight: 500;
    color: #374151;
    min-width: 120px;
}

/* Enhanced Status Badges */
.status {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-published {
    background: #d1fae5;
    color: #065f46;
}

.status-under-review, .status-review {
    background: #fef3c7;
    color: #92400e;
}

.status-preprint {
    background: #dbeafe;
    color: #1e40af;
}

.status-progress, .status-in-progress {
    background: #e0e7ff;
    color: #3730a3;
}

.status-default {
    background: #f3f4f6;
    color: #374151;
}

/* Button Variants */
.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .news-date {
        flex-direction: row;
        justify-content: flex-start;
        min-width: auto;
    }
    
    .conference-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .conference-date {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group label {
        min-width: auto;
    }
    
    .papers-filters,
    .news-filters {
        justify-content: center;
    }
}

/* Page Header */
.page-header {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.page-header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Papers Section */
.papers-section {
    padding: 3rem 0;
}

.papers-section h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.papers-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.paper-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.paper-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

.paper-item h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

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

.venue {
    color: #2563eb;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.abstract {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.paper-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status {
    background: #fbbf24;
    color: #92400e;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Conferences Section */
.conferences-section {
    padding: 3rem 0;
}

.conferences-section h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.conferences-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.conference-item {
    display: flex;
    gap: 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.conference-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

.conference-item.upcoming {
    border-left: 4px solid #10b981;
    background: #f0fdf4;
}

.conference-item.past {
    border-left: 4px solid #6b7280;
}

.conference-date {
    min-width: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.conference-date .month {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2563eb;
}

.conference-date .year {
    font-size: 0.9rem;
    color: #6b7280;
}

.conference-info h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.location, .presentation-type {
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.title {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.description {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.conference-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Service Section */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.service-item h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-item ul {
    list-style: none;
}

.service-item li {
    color: #4b5563;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.service-item li::before {
    content: "•";
    color: #2563eb;
    position: absolute;
    left: 0;
}

/* Footer */
footer {
    background: #1f2937;
    color: #9ca3af;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .profile-image {
        margin: 0 auto;
    }
    
    .news-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .conference-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .conference-date {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .service-list {
        grid-template-columns: 1fr;
    }
    
    .links {
        justify-content: center;
    }
}

/* Paper Details Page Styles */
.paper-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #2563eb;
}

.paper-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 3rem;
}

.paper-title {
    font-size: 2.2rem;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.paper-authors {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.paper-venue {
    font-size: 1rem;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 1rem;
}

.paper-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.detail-section {
    margin-bottom: 3rem;
}

.detail-section h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.abstract-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    background: #f9fafb;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.resource-item.available {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.resource-item.available:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.resource-item.unavailable {
    background: #fef2f2;
    border-color: #fecaca;
    opacity: 0.7;
}

.resource-icon {
    font-size: 2rem;
}

.resource-info h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.resource-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.resource-link:hover {
    text-decoration: underline;
}

.resource-unavailable {
    color: #9ca3af;
    font-size: 0.9rem;
}

.citation-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.citation-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.citation-tab {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s ease;
}

.citation-tab.active,
.citation-tab:hover {
    background: #2563eb;
    color: white;
}

.citation-content {
    position: relative;
}

.citation-format {
    display: none;
    background: #1f2937;
    color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.citation-format.active {
    display: block;
}

.copy-citation-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.copy-citation-btn:hover {
    background: #1d4ed8;
}

.github-info {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.github-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.github-header h3 {
    color: #1f2937;
    margin: 0;
}

.repo-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.repo-stat {
    color: #6b7280;
    font-size: 0.9rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Responsive Design for Paper Details */
@media (max-width: 768px) {
    .paper-title {
        font-size: 1.8rem;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .citation-tabs {
        flex-wrap: wrap;
    }
    
    .github-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .repo-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}
