/* Modern CSS Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Typography Enhancements */
h1 {
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    word-spacing: 4px;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 10px;
}

h2 {
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    margin-top: 30px;
    margin-bottom: 20px;
}

h3 {
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    transform: rotate(270deg);
    position: relative;
    left: 100px;
    color: #34495e;
}

h4 {
    font-family: "Indie Flower", Arial, cursive;
    font-size: 20px;
    transform: rotate(270deg);
    position: relative;
    left: 100px;
    color: #34495e;
}

h5 {
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 15px;
}

p {
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

li {
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 8px;
}

/* Link Styling */
a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

ul {
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
}

ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

ul li a {
    font-weight: 500;
    font-size: 17px;
}

/* Horizontal Rule */
hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 40px 0;
    background: none;
}

/* Table Styling */
.result-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.result-table th {
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    padding: 18px 12px;
    text-align: center;
    background-color: #f5f7fa;
    border-bottom: 2px solid #e0e0e0;
}

.result-table td {
    padding: 20px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.result-table tr:last-child td {
    border-bottom: none;
}

/* Baseline comparison - fixed height containers */
#comparisons-tab .video-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.2s ease;
}

/* Video Container and Styling */
.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    transition: transform 0.2s ease;
}

.video-container:hover {
    transform: translateY(-2px);
}

.result-video {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    display: block;
    max-width: 100%;
    height: auto;
}

.result-video:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: scale(1.01);
}

.video-label {
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* Prompt Title Styling */
.prompt_title {
    font-family: "Indie Flower", Arial, cursive;
    font-size: 22px;
    color: #34495e;
    font-weight: 500;
}

.prompt_title_local {
    font-family: "Indie Flower", Arial, cursive;
    font-size: 22px;
    color: #27ae60;
    font-weight: 700;
    text-decoration: underline;
}

/* Section Spacing */
p + p {
    margin-top: 10px;
}

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

/* Project Page Specific Styles */
.header-container {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 40px;
}

.subtitle {
    font-size: 24px;
    font-weight: 500;
    color: #555;
    margin-top: 0;
    margin-bottom: 20px;
}

.authors {
    font-size: 18px;
    margin-bottom: 10px;
}

.author {
    margin: 0 10px;
    white-space: nowrap;
}

.author a {
    color: #2c3e50;
    font-weight: 600;
}

.author sup {
    color: #7f8c8d;
    margin-left: 2px;
}

.affiliations {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.affiliation {
    margin: 0 15px;
    white-space: nowrap;
}

.affiliation sup {
    margin-right: 3px;
}

.links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.link-btn:hover {
    background-color: #555;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.link-btn.disabled {
    background-color: #999;
    cursor: not-allowed;
}

.link-btn .icon {
    margin-right: 8px;
    font-size: 18px;
}

.section {
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.abstract-text {
    text-align: justify;
}

.pipeline-image-container {
    text-align: center;
    margin: 30px 0;
}

.pipeline-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.bibtex-container {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #ddd;
}

.bibtex-container pre {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 26px;
    }
    
    .teaser-grid {
        flex-direction: column;
    }
    
    .result-table {
        font-size: 14px;
    }
    
    .result-table th,
    .video-label {
        font-size: 16px;
    }
    
    .result-video {
        width: 100% !important;
    }
}
