/* =========================================================
   header.css — Agoda-style header for LuxNest
   ========================================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: #f0f4f8;
    color: #1a1a2e;
}

a { text-decoration: none; color: inherit; }

/* ---- Container ---- */
.lx-container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
   HEADER
   ========================================================= */
.lx-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #1a1a1a;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: background 0.3s, box-shadow 0.3s;
}

.lx-header--sticky {
    background: #000000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.lx-header__top {
    height: 64px;
    display: flex;
    align-items: center;
}

.lx-header__top .lx-container {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

/* Logo */
.lx-header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-right: 16px;
}
.lx-header__logo-icon { font-size: 1.5rem; }
.lx-header__logo-text { letter-spacing: -0.5px; }
.lx-header__logo-img { height: 36px; width: auto; display: block; }

/* Menu Wrapper */
.lx-header__menu {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Nav */
.lx-header__nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.lx-header__nav-item {
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}
.lx-header__nav-item:hover { background: rgba(255,255,255,0.12); color: #fff; }
.lx-header__nav-item--active { color: #fff; background: rgba(255,255,255,0.15); }
.lx-header__nav-item--deals { color: #ffd166; }
.lx-header__nav-item--deals:hover { color: #ffd166; background: rgba(255, 209, 102, 0.15); }

/* Utils */
.lx-header__utils {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.lx-header__util-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}
.lx-header__util-btn:hover { background: rgba(255,255,255,0.2); }

.lx-header__auth-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.lx-header__auth-btn--outline {
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
    background: transparent;
}
.lx-header__auth-btn--outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}
.lx-header__auth-btn--solid {
    background: #ffd166;
    color: #1a1a1a;
    border: 1.5px solid #ffd166;
}
.lx-header__auth-btn--solid:hover { background: #f5c842; border-color: #f5c842; }

/* Mobile toggle */
.lx-header__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: 8px;
}
.lx-header__mobile-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* =========================================================
   FOOTER
   ========================================================= */
.lx-footer {
    background: #111111;
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    margin-top: 60px;
}

.lx-footer__top { padding: 56px 0 40px; }

.lx-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
}

.lx-footer__logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.lx-footer__desc {
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.lx-footer__socials {
    display: flex;
    gap: 10px;
}
.lx-footer__social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    transition: background 0.2s, color 0.2s;
}
.lx-footer__social:hover { background: #ffd166; color: #111111; }

.lx-footer__heading {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lx-footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lx-footer__list a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.lx-footer__list a:hover { color: #ffd166; }

.lx-footer__list--contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.6);
}
.lx-footer__list--contact i { margin-top: 3px; color: #ffd166; flex-shrink: 0; }
.lx-footer__list--contact a { color: rgba(255,255,255,0.6); }
.lx-footer__list--contact a:hover { color: #ffd166; }

.lx-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
}
.lx-footer__bottom .lx-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}
.lx-footer__bottom-links {
    display: flex;
    gap: 20px;
}
.lx-footer__bottom-links a {
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
}
.lx-footer__bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* =========================================================
   MAIN PADDING (push below sticky header)
   ========================================================= */
.lx-main { padding-top: 64px; }
.lx-main--no-padding { padding-top: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .lx-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Mobile Menu Overlay */
.lx-header__overlay {
    position: fixed;
    inset: 0;
    top: 64px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.lx-header__overlay.is-active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1280px) {
    .lx-header__menu {
        display: flex;
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        width: 320px;
        max-width: 85vw;
        background: #000000;
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px;
        gap: 24px;
        box-shadow: -8px 0 32px rgba(0,0,0,0.3);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }
    .lx-header__menu.is-open { transform: translateX(0); }

    .lx-header__nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 8px;
    }
    .lx-header__nav-item { width: 100%; padding: 12px 16px; font-size: 1rem; }
    
    .lx-header__utils { 
        width: 100%;
        margin-left: 0;
        gap: 12px;
        flex-wrap: wrap; 
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 24px;
    }
    .lx-header__util-btn { flex: 1; justify-content: center; padding: 12px; font-size: 0.9rem; }
    .lx-header__auth-btn { width: 100%; text-align: center; padding: 14px; font-size: 1rem; }
    
    /* Hamburger to X animation */
    .lx-header__mobile-toggle { display: flex; margin-left: auto; z-index: 1000; }
    .lx-header__mobile-toggle.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .lx-header__mobile-toggle.is-active span:nth-child(2) { opacity: 0; }
    .lx-header__mobile-toggle.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    .lx-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
