/* UniVA Custom Styles - Based on original with unique touches */

/* Navigation Bar */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(19, 25, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(108, 133, 234, 0.3);
    z-index: 1000;
    padding: 10px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
}

.nav-links {
    display: flex;
    gap: 5px;
    background: rgba(28, 37, 58, 0.6);
    border-radius: 30px;
    padding: 5px;
}

.nav-link {
    color: #93a1b3;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
    min-width: 90px;
    text-align: center;
}

.nav-link:hover {
    background: linear-gradient(135deg, #FF6B6B 0%, #6285EA 100%);
    color: white;
}

.nav-link.active {
    background: linear-gradient(135deg, #FF6B6B 0%, #6285EA 100%);
    color: white;
}

/* Main title with unique gradient */
h1.univa-main-title {
    margin-top: 100px;
    font-size: 3em;
    font-family: 'GeForce';
    background: linear-gradient(90deg, #FF6B6B 0%, #6285EA 25%, #6DE2B4 50%, #FFD93D 75%, #FF6B6B 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    padding: 20px;
    padding-top: 60px;
    padding-bottom: 15px;
    padding-left: 30px;
    padding-right: 30px;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Buttons with red accent */
.univa-button {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    color: #666;
    background-color: #EAF2FD;
    text-decoration: none;
    transition: all 0.3s;
    align-items: center;
    display: flex;
}

.univa-button:hover {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8787 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.univa-button img {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.univa-button:hover img {
    filter: brightness(0) invert(1);
}

/* News container with red accent */
.univa-news-container {
    padding: 20px;
    font-weight: bold;
    color: #EAF2FD;
    background-color: #1c253a;
    display: inline-flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    border-radius: 20px;
    width: auto;
    max-width: 80%;
    text-align: left;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.univa-news-container h3 {
    margin-bottom: 10px;
    padding: 0;
    margin: 0;
    background: linear-gradient(90deg, #FF6B6B 0%, #6285EA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.univa-news-container p {
    margin: 0;
    padding: 0;
    color: #93a1b3;
}

.univa-news-container p:first-of-type {
    color: #FFD93D;
}

/* Section numbers with red gradient */
.section-badge {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8787 100%);
    color: white;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
    margin-right: 15px;
    font-size: 1.2em;
}

/* Highlight sections */
.highlight-red {
    background-color: rgba(255, 107, 107, 0.05);
}

/* Accent colors */
.accent-red {
    color: #FF6B6B;
}

.accent-blue {
    color: #6285EA;
}

.accent-green {
    color: #6DE2B4;
}

/* Task sections */
.task-section {
    scroll-margin-top: 80px;
}

/* Authors with better spacing */
.authors-section {
    margin: 30px auto 20px;
    max-width: 1200px;
    text-align: center;
}

.authors-list {
    margin-bottom: 20px;
    font-size: 1.15em;
    line-height: 2;
}

.author-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.author-name {
    color: #6DE2B4;
    margin: 0 8px;
    transition: all 0.3s;
}

.author-name:hover {
    color: #FF6B6B;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.author-name sup {
    color: #FFD93D;
    font-size: 0.75em;
    margin-left: 2px;
}

.affiliations {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.95em;
    color: #93a1b3;
}

.affiliation {
    display: inline-block;
}

.affiliation sup {
    color: #FF6B6B;
    font-weight: bold;
    margin-right: 3px;
}

.equal-contribution {
    margin-top: 15px;
    font-size: 0.9em;
    color: #7a8b9c;
    font-style: italic;
}

.equal-contribution sup {
    color: #FFD93D;
    margin-right: 3px;
}

.author-link {
    color: #6DE2B4;
    text-decoration: none;
    margin: 0 6px;
    transition: all 0.3s;
}

.author-link:hover {
    color: #FF6B6B;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.author-link sup {
    color: #FFD93D;
    font-size: 0.8em;
}

.institutions {
    font-size: 1em;
    color: #7a8b9c;
    margin-top: 15px;
    line-height: 1.8;
}

.institution {
    margin: 0 6px;
    display: inline-block;
}

.institution sup {
    color: #FF6B6B;
    font-weight: bold;
}

/* Video placeholder labels */
.video-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 107, 107, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
    z-index: 10;
}

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

/* Video Gallery Carousel Styles - DEPRECATED (replaced with single column layout)
.video-gallery-carousel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(28, 37, 58, 0.4);
    border: 1px solid rgba(108, 133, 234, 0.2);
    backdrop-filter: blur(10px);
}

.gallery-carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-carousel-item {
    min-width: 100%;
    padding: 30px;
    box-sizing: border-box;
}
*/

.gallery-carousel-item h3 {
    color: #08C5FF;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.input-output-pair {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.input-side,
.output-side {
    flex: 1;
    background: rgba(19, 25, 39, 0.6);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(108, 133, 234, 0.1);
}

.input-side h4,
.output-side h4 {
    color: #6DE2B4;
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 15px;
    font-family: 'GeForce';
}

.input-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(108, 133, 234, 0.3);
}

.input-text {
    color: #EAF2FD;
    font-size: 0.95em;
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

.input-video {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #1c253a;
}

/* Gallery video container styles */
.gallery-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: #1c253a;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-video-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.gallery-play-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    backdrop-filter: blur(5px);
}

.gallery-play-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.gallery-play-btn img {
    width: 20px;
    height: 20px;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.gallery-video {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(108, 133, 234, 0.3);
    background: #1c253a;
}

/* Gallery Carousel Controls - DEPRECATED (replaced with single column layout)
.gallery-carousel-ctrl {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(19, 25, 39, 0.8);
    border-top: 1px solid rgba(108, 133, 234, 0.2);
}

.gallery-carousel-btn {
    background: rgba(108, 133, 234, 0.2);
    border: 1px solid rgba(108, 133, 234, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-carousel-btn:hover {
    background: rgba(108, 133, 234, 0.4);
    transform: scale(1.1);
}

.gallery-carousel-btn img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.gallery-dots-container {
    display: flex;
    gap: 10px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(108, 133, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: #08C5FF;
    transform: scale(1.2);
}
*/

/* Video Gallery List Styles - Single Column Layout */
.video-gallery-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-item {
    background: rgba(28, 37, 58, 0.4);
    border: 1px solid rgba(108, 133, 234, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-item:last-child {
    margin-bottom: 0;
}

.gallery-item h3 {
    color: #08C5FF;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

/* Responsive design for gallery carousel */
@media (max-width: 768px) {
    .input-output-pair {
        flex-direction: column;
        gap: 20px;
    }

    .gallery-carousel-item {
        padding: 20px;
    }

    .input-side,
    .output-side {
        padding: 15px;
    }
}

/* Input video play button styling */
.input-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 100;
    transition: all 0.3s ease;
    pointer-events: all;
}

.input-video-play-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Ensure video containers are properly positioned */
.input-side video,
.output-side video {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.input-side {
    position: relative;
    z-index: 1;
}

/* Force video to be clickable */
video {
    pointer-events: auto;
}

/* Debug styles - remove these after testing */
.gallery-video {
    border: 2px solid #6DE2B4 !important;
}

.input-video {
    border: 2px solid #FF6B6B !important;
}