/* Research Pages Styles - 2025 PREMIUM EDITION */
/* Author: Ing. Róbert Polák - RoboPol.sk */

/* Language switching - hide inactive language */
[data-lang]:not([data-lang-switch]) {
    display: none !important;
}

html[lang="sk"] [data-lang="sk"]:not([data-lang-switch]) {
    display: block !important;
}

html[lang="en"] [data-lang="en"]:not([data-lang-switch]) {
    display: block !important;
}

html[lang="sk"] a[data-lang="sk"],
html[lang="en"] a[data-lang="en"] {
    display: inline !important;
}

html[lang="sk"] .hero-logo img[data-lang="sk"],
html[lang="en"] .hero-logo img[data-lang="en"] {
    display: block !important;
}

html[lang="sk"] li[data-lang="sk"],
html[lang="en"] li[data-lang="en"] {
    display: flex !important;
}

/* ====================================================
   BACKGROUND ATMOSPHERE - TEAL ONLY
   ==================================================== */
body {
    background-color: var(--background);
    background-image:
        radial-gradient(ellipse at 10% 20%, rgba(10, 186, 181, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(10, 186, 181, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ====================================================
   HERO SECTION WITH AURORA BACKGROUND - PURE CSS
   ==================================================== */
/* ====================================================
   HERO SECTION WITH AURORA BACKGROUND - PREMIUM SYNCED
   ==================================================== */
.research-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 2rem 80px 2rem;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0e1a 0%, #0b1121 50%, #0d1526 100%);
}

/* Hero glow - disabled for cleaner look */
.hero-glow {
    display: none;
}

/* Hide canvas - not needed */
#heroFractalCanvas {
    display: none;
}

/* Aurora Layer 1 - Subtle Teal Only */
.research-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(90deg,
            transparent 0%,
            rgba(10, 186, 181, 0.03) 5%,
            rgba(10, 186, 181, 0.12) 10%,
            rgba(0, 120, 115, 0.05) 15%,
            transparent 20%);
    background-size: 200% 100%;
    filter: blur(40px);
    opacity: 0.5;
    mix-blend-mode: screen;
    animation: auroraCurtain 40s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
    transform-origin: top center;
}

/* Aurora Layer 2 - Subtle teal accents */
.research-hero::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background:
        radial-gradient(ellipse at 50% 0%,
            rgba(10, 186, 181, 0.08) 0%,
            rgba(0, 100, 95, 0.05) 50%,
            transparent 80%);
    filter: blur(60px);
    opacity: 0.4;
    mix-blend-mode: screen;
    animation: auroraWave 60s linear infinite;
    z-index: 0;
    pointer-events: none;
}

/* bottom glow line moved to separate class */
.research-hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary-color) 30%,
            var(--primary-color) 70%,
            transparent 100%);
    box-shadow: 0 0 30px var(--primary-color);
    z-index: 10;
    pointer-events: none;
}

@keyframes auroraCurtain {
    0% {
        transform: scaleY(1) skewX(-12deg) translateX(-15%);
        opacity: 0.3;
    }

    50% {
        transform: scaleY(1.3) skewX(8deg) translateX(0%);
        opacity: 0.8;
    }

    100% {
        transform: scaleY(1.1) skewX(-6deg) translateX(15%);
        opacity: 0.4;
    }
}

@keyframes auroraWave {
    0% {
        background-position: 0% 0%;
        transform: rotate(0deg);
    }

    100% {
        background-position: 100% 100%;
        transform: rotate(2deg);
    }
}

.research-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 5;
    text-shadow: 0 0 80px rgba(10, 186, 181, 0.5);
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.research-hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 900px;
    margin: 0 auto 2.5rem;
    color: var(--light-text);
    line-height: 1.9;
    position: relative;
    z-index: 5;
}

/* ====================================================
   RESEARCH CONTENT - WIDE LAYOUT
   ==================================================== */
.research-content {
    padding: 100px 2rem;
    background: transparent;
    position: relative;
    z-index: 1;
}

.research-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* ====================================================
   GLASSMORPHISM CARDS - TEAL ACCENT
   ==================================================== */
