/*
 * ============================================================
 * 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(50, 0, 80, 0.25);
    box-shadow: 0 4px 20px rgba(155, 81, 224, 0.25);
    transition: all 0.3s ease-in-out;
}

/* Scroll efektas (pridedamas per JS) */
.space-header.scrolled {
    background: rgba(30, 0, 60, 0.70);
    box-shadow: 0 4px 25px rgba(155, 81, 224, 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: #d8b4ff;
    transition: all 0.3s ease-in-out;
}

/* ===== MOBILE MENU ICON ===== */
.space-mobile-menu-icon div {
    background: #c28fff;
    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(40, 0, 60, 0.60);
    }

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

/* ===== MOBILE SIDE MENU ===== */
.space-mobile-menu-block {
    background: rgba(50, 0, 80, 0.25);
    backdrop-filter: blur(14px);
    box-shadow: -4px 0 25px rgba(155, 81, 224, 0.35);
    border-left: 1px solid rgba(155, 81, 224, 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 {
    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: #d8b4ff;
}

/* Overlay */
body.mobile-menu-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 0, 40, 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: #d8b4ff;
    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;
}

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