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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background-color: #ffffff;
    padding: 60px 0 50px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 40px;
}

.paper-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
    line-height: 1.3;
}

.authors {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

.author {
    display: inline-block;
    margin-right: 10px;
    white-space: nowrap; /* Keep names from breaking awkwardly */
}

.author:after {
    content: ",";
}

.author:last-child:after {
    content: "";
}

.conference {
    margin-bottom: 30px;
    font-weight: 500;
    color: #0066cc;
}

.tag {
    background-color: #e6f2ff;
    color: #0066cc;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-left: 8px;
    vertical-align: middle;
}

/* Links / Buttons */
.links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.2s, background-color 0.2s;
}

.btn i {
    margin-right: 8px;
}

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

/* Sections */
.section {
    margin-bottom: 50px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #222;
}

/* Abstract */
.abstract-text {
    margin-bottom: 15px;
    text-align: justify;
}

/* Video */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
    margin-bottom: 10px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.caption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* Placeholder for images */
.image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed #ddd;
    border-radius: 8px;
    color: #888;
}

.figure-container {
    text-align: center;
    width: 100%;
    margin: 20px 0;
}

.figure-image {
    max-width: 100%;       /* Prevents image from overflowing the container */
    height: auto;          /* Maintains the correct aspect ratio */
    border-radius: 4px;    /* Optional: Slight rounding to match the design */
    display: block;        /* Removes inline spacing quirks */
    margin: 0 auto;        /* Centers the image */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Optional: Adds subtle depth */
}

/* Table Styles */
/* Table Styles - Bordered & Centered */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    text-align: center; /* Ensures the table element centers if it's not full width */
}

.results-table {
    width: 90%; /* Reduced from 100% to make centering visible */
    margin: 0 auto 10px auto; /* Centers the table horizontally */
    border-collapse: collapse;
    font-size: 0.9rem;
    border: 1px solid #333; /* Outer border */
    background-color: #fff;
}

.results-table caption {
    caption-side: top;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    text-align: center; /* Centers the caption text */
}

.results-table th, 
.results-table td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #ccc; /* Inner grid borders */
}

/* Header Specifics */
.results-table thead th {
    background-color: #f4f4f4; /* Light grey background for headers */
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #333; /* Stronger line under headers */
}

/* Column Specifics */
.results-table .col-method,
.results-table .method-name {
    text-align: left; /* Keeps method names readable */
    border-right: 2px solid #ddd; /* separation between method and data */
    min-width: 160px;
}

.results-table .method-name {
    color: #444;
}

/* Formatting for bold/italics in table */
.results-table strong {
    font-weight: 700;
    color: #000;
}

.results-table em {
    font-style: italic;
    color: #555;
}

/* Hover effect */
.results-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Subheader row styling */
.results-table .subheader-row td {
    background-color: #fcfcfc;
    font-weight: 600;
    color: #555;
    text-align: center;
    border-bottom: 2px solid #ddd;
}

/* BibTeX */
.bibtex-section pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.85rem;
    font-family: "Courier New", Courier, monospace;
    white-space: pre-wrap;
    color: #444;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-size: 0.9rem;
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .paper-title {
        font-size: 1.6rem;
    }
    .links {
        flex-direction: column;
        align-items: stretch;
    }
    .btn {
        justify-content: center;
    }
}
