:root {
    --accent: #e8ff47;
    --accent2: #ff4757;
    --bg: #080808;
    --bg2: #111;
    --bg3: #1a1a1a;
    --border: #222;
    --text: #fff;
    --muted: #999;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    transition: background 0.3s;
}

header.scrolled {
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.logo span {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span em {
    color: var(--accent);
}

.header-nav {
    display: flex;
    gap: 4px;
}

.header-nav a {
    padding: 6px 14px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.header-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.header-nav a.nav-active {
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    border: none;
    color: #fff;
    transition: background 0.2s;
}

.search-icon:hover {
    background: rgba(255, 255, 255, 0.15);
}

.searchBar {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 32px;
    display: none;
    align-items: center;
    gap: 10px;
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.searchBar.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.searchBar input {
    flex: 1;
    height: 40px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0 14px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.searchBar input:focus {
    border-color: var(--accent);
    outline: none;
}

.searchBar input::placeholder {
    color: #3a3a3a;
}

.searchBar button {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #000;
    font-size: 16px;
    font-weight: 900;
    transition: background 0.2s;
}

.searchBar button:hover {
    background: #fff;
}

.searchBar button::after {
    content: '→';
}

nav {
    display: none;
}

@media screen and (max-width: 900px) {
    header {
        padding: 0 20px;
    }

    .header-nav {
        display: none;
    }

    .search-icon {
        display: flex;
    }

    nav {
        display: block;
        position: fixed;
        top: 64px;
        left: -280px;
        width: 280px;
        height: calc(100vh - 64px);
        background: var(--bg2);
        border-right: 1px solid var(--border);
        overflow-y: auto;
        transition: left 0.3s ease;
        z-index: 98;
        padding: 16px 0;
    }

    .searchBar.active {
        height: 100vh;
        align-items: start;
    }

    nav.active {
        left: 0;
        display: block;
        width: 100%;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 0 12px;
    }

    nav ul li a {
        display: block;
        padding: 10px 14px;
        color: #aaa;
        font-size: 14px;
        border-radius: 6px;
        transition: background 0.2s, color 0.2s;
        text-decoration: none;
    }

    nav ul li a:hover {
        background: var(--bg3);
        color: var(--accent);
    }

    .menuBtn {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 18px;
        border: none;
        color: #fff;
        transition: background 0.2s;
    }

    .menuBtn:hover {
        background: rgba(255, 255, 255, 0.15);
    }
}

@media screen and (min-width: 901px) {
    .menuBtn {
        display: none;
    }
}