/* ========================================
   WASABI.EU — LIVEATLAS OVERRIDE
   Reskin LiveAtlas to match main website
   ======================================== */

/* === LIVEATLAS VARIABLES OVERRIDE === */
:root {
    /* Backgrounds */
    --background-base: rgba(10, 10, 15, 0.95);
    /* Main UI panels (sidebar, popup) */
    --background-dark: #0a0a0f;
    /* Main background/map color */
    --background-light: rgba(30, 30, 40, 0.8);
    /* Inputs/Scrollbars */
    --background-marker: rgba(20, 20, 30, 0.9);
    /* Map markers */

    /* Interaction states */
    --background-disabled: #333333;
    --background-hover: rgba(111, 207, 63, 0.15);
    /* Wasabi primary soft */
    --background-active: rgba(111, 207, 63, 0.25);
    --background-selected: rgba(111, 207, 63, 0.2);

    /* Accents & Focus */
    --outline-focus: #6fcf3f;
    /* Wasabi primary green */

    /* Borders & Geometry */
    --border-radius: 12px;
    --border-color: rgba(255, 255, 255, 0.08);
    /* Wasabi glass-border */
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);

    /* Text */
    --text-base: #eaeaea;
    /* Wasabi text-main */
    --text-emphasis: #ffffff;
    --text-subtle: #8a8a9a;
    /* Wasabi text-muted */
    --text-disabled: #555555;
    --text-marker: #eaeaea;

    /* Text on interaction */
    --text-hover: #6fcf3f;
    --text-active: #5bb830;
    --text-selected: #6fcf3f;
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);

    /* Clock colors */
    --text-night: #89CFF0;
    --text-day: #ffd700;
}

/* Base DOM overrides */
body {
    font-family: 'Poppins', 'Inter', system-ui, sans-serif !important;
}

/* === LAYOUT ADJUSTMENT FOR WASABI NAV === */
/* Push the entire LiveAtlas app down by 65px so it doesn't overlap the fixed nav */
#app {
    position: absolute;
    top: 65px !important;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(100% - 65px) !important;
    z-index: 10;
}

/* Push splash screen down too */
#splash {
    top: 65px !important;
    z-index: 100 !important;
}

/* === SPECIFIC COMPONENT TWEAKS === */

/* UI Containers - apply glassmorphism */
.popup-content,
.leaflet-control-layers-expanded,
.leaflet-control-zoom {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color) !important;
}

/* Buttons */
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overriding specific icons/svg colors to match Wasabi Green where appropriate */
.button--active svg,
.button:active svg {
    fill: var(--outline-focus) !important;
}

/* Overriding leafet controls to align better */
.leaflet-control-container .leaflet-top.leaflet-left {
    top: 20px !important;
    left: 20px !important;
}

.leaflet-control-container .leaflet-bottom.leaflet-left {
    bottom: 20px !important;
    left: 20px !important;
}

/* Player/Marker popups */
.leaflet-popup-content-wrapper {
    background: var(--background-base) !important;
    border-radius: var(--border-radius) !important;
    border: 1px solid var(--border-color) !important;
    backdrop-filter: blur(15px);
}

.leaflet-popup-tip {
    background: var(--background-base) !important;
}

/* Progress bars / Health */
progress {
    border-radius: 4px;
}

progress::-webkit-progress-value {
    background-color: var(--outline-focus);
}

progress::-moz-progress-bar {
    background-color: var(--outline-focus);
}

/* Custom scrollbars */
*::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid var(--background-dark) !important;
}

*:hover::-webkit-scrollbar-thumb {
    background-color: rgba(111, 207, 63, 0.3) !important;
}

/* === COORDINATE BAR === */
.leaflet-control-coordinates,
div.leaflet-control-coordinates,
.leaflet-bottom .leaflet-control-coordinates {
    background: rgba(60, 60, 75, 0.9) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
    padding: 6px 12px !important;
    font-family: 'Poppins', sans-serif !important;
}

.leaflet-control-coordinates .value,
.leaflet-control-coordinates span,
.leaflet-control-coordinates .value.coordinates,
.leaflet-control-coordinates .value.chunk,
.leaflet-control-coordinates .value.region {
    color: #ffffff !important;
}