.research-section {
    background: rgba(11, 17, 33, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 4rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    overflow: hidden;
}

/* Top accent line - always visible */
.research-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.research-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 2rem;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

html[lang="sk"] .research-section h2[data-lang="sk"],
html[lang="en"] .research-section h2[data-lang="en"] {
    display: flex !important;
    align-items: center !important;
}

.research-section h2::before {
    content: '';
    display: block;
    width: 6px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 3px;
    box-shadow: 0 0 20px var(--primary-color);
    flex-shrink: 0;
}

.research-section h3 {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    margin: 3rem 0 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.research-section p {
    margin-bottom: 1.75rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.research-section ul,
.research-section ol {
    margin-bottom: 2rem;
    padding-left: 0;
}

.research-section li {
    margin-bottom: 1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 2rem;
    position: relative;
    list-style: none;
    font-size: 1.05rem;
}

.research-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.research-section img {
    max-width: 100%;
    height: auto;
    margin: 2.5rem 0;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.research-figure {
    max-width: 980px;
    margin: 2.75rem auto;
}

.research-figure img {
    display: block;
    width: 100%;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(10, 186, 181, 0.22);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.research-figure figcaption {
    margin-top: 0.9rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.research-note-box {
    background: linear-gradient(135deg, rgba(10, 186, 181, 0.12), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(10, 186, 181, 0.26);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}

.research-section .image-caption {
    text-align: center;
    font-style: italic;
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
    color: var(--light-text);
    font-size: 0.95rem;
    opacity: 0.7;
}

.research-video-section {
    background: linear-gradient(135deg, rgba(10, 186, 181, 0.14), rgba(255, 255, 255, 0.035));
    border-color: rgba(10, 186, 181, 0.32);
}

.research-video-section .research-video-embed {
    display: block;
    position: relative;
    width: min(100%, 1120px);
    max-width: 1120px;
    aspect-ratio: 16 / 9;
    margin: 2.25rem auto 1.75rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(10, 186, 181, 0.32);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45), 0 0 40px rgba(10, 186, 181, 0.12);
    background: #050914;
}

.research-video-section .research-video-embed iframe {
    display: block;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.research-video-link {
    text-align: center;
    margin-bottom: 0;
}

.research-video-link a {
    display: inline-flex !important;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.research-video-link a:hover {
    color: #fff;
}

/* ====================================================
   PUBLICATION LINKS
   ==================================================== */
.publication-links {
    background: linear-gradient(135deg, rgba(10, 186, 181, 0.12) 0%, transparent 100%);
    border: 1px solid rgba(10, 186, 181, 0.25);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.publication-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.publication-links::after {
    content: '📄';
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    opacity: 0.3;
}

.publication-links h3 {
    margin-top: 0;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1.75rem;
}

.publication-links ul {
    list-style-type: none;
    padding-left: 0;
}

.publication-links li {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    padding-left: 0;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.25rem;
    border-radius: 12px;
}

.publication-links li::before {
    display: none;
}

.publication-links li i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.publication-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 1.05rem;
}

.publication-links a:hover {
    color: #fff;
}

/* ====================================================
   AUTHOR INFO
   ==================================================== */
.author-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 4rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(10, 186, 181, 0.1) 0%, transparent 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(10, 186, 181, 0.25);
    position: relative;
    overflow: hidden;
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(10, 186, 181, 0.4);
    position: relative;
    z-index: 1;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-bio {
    position: relative;
    z-index: 1;
}

.author-bio h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
    color: #fff;
    font-weight: 700;
}

.author-bio p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.7;
}

/* ====================================================
   RELATED RESEARCH
   ==================================================== */
.related-research {
    padding: 100px 2rem;
    background: rgba(11, 17, 33, 0.3);
    position: relative;
}

.related-research h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    font-weight: 700;
}

.related-research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.related-research-item {
    background: rgba(11, 17, 33, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

/* Top accent line - always visible */
.related-research-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.related-research-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.related-research-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(11, 17, 33, 0.9));
}

.related-research-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-research-content {
    padding: 2rem 2.5rem 2.5rem;
}

.related-research-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.4;
}

.related-research-content p {
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
    color: var(--light-text);
    line-height: 1.8;
}

.related-research-content a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.related-research-content a::after {
    content: '\u2192';
    font-size: 1.2rem;
}

.related-research-content a:hover {
    color: #fff;
}

/* ====================================================
   RESPONSIVE STYLES
   ==================================================== */
@media (max-width: 1200px) {
    .research-container {
        max-width: 95%;
    }

    .research-section {
        padding: 2.5rem 3rem;
    }
}

@media (max-width: 768px) {
    .research-hero {
        padding: 100px 1rem 60px 1rem;
    }

    .research-content {
        padding: 60px 1rem;
    }

    .research-section {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .publication-links {
        padding: 1.75rem 1.5rem;
    }

    .publication-links li {
        padding: 0.75rem 1rem;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .author-avatar {
        width: 100px;
        height: 100px;
    }

    .related-research {
        padding: 60px 1rem;
    }

    .related-research-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .related-research-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .research-hero {
        padding: 80px 0.75rem 40px 0.75rem;
    }

    .research-content {
        padding: 50px 0.5rem;
    }

    .research-section {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .research-section h2::before {
        width: 4px;
        height: 30px;
    }

    .publication-links::after {
        display: none;
    }

    .related-research-image {
        height: 180px;
    }
}

/* ====================================================
   CODE BLOCKS
   ==================================================== */
.research-section pre,
.research-section code {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.95rem;
}

.research-section pre {
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.research-section code {
    padding: 0.2rem 0.5rem;
}

/* ====================================================
   2026 UPDATE STYLES
   ==================================================== */
.research-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .research-grid-2col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.benchmark-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.benchmark-table th, 
.benchmark-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.benchmark-table th {
    background: rgba(10, 186, 181, 0.1);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.benchmark-table td {
    color: var(--light-text);
    font-size: 1rem;
}

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

.benchmark-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.benchmark-table strong {
    color: #fff;
    font-weight: 600;
}
