/* ============================================
   Modern Project Page Stylesheet - Humanoid-GPT
   Fresh & Elegant Design
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-pink: #fe8e8e;
    --accent-mint: #9fd8ca;
    --accent-blue: #98d4e6;
    --accent-purple: #c8a4dd;
    --accent-gold: #ecd1aa;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-light: #fafafa;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

/* Base Styles */
body {
    font-family: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: var(--text-primary);
    line-height: 1.7;
}

/* Typography */
.sansfont {
    font-family: 'Inter', 'Noto Sans', sans-serif;
}

/* Button Styles */
.button.is-dark {
    background: var(--text-primary) !important;
    transition: var(--transition);
    border: none !important;
}

.button.is-dark:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: #1a202c !important;
}

.is-rounded {
    border-radius: 25px !important;
}

/* Cards */
.card-1 {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    border-radius: var(--border-radius);
    margin-bottom: 24pt;
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
}

.card-1:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-1 video,
.card-1 img {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    width: 100%;
}

.card-0 {
    margin-bottom: 32pt;
}

.card-content {
    padding: 16px 20px;
}

.prompt {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    height: auto;
    min-height: 2.5em;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Section Titles */
.title.is-3 {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 600 !important;
    font-size: 30px !important;
    letter-spacing: -0.3px;
    text-align: center !important;
    color: var(--text-primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem !important;
    position: relative;
    padding-bottom: 12px;
}

.title.is-3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.my-block {
    margin-bottom: 3.5rem;
}

/* Content */
.content.has-text-justified {
    text-align: justify;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.content.has-text-justified b,
.content.has-text-justified strong {
    color: var(--text-primary);
}

/* Image Styles */
.interpolation-image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.interpolation-image:hover {
    box-shadow: var(--shadow-hover);
}

/* Section Divider */
.section-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 0 auto 3rem;
}

/* Highlight Items */
.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 20px;
    margin-bottom: 10px;
    border-radius: 12px;
    transition: var(--transition);
    text-align: left;
}

.highlight-item:hover {
    background: rgba(102, 126, 234, 0.04);
}

.highlight-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.highlight-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.highlight-text b {
    color: var(--text-primary);
}

/* Comparison Table */
.comparison-table {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.comparison-table thead th {
    text-align: center !important;
    font-weight: 600;
    line-height: 1.3;
    background: linear-gradient(180deg, #f8fafc, #edf2f7);
    color: var(--text-primary);
    padding: 14px 12px;
    font-size: 14px;
    border-bottom: 2px solid var(--border-color);
}

.comparison-table tbody td {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    padding: 12px 12px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.comparison-table tbody td:first-child,
.comparison-table thead th:first-child {
    text-align: left;
    padding-left: 20px;
}

.comparison-table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.04);
}

.highlight-row {
    background: linear-gradient(90deg, #e8f5e9, #c8e6c9) !important;
    font-weight: 600;
}

.highlight-row td {
    color: #2e7d32 !important;
}

/* Caption */
.fig-caption {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.fig-caption b {
    color: var(--text-secondary);
}

/* Citation Block */
.bibtex-section .title {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 600 !important;
    font-size: 30px !important;
    text-align: center !important;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 1.5rem !important;
}

.bibtex-section .title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

pre code {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px 28px;
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    line-height: 1.7;
}

/* Footer */
footer.footer {
    background: transparent;
    padding: 2em;
    margin-top: 1rem;
}

footer.footer .content {
    color: var(--text-muted);
    font-size: 14px;
}

footer.footer a {
    color: var(--text-muted);
    transition: var(--transition);
}

footer.footer a:hover {
    color: var(--accent-pink);
}

/* Hero Section */
.hero-body {
    padding: 3rem 1.5rem 1.5rem;
}

.hero.teaser .hero-body {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

/* Publication Title */
.publication-title {
    line-height: 1.3;
}

/* Author Links */
.publication-authors a {
    color: #667eea !important;
    transition: var(--transition);
}

.publication-authors a:hover {
    color: #764ba2 !important;
    text-decoration: underline;
}

/* Slider */
.custom-slider2 {
    padding: 20px 0;
}

/* Section Background */
.section {
    background: transparent;
    padding-top: 1.5rem;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
}

/* Video Container Enhancement */
.video-container video {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

/* Rows Enhancement */
.rows .columns .column video {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .publication-title {
        font-size: 28px !important;
    }
    .publication-title span {
        font-size: 26px !important;
    }
    .highlight-item {
        padding: 10px 12px;
    }
    .title.is-3 {
        font-size: 24px !important;
    }
}