.leaflet-control-coordinates .value::before,
.leaflet-control-coordinates span::before {
    color: #6fcf3f !important;
}

/* === LIVEATLAS SIDEBAR FIX === */

/* Main sidebar wrapper — push below the navbar */
.sidebar {
    top: 65px !important;
    bottom: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    pointer-events: none !important;
}

/* Re-enable pointer events on sidebar children */
.sidebar>* {
    pointer-events: auto !important;
}

/* Each panel section (Map Types, Značky, Players) */
.sidebar__section {
    background-color: rgba(10, 10, 15, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-base) !important;
}

/* Section headings */
.sidebar__section .section__heading,
.sidebar__section .section__heading button {
    background-color: rgba(10, 10, 15, 0.92) !important;
    color: var(--text-base) !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Sidebar top buttons (map switchers) */
.sidebar__buttons {
    margin-top: 0 !important;
}

.sidebar__buttons button {
    background-color: rgba(10, 10, 15, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(15px) !important;
}

.sidebar__buttons button:hover {
    background-color: rgba(111, 207, 63, 0.15) !important;
    border-color: rgba(111, 207, 63, 0.3) !important;
}

.sidebar__buttons button.button--active {
    background-color: rgba(111, 207, 63, 0.2) !important;
    border-color: #6fcf3f !important;
}

/* Sidebar scrollable content */
.sidebar__content {
    background: transparent !important;
}

/* Player list items */
.sidebar .player,
.sidebar .player__name {
    color: var(--text-base) !important;
    font-family: 'Poppins', sans-serif !important;
}

.sidebar .player:hover {
    background: rgba(111, 207, 63, 0.1) !important;
}

/* Search inputs */
.sidebar input,
.sidebar input[type="text"] {
    background: rgba(20, 20, 30, 0.8) !important;
    color: var(--text-base) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    font-family: 'Poppins', sans-serif !important;
}

.sidebar input:focus {
    border-color: #6fcf3f !important;
    outline-color: #6fcf3f !important;
}

/* Marker items */
.sidebar .marker:hover {
    background: rgba(111, 207, 63, 0.1) !important;
}

/* Section search box shadow fix */
.sidebar__section .section__search {
    box-shadow: 0 1.5rem .5em rgba(10, 10, 15, 0.92) !important;
}

/* === WASABI NAVIGATION BAR STYLES === */
.wasabi-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background: rgba(10, 10, 18, 0.95);
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    box-sizing: border-box;
    z-index: 100000 !important;
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    color: #eaeaea;
    overflow: visible !important;
}

.wasabi-nav a {
    text-decoration: none;
    color: inherit;
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wasabi-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wasabi-nav .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #6fcf3f;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.wasabi-nav .logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(111, 207, 63, 0.35));
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wasabi-nav .logo:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.wasabi-nav .nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    overflow: visible !important;
}

.wasabi-nav .nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    opacity: 0.7;
}

.wasabi-nav .nav-links a:hover,
.wasabi-nav .nav-links a.active {
    color: #6fcf3f;
    opacity: 1;
}

.wasabi-nav .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #6fcf3f, #3eda7d);
    transition: 0.3s;
    border-radius: 2px;
}

.wasabi-nav .nav-links a:hover::after,
.wasabi-nav .nav-links a.active::after {
    width: 100%;
}

.wasabi-nav .store-btn {
    background: linear-gradient(135deg, #6fcf3f, #3eda7d) !important;
    color: #0a0a0f !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    box-shadow: 0 4px 20px rgba(111, 207, 63, 0.35);
}

.wasabi-nav .store-btn::after {
    display: none !important;
}

/* Discord login button */
.wasabi-nav .discord-login-btn {
    background: linear-gradient(135deg, #5865F2, #7289DA);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

/* User profile */
.wasabi-nav .user-profile {
    position: relative;
    overflow: visible !important;
}

.wasabi-nav .profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 50px;
}

.wasabi-nav .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #6fcf3f;
}

.wasabi-nav .user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.wasabi-nav .user-status {
    font-size: 0.7rem;
    display: block;
}

.wasabi-nav .user-status.linked {
    color: #6fcf3f;
}

.wasabi-nav .user-status.not-linked {
    color: #8a8a9a;
}

.wasabi-nav .dropdown-content {
    display: none;
    position: absolute;
    right: -10px;
    top: calc(100% + 8px);
    background: rgba(15, 15, 25, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    z-index: 100001 !important;
}

.wasabi-nav .profile-dropdown:hover .dropdown-content {
    display: block;
}

.wasabi-nav .dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    opacity: 1 !important;
}

.wasabi-nav .dropdown-content a:hover {
    background: rgba(111, 207, 63, 0.1);
    color: #6fcf3f !important;
}

.wasabi-nav .dropdown-content a::after {
    display: none !important;
}

.wasabi-nav .logout-link:hover {
    background: rgba(255, 71, 87, 0.1) !important;
    color: #ff4757 !important;
}

/* Burger menu */
.wasabi-nav .burger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
}

