/* header.css - Mototour Public Header Navigation Styles */

.site-header {
    width: 100%;
    background: rgba(11, 12, 16, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
    background: rgba(9, 10, 13, 0.98);
    border-bottom-color: rgba(140, 230, 0, 0.22);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled .header-container {
    padding: 0.6rem 1.5rem;
}

/* Header Buttons & Icons */
.header-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 8px;
    transition: background-color 0.2s ease, padding 0.3s ease;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.icon-svg {
    width: 24px;
    height: 24px;
    filter: invert(1) brightness(1.2);
}

/* Logomarca */
.header-logo-wrapper {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 58px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled .header-logo-img {
    height: 38px;
}

/* Desktop Navigation Menu */
.desktop-nav {
    display: none;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: block;
    }
    .menu-toggle-btn {
        display: none; /* esconde hambúrguer no desktop */
    }
    .desktop-nav ul {
        display: flex;
        align-items: center;
        gap: 2rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .desktop-nav a {
        font-family: 'Barlow Semi Condensed', sans-serif;
        font-size: 1.06rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        color: #a1a1aa;
        text-decoration: none;
        transition: color 0.2s ease, font-size 0.3s ease, padding 0.3s ease;
        padding: 0.5rem 0;
        position: relative;
    }
    .site-header.scrolled .desktop-nav a {
        font-size: 0.95rem;
        padding: 0.3rem 0;
    }
    .desktop-nav a:hover,
    .desktop-nav a.active {
        color: #8ce600;
    }
    .desktop-nav a.active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2px;
        background: #8ce600;
        border-radius: 2px;
    }
}

/* Actions: Search & Login Button */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-login-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 0.55rem 1.05rem;
    color: #ffffff;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.25s ease;
}

.site-header.scrolled .header-login-btn {
    padding: 0.38rem 0.85rem;
    font-size: 0.86rem;
}

.header-login-btn:hover {
    background: rgba(140, 230, 0, 0.15);
    border-color: #8ce600;
    color: #8ce600;
}

.header-login-btn .icon-svg {
    width: 18px;
    height: 18px;
}

/* Expandable Search Bar */
.header-search-bar {
    display: none;
    background: #121318;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1.25rem;
}

.header-search-bar.active {
    display: block;
}

.search-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: #090a0d;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 0.25rem 0.75rem;
}

.search-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem;
}

.search-form input:focus {
    outline: none;
}

.search-form button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.search-form button img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

/* Mobile Drawer Overlay & Sidebar */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: #0d0e12;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer.active {
    left: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-logo img {
    height: 36px;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.drawer-close-btn img {
    width: 22px;
    height: 22px;
    filter: invert(1);
}

.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

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

.drawer-nav li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    color: #d4d4d8;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.drawer-nav li a:hover,
.drawer-nav li a.active {
    color: #8ce600;
    background: rgba(140, 230, 0, 0.08);
    border-left-color: #8ce600;
}

.drawer-nav .nav-icon {
    width: 20px;
    height: 20px;
    filter: invert(0.8);
}

.drawer-nav li a.active .nav-icon {
    filter: invert(1) drop-shadow(0 0 4px rgba(140, 230, 0, 0.5));
}

.drawer-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #8ce600;
    color: #0b0c10;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.75rem;
    border-radius: 12px;
    text-decoration: none;
}

.drawer-login-btn img {
    width: 18px;
    height: 18px;
}
