﻿/*--------------------------------------------------------------
🌐 Global Variables
--------------------------------------------------------------*/
:root {
    --font-main: 'Roboto', sans-serif;
    --font-accent: 'Orbitron', sans-serif;
    --color-bg-body: #0c0f1a;
    --color-text-body: #e0e0f0;
    --color-accent: #00ffff;
    --color-primary-blue: #4f94d4;
    --nav-bg-color: #121826;
    --truth-height: 700px;
}

/*--------------------------------------------------------------
🖋 Typography
--------------------------------------------------------------*/
body {
    background-color: var(--color-bg-body);
    color: var(--color-text-body);
    font-family: var(--font-main);
}

h1, h2, .tagline, .navbar, .brand-text {
    font-family: var(--font-accent);
    color: var(--color-accent);
}

/*--------------------------------------------------------------
🔗 Navigation
--------------------------------------------------------------*/
.navbar, .top-row.navbar {
    background-color: var(--nav-bg-color);
    border-bottom: 2px solid var(--color-accent);
}
.top-row.navbar {
    position: relative;
    z-index: 1100;
}

.brand-text {
    font-size: 1.2rem;
}

/*--------------------------------------------------------------
🌍 Earth Canvas
--------------------------------------------------------------*/
#earthCanvasContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/*--------------------------------------------------------------
🃏 Earth Info Cards
--------------------------------------------------------------*/
.flerf-card {
    background-color: rgba(20, 24, 30, 0.5);
    border-radius: 12px;
    border: 1px solid var(--color-primary-blue);
    padding: 1rem 1.5rem;
    color: #e0f1ff;
    box-shadow: 0 0 20px rgba(79, 148, 212, 0.3);
    backdrop-filter: blur(6px);
    z-index: 10;
    position: relative;
    max-width: 520px;
    transition: box-shadow 0.3s ease;
    font-family: var(--font-main);
    overflow: hidden;
}

    .flerf-card:hover {
        box-shadow: 0 0 30px rgba(79, 148, 212, 0.5);
    }

.orbital-canvas-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.75;
}

.flerf-card-title {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #90caf9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 4px;
    z-index: 11;
    position: relative;
}

.flerf-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-main);
    z-index: 11;
    position: relative;
}

    .flerf-card-list li {
        margin: 0.5rem 0;
        line-height: 1.4;
    }

.flerf-card-footnote,
.flerf-card-credit {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ddd;
    font-style: italic;
    opacity: 0.8;
    z-index: 11;
    position: relative;
}

/*--------------------------------------------------------------
🌌 Landing Page
--------------------------------------------------------------*/
.flerfhub-intro {
    padding: 0.5rem;
    color: #e0f1ff;
    font-family: var(--font-main);
    background-image: url('/images/FlerfHubBanner.png');
    background-size: cover; 
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    border-radius: 12px;
    z-index: 0;
    position: relative;
}

    .flerfhub-intro h1 {
        font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
        margin-bottom: 0.5rem;
        font-family: var(--font-accent);
    }

    .flerfhub-intro .tagline {
        font-size: 1.2rem;
        font-style: italic;
        color: var(--color-accent);
        margin-bottom: 1rem;
    }

    .flerfhub-intro h2 {
        margin-top: 1.5rem;
        color: #90caf9;
        font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem);
        font-family: var(--font-accent);
    }

    .flerfhub-intro p,
    .flerfhub-features li {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }

.flerfhub-features {
    margin-left: 1.2rem;
}

.intro-block {
    background: rgba(20, 24, 30, 0.6); 
    border: 1px solid rgba(79, 148, 212, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    position: relative;
    z-index: 1;
}

/*--------------------------------------------------------------
⚙️ Speed Toggle
--------------------------------------------------------------*/
.speed-toggle {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

    .speed-toggle button {
        background-color: #1a1f2d;
        color: var(--color-accent);
        border: 1px solid var(--color-primary-blue);
        border-radius: 6px;
        padding: 0.4rem 0.8rem;
        cursor: pointer;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
        font-family: var(--font-accent);
    }

        .speed-toggle button:hover {
            background-color: #283043;
            box-shadow: 0 0 8px var(--color-accent);
        }

/*--------------------------------------------------------------
📐 Responsive Columns
--------------------------------------------------------------*/
.flerfhub-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .flerfhub-columns {
        flex-direction: column;
    }
}

.earth-flerfhub-columns {
    position: relative;
    z-index: 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .earth-flerfhub-columns {
        flex-direction: column;
    }
}

/*--------------------------------------------------------------
📺 Video Modal (shared, reusable)
--------------------------------------------------------------*/
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-content {
    background-color: #1a1f2d;
    border: 2px solid var(--color-accent);
    border-radius: 12px;
    padding: 0;
    width: 90vw;
    max-width: 1184px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 0 20px var(--color-primary-blue);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .video-content {
        width: 100vw;
        max-width: 100%;
        border-radius: 0;
    }
}

.close-button {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--color-accent);
    cursor: pointer;
}

