/*
 * ============================================================
 * 03 — HEADER
 * Fixed neon glass header + mobile side menu.
 * ============================================================
 */

/* ===== HEADER ===== */
.space-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    backdrop-filter: blur(12px);
    background: rgba(8, 18, 55, 0.25);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease-in-out;
}

/* Scroll efektas (pridedamas per JS) */
.space-header.scrolled {
    background: rgba(5, 12, 40, 0.70);
    box-shadow: 0 4px 25px rgba(37, 99, 235, 0.35);
    backdrop-filter: blur(20px);
}

/* Logo */
.space-header-logo img {
    transition: transform 0.3s ease;
}

.space-header-logo img:hover {
    transform: scale(1.05);
}

/* ===== MAIN MENU ===== */
.main-menu li a {
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 15px 20px;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Pašalinam temos brūkšnį po menu item */
.main-menu li a::after {
    display: none !important;
    content: none !important;
}

.main-menu li a:hover {
    color: #bfdbfe;
    transition: all 0.3s ease-in-out;
}

/* ===== MOBILE MENU ICON ===== */
.space-mobile-menu-icon div {
    background: #93c5fd;
    transition: background 0.3s ease;
}

.space-mobile-menu-icon:hover div {
    background: #fff;
}

/* ===== WP ADMIN BAR kompensacija ===== */
body.admin-bar .space-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .space-header {
        top: 46px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .space-header {
        backdrop-filter: blur(8px);
        background: rgba(8, 16, 48, 0.60);
    }

    .main-menu li a {
        padding: 12px 15px;
    }
}

/* ===== MOBILE SIDE MENU ===== */
.space-mobile-menu-block {
    background: rgba(8, 18, 55, 0.25);
    backdrop-filter: blur(14px);
    box-shadow: -4px 0 25px rgba(37, 99, 235, 0.35);
    border-left: 1px solid rgba(37, 99, 235, 0.30);
    color: #fff;
    animation: sgSlideIn 0.3s ease forwards;
}

@keyframes sgSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

.space-mobile-menu-header img {
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.5));
    margin-top: 15px;
}

.mobile-menu li {
    list-style: none;
    margin: 10px 0;
    text-align: center;
}

.mobile-menu li a {
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 12px 0;
    transition: all 0.3s ease-in-out;
}

.mobile-menu li a:hover {
    color: #bfdbfe;
    text-shadow: 0 0 6px #60a5fa, 0 0 12px #2563eb, 0 0 20px #1d4ed8;
}

/* Overlay */
body.mobile-menu-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 10, 30, 0.50);
    backdrop-filter: blur(3px);
    z-index: 998;
}

/* Uždarymo mygtukas */
.space-mobile-menu-close-button {
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.space-mobile-menu-close-button .to-right,
.space-mobile-menu-close-button .to-left {
    width: 100%;
    height: 2px;
    background: #bfdbfe;
    position: absolute;
    top: 50%;
    left: 0;
    transition: background 0.3s ease;
}

.space-mobile-menu-close-button .to-right { transform: rotate(45deg);  }
.space-mobile-menu-close-button .to-left  { transform: rotate(-45deg); }

.space-mobile-menu-close-button:hover .to-right,
.space-mobile-menu-close-button:hover .to-left {
    background: #fff;
    box-shadow: 0 0 8px #60a5fa, 0 0 15px #2563eb;
}

/* Footer tekstas mobile menu */
.space-mobile-menu-copy {
    font-size: 12px;
    color: #93c5fd;
    padding: 20px 0;
    opacity: 0.8;
}
