/* Project Page Specific Styles */

.project-main {
    padding-top: 3em;
    min-height: 100vh;    
}

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

/* Header Section */
.project-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.more-works {
    margin-bottom: 30px;
}

.more-works a {
    color: #6b7280;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.more-works a:hover {
    color: #3182ce;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #1a202c;
}

/* Award Styles */
.project-award {
    display: block;
    color: #d97706;
    font-weight: 400;
    font-size: 1.5rem;
    text-align: center;
    /*margin-top: 0.4rem;*/
    /* margin-bottom: 1.5rem; */
}

.project-award .award-emoji {
    font-style: normal;
}

.project-award .award-text {
    font-style: italic;
}

.project-authors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 1rem;
}

.author-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-name {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    color: #2d3748;
}

.author-email {
    font-size: 1.1rem;
    color: #4a5568;
    font-style: italic;
}

.project-affiliation {
    font-size: 1.3rem;
    color: #4a5568;
    /* margin-bottom: 0.3rem; */
}

.project-venue {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.2rem;
}

/* Tooltip for equal contribution indicator */
.equal-contrib-indicator {
    cursor: help;
    position: relative;
    color: inherit;
}

.equal-contrib-indicator:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: #2d3748;
    color: white;
    font-size: 0.75rem;
    white-space: nowrap;
    border-radius: 4px;
    z-index: 1000;
    margin-top: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.equal-contrib-indicator:hover::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: #2d3748;
    margin-top: 1px;
    z-index: 999;
    pointer-events: none;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 1.4rem;
    align-items: center;
}

.project-links .btn {
    min-width: 100px;
    padding: 10px 20px;
}

.hf-logo {
    width: 1.6em;
    height: 1.6em;
    vertical-align: text-bottom;
}

/* Content Section */
.project-content {
    margin-bottom: 40px;
}

.project-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a202c;
    text-align: center;
}

.project-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
    /* text-align: center; */
}

.project-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
    /* text-align: center; */
}

.project-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #374151;
}

.project-content .abstract {
    background-color: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #3182ce;
}

.project-content .abstract p {
    margin-bottom: 0;
}

/* Figures and Images */
.project-figure {
    margin: 2rem 0;
    text-align: center;
}

.project-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
}

.project-figure.wide {
    margin-left: -100px;
    margin-right: -100px;
}

/* Lists */
.project-content ul {
    list-style-type: disc;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
}

.project-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #374151;
}

.project-content ol {
    padding-left: 1.75rem;
    margin-bottom: 1rem;
}

.project-content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #374151;
}

/* Citation Section */
.project-citation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.project-citation h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

.bibtex-container {
    position: relative;
    background-color: #f7fafc;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.bibtex-container pre {
    margin: 0;
    padding: 0;
    background: transparent;
    overflow-x: auto;
}

.bibtex-container code {
    font-family: 'Fira Code', 'Monaco', 'Cascadia Code', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #2d3748;
    background: transparent;
    padding: 0;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 6px 14px;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background-color: #2c5282;
    transform: translateY(-1px);
}

/* Footer */
.project-footer {
    background-color: #f7fafc;
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-footer a {
    color: #3182ce;
    text-decoration: underline;
}

.project-footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .vision-module-flex {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .vision-module-item {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .project-title {
        font-size: 2rem;
    }

    .project-authors {
        font-size: 1rem;
    }

    .project-links {
        flex-direction: column;
        align-items: stretch;
    }

    .project-links .btn {
        width: 100%;
    }

    .project-figure.wide {
        margin-left: 0;
        margin-right: 0;
    }

    .project-content h2 {
        font-size: 1.5rem;
    }

    .project-content h3 {
        font-size: 1.25rem;
    }
    
    .video-section {
        margin: 2rem auto;
    }
    
    .video-section video {
        border-radius: 8px;
    }
}

/* Video Section */
.video-section {
    margin: 3rem auto;
    text-align: center;
    max-width: 1000px;
}

.video-section video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-section figcaption {
    margin-top: 1rem;
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

.video-section figcaption a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.video-section figcaption a:hover {
    color: #5568d3;
    transform: translateX(4px);
}

/* Highlight boxes for key information */
.info-box {
    background-color: #eff6ff;
    border-left: 4px solid #3182ce;
    padding: 1.25rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.info-box h3 {
    margin-top: 0;
    color: #1e40af;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Grid layout for features/applications */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.feature-card {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.feature-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.feature-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #1a202c;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #4a5568;
}