/*--------------------------------------------------------------
🔧 Utility: Mission Button
--------------------------------------------------------------*/
.missionData {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .missionData button {
        align-content: center;
        background-color: #1a1f2d;
        color: var(--color-accent);
        border: 1px solid var(--color-primary-blue);
        border-radius: 6px;
        padding: 0.4rem 0.8rem;
        cursor: pointer;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
        font-family: var(--font-accent);
    }

        .missionData button:hover {
            background-color: #283043;
            box-shadow: 0 0 8px var(--color-accent);
        }


.flerf-header {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5em;
    text-align: center;
    color: var(--color-accent);
}

.flerf-subtext {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2em;
    color: #c0b3e6;
    opacity: 0.85;
}

/*--------------------------------------------------------------
📘 Educational Snippets (Global Utility)
--------------------------------------------------------------*/

.edu-snippet {
    background-color: #fef6d7;
    border-left: 4px solid #f4c542;
    padding: 0.5em 1em;
    margin-top: 0.5em;
    font-size: 0.9em;
    font-family: var(--font-main);
    color: #222;
    border-radius: 4px;
}

    .edu-snippet.lore-context {
        background-color: #fef6d7;
        border-left-color: #f4c542;
    }

    .edu-snippet.satirical {
        background-color: #fce4ec;
        border-left-color: #d81b60;
        font-style: italic;
        opacity: 0.9;
    }

    .edu-snippet.verified {
        background-color: #e0f7fa;
        border-left-color: #00bcd4;
        border-right: 2px solid #26c6da;
        font-weight: bold;
    }

    .edu-snippet.notthetruth {
        background-color: #fdf0f0; /* Soft pinkish tone — gently subversive */
        border-left-color: #c48b9f; /* Muted rose — enough contrast, not too bold */
        font-weight: 500; /* Lighter than bold, keeps it less assertive */
        font-style: italic; /* Adds nuance — not quite declarative */
        opacity: 0.95; /* Slight fade, introduces visual doubt */
    }

    .edu-snippet.alert {
        background-color: #fff3e0;
        border-left-color: #ff9800;
        font-weight: bold;
        color: #000;
    }

.edu-tooltip {
    border-bottom: 1px dotted #f4c542;
    cursor: help;
    position: relative;
}
    .edu-tooltip:hover::after {
        content: attr(title);
        position: absolute;
        top: 120%;
        left: 0;
        background: #fef6d7;
        color: #222;
        border: 1px solid #f4c542;
        padding: 0.75em 1em;
        font-size: 0.9em;
        max-width: 380px;
        white-space: normal;
        z-index: 100;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        line-height: 1.4;
    }

.source-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #cccccc;
    opacity: 0.75;
    font-style: italic;
    text-align: right;
}

.video-card-snippet {
    background-color: #1a1f2d;
    border-left: 4px solid var(--color-primary-blue);
    padding: 0.75em 1em;
    margin: 1rem 0;
    font-family: var(--font-main);
    color: #e0f1ff;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(79, 148, 212, 0.25);
}

    .video-card-snippet .video-caption {
        font-weight: bold;
        color: var(--color-accent);
        margin-bottom: 0.5em;
        font-family: var(--font-accent);
    }

    .video-card-snippet iframe.video-frame {
        width: 100%;
        height: 240px;
        border-radius: 4px;
        margin-top: 0.5rem;
    }

    .video-card-snippet .source-label {
        display: block;
        margin-top: 0.5rem;
        font-size: 0.9rem;
        color: #cccccc;
        opacity: 0.75;
        font-style: italic;
        text-align: right;
    }

    .video-card-snippet.satirical {
        background-color: #2a1a28;
        border-left-color: #d81b60;
        font-style: italic;
    }

    .video-card-snippet.notthetruth {
        background-color: #2e1c24;
        border-left-color: #c48b9f;
        opacity: 0.9;
    }

/*--------------------------------------------------------------
🛰️ Flyout Navigation Overlay
--------------------------------------------------------------*/

.nav-scrollable {
    position: absolute;
    top: 58px; /* Adjust to match the height of your navbar */
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #1a1f38, #10131e);
    border-top: 1px solid var(--color-accent);
    padding: 0.5rem 0;
    z-index: 1000;
    display: none; /* Start hidden by default */
}

    .nav-scrollable.show {
        display: block;
        animation: fadeInMenu 0.3s ease-out forwards;
    }

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.nav-item {
    flex: 0 1 auto;
    min-width: 140px;
    text-align: center;
}

/*--------------------------------------------------------------
🎛️ Navigation: Active & Hover Accents
--------------------------------------------------------------*/

.nav-link {
    color: #ccc;
    text-decoration: none;
    font-family: var(--font-accent);
    font-size: 0.95rem;
    transition: color 0.3s, transform 0.2s;
    position: relative;
}

    .nav-link:hover {
        color: var(--color-accent);
        transform: scale(1.05);
    }

    .nav-link.active {
        color: #ff007f;
        font-weight: bold;
    }

        .nav-link.active::after {
            content: "";
            position: absolute;
            bottom: -4px;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 2px;
            background-color: #ff007f;
            border-radius: 4px;
            opacity: 0.9;
        }

.fa-solid {
    margin-right: 0.4rem;
    color: var(--color-accent);
    transition: color 0.3s ease;
}

.nav-link:hover .fa-solid {
    color: #ff007f;
}