/* ============================================
   Modern Project Page Stylesheet - OmniSpatial
   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: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    color: var(--text-primary);
    line-height: 1.7;
}

/* Typography */
.shakefont {
    font-size: 38px;
    display: inline-block;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .shakefont {
        font-size: 24px;
    }
}

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

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

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

/* Sections */
.title.is-3 {
    font-weight: 600 !important;
    color: var(--text-primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* 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);
}

/* Tables - Leaderboard */
.mathvista-table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.mathvista-table thead th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.mathvista-table tbody td {
    border-color: var(--border-color);
}

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

.gold-medal {
    background: linear-gradient(90deg, #fff9e6, #fff3cc) !important;
}

.silver-medal {
    background: linear-gradient(90deg, #f8f9fa, #e9ecef) !important;
}

.bronze-medal {
    background: linear-gradient(90deg, #fff5eb, #ffe8d6) !important;
}

.gold-medal td:nth-child(-n+2),
.silver-medal td:nth-child(-n+2),
.bronze-medal td:nth-child(-n+2) {
    font-weight: 700;
    color: var(--accent-pink);
}

/* Citation Block */
pre code {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px 24px;
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Footer */
footer.footer {
    background: transparent;
    padding: 2em;
}

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);
}

/* Animations */
@keyframes bounce1 {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes bounce2 {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-8px); }
}

@keyframes bounce3 {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-4px); }
}

.word1 { animation: bounce1 1s infinite; }
.word2 { animation: bounce2 2s infinite; }
.word3 { animation: bounce3 3s infinite; }
.word4 { animation: bounce1 1.5s infinite; }

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

.hero.teaser .hero-body {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* 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;
}

/* Navbar */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.navbar-item {
    font-weight: 500;
}

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

/* Section Background */
.section {
    background: transparent;
}

/* Container */
.container.is-fullhd {
    padding: 0 2rem;
}

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

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