﻿/* ── Variables & Globals ─────────────────────────────────── */
:root {
    --mud-palette-appbar-background: transparent !important;
}

.font-chakra {
    font-family: 'Chakra Petch', sans-serif !important;
}

.font-jost {
    font-family: 'Jost', sans-serif !important;
}

/* ── Layout & Containers ─────────────────────────────────── */
.content-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.main-content {
    padding-top: 0px !important;
    z-index: 0;
    width: 100%;
}

.scroll-container {
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    pointer-events: auto;
}

.input-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center; /* Align button and input vertically */
}

    .input-container input {
        flex: 1; /* Input takes up available space */
    }
/* Mobile Styles (Vertical) */
@media (max-width: 767px) {
    .input-container {
        flex-direction: column;
        align-items: stretch; /* Buttons/Inputs go full-width */
    }
}

/* ── Glass AppBar (MudBlazor) ───────────────────────────── */
.glass-appbar,
.glass-appbar.mud-appbar,
.mud-appbar.glass-appbar,
div.mud-appbar.glass-appbar {
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    width: calc(100% - 20px) !important;
    z-index: 1100;
    background: transparent !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
 
}

    .glass-appbar::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(255, 255, 255, 0.2) !important;
        z-index: -1;
        pointer-events: none;
        transition: background-color 0.3s ease;
    }

    .glass-appbar.scrolled::before {
        background-color: rgba(255, 255, 255, 0.7) !important;
    }

.rounded-appbar {
    border-radius: 12px !important;
    overflow: hidden !important;
}

.mud-toolbar-gutters {
    padding-left: 4px !important;
    padding-right: 4px;
}

/* ── Hero & Tracking Card ────────────────────────────────── */


.tracking-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    margin-top:40px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 60px rgba(229, 62, 62, 0.15);
    position: relative;
    z-index: 10;
    transform-style: preserve-3d;
}

    .tracking-card::before {
        content: '';
        position: absolute;
        inset: -2px;
       /* background: linear-gradient(45deg, rgba(229, 62, 62, 0.6), rgba(135, 206, 250, 0.6), rgba(255, 215, 0, 0.6), rgba(229, 62, 62, 0.6));
       */ border-radius: 22px;
        z-index: -1;
        filter: blur(8px);
        opacity: 0.7;
    }

/* ── Timeline Bar ────────────────────────────────────────── */
.timeline-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(780px, 88vw);
    z-index: 1100;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 10px 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Roboto', monospace;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: slideUpIn 0.35s cubic-bezier(.22,1,.36,1);
}

.range-fill {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, #B7291E, #ff7b6e);
    border-radius: 2px;
    pointer-events: none;
    transition: left 0.04s, width 0.04s;
}

/* ── Maps & Popups ───────────────────────────────────────── */
.map-container {
    width: 100%;
    height: 100vh;
}

.maplibregl-popup-content {
    border-radius: 12px !important;
    overflow: hidden !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    padding: 0 !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15) !important;
}

.glass-popup, div.glass-popup {
    margin: 30px 10px 10px 10px !important;
    height: calc(100vh - 80px);
    z-index: 1100;
    background: transparent !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 10px;
    box-shadow: -2px 0 24px rgba(0,0,0,0.14);
    background: #fff;
    border-radius: 12px !important; /* Adjust radius to preference */
    overflow: hidden !important; /* Ensures content doesn't overflow rounded corners */
}



/* ── Right Popup Panel (Settings Drawer) ────────────────── */
.right-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    justify-content: flex-end;
    animation: fadeIn 0.2s;
}

.right-popup-panel {

    background: #fff;
    box-shadow: -2px 0 24px rgba(0,0,0,0.14);
    padding: 24px 16px 16px 24px;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.22s cubic-bezier(.4,0,.2,1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
}

.tracking-input {
    flex: 1;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: #333;
    backdrop-filter: blur(10px);
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
    font-weight: 400;
    transition: all 0.3s ease;
}

    .tracking-input::placeholder {
        color: rgba(0, 0, 0, 0.6);
    }

    .tracking-input:focus {
        outline: none;
        border-color: rgba(78, 173, 234, 0.4);
        background: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 20px rgba(28, 30, 135, 0.2);
    }



/* ── Animations (Blazor Escaped) ─────────────────────────── */
@@keyframes slideUpIn {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@@keyframes fadeIn {
    from {
        background: rgba(0,0,0,0);
    }

    to {
        background: rgba(0,0,0,0.25);
    }
}

@@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(0.5);
        opacity: 0;
    }
}

/* ── Media Queries ───────────────────────────────────────── */
@@media (min-width: 768px) {
    .hero-background {
        padding-top: 8vh;
    }

    .tracking-card {
        width: 90%;
    }

    .input-container {
        flex-direction: row;
    }

    .track-button {
        width: auto;
    }
}

@@media (max-width: 480px) {
    .hero-background {
        padding-top: 2vh;
    }

    .tracking-input, .track-button {
        font-size: 16px;
    }
}

@@media (pointer: coarse) {
    .scroll-container {
        max-height: calc(100vh - 20px);
    }
}

@@media (prefers-reduced-motion: reduce) {
    .hero-background, .hero-background::before, .track-button:hover {
        animation: none;
        transform: none;
    }
}