/* Mobile */
@media (max-width: 900px) {
    .wasabi-nav .nav-links {
        position: fixed;
        top: 65px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 65px);
        background: rgba(10, 10, 18, 0.97);
        flex-direction: column;
        gap: 0;
        padding: 30px 20px;
        transition: right 0.4s;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 9999;
    }

    .wasabi-nav .nav-links.active {
        right: 0;
    }

    .wasabi-nav .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .wasabi-nav .burger {
        display: block;
        background: transparent;
        border: none;
        color: white;
    }
}

/* === ZMENŠENÍ IKON / TLAČÍTEK === */

/* Zmenšit hlavní sidebar tlačítka (Map Types, Markers, Players) */
:root {
    --ui-button-size: 3.6rem !important;
}

/* Sidebar toggle buttons - menší */
.sidebar .sidebar__buttons button {
    width: 3.6rem !important;
    height: 3.6rem !important;
}

.sidebar .sidebar__buttons button .svg-icon {
    width: 1.8rem !important;
    height: 1.8rem !important;
}

/* Zoom controls - menší */
.leaflet-control-zoom a {
    width: 3.6rem !important;
    height: 3.6rem !important;
    line-height: 3.6rem !important;
    font-size: 1.4rem !important;
}

/* Leaflet control buttons (layers, link, etc.) - menší */
.leaflet-control-button,
.leaflet-control-layers-toggle,
.leaflet-control-logo,
.leaflet-bar a {
    width: 3.6rem !important;
    height: 3.6rem !important;
    line-height: 3rem !important;
}

.leaflet-control-button .svg-icon,
.leaflet-control-layers-toggle .svg-icon,
.leaflet-bar a .svg-icon {
    max-width: 2rem !important;
    max-height: 2rem !important;
}

/* Clock widget - menší */
.clock {
    width: 11rem !important;
    height: 5rem !important;
    padding: .4rem 1.2rem !important;
}

.clock .clock__time {
    font-size: 1.6rem !important;
    line-height: 1.6rem !important;
}

.clock .clock__sun svg,
.clock .clock__moon svg {
    width: 11rem !important;
    height: 9rem !important;
}

.clock.clock--digital {
    height: 3.6rem !important;
    width: auto !important;
}

.clock.clock--digital .clock__time {
    font-size: 2.2rem !important;
}

/* Sidebar sekce - kompaktnější */
.sidebar__section {
    padding: 1.2rem !important;
    max-width: 23rem !important;
}

.sidebar__section .section__heading button {
    font-size: 1.6rem !important;
    padding: 1.2rem !important;
    margin: -1.2rem !important;
}

.sidebar__section .section__heading {
    margin: -1.2rem -1.2rem 0 !important;
}

/* Koordináty - menší */
.leaflet-control-coordinates {
    padding: .4rem 1rem !important;
}

.leaflet-control-coordinates .value {
    font-size: 1.6rem !important;
}

.leaflet-control-coordinates .value[data-label]:before {
    font-size: 1.1rem !important;
}

/* Sidebar content - užší */
.sidebar .sidebar__content {
    width: 23rem !important;
}

/* Map type icons v sidebaru */
.map[data-v-219749ac] {
    width: 2.6rem !important;
    height: 2.6rem !important;
}

/* === SHOP RESIDENCE ANIMATED ARROW === */
.shop-animated-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    animation: bounce-arrow 1.5s infinite;
}

.shop-animated-arrow i {
    margin-top: -10px;
}

.shop-animated-arrow i:first-child {
    margin-top: 0;
}

@keyframes bounce-arrow {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}