/* Floating navigation layer shared by the restored homepage and About page.
   This file intentionally contains navigation and search styles only: the
   original page design comes from assets/css/style.css. */

:root {
    --lux-nav-green: #1b5e20;
    --lux-nav-green-deep: #063c2b;
    --lux-nav-green-light: #2e7d32;
    --lux-nav-accent: #a5d6a7;
    --lux-teal: #6ad8ca;
    --lux-white: #ffffff;
    --lux-glass: rgba(27, 94, 32, 0.94);
    --lux-glass-blue: rgba(6, 60, 43, 0.92);
}

.lux-nav {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1360px, calc(100% - 48px));
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 12px 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(120deg, var(--lux-glass), var(--lux-glass-blue));
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
    transition: top 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
    font-family: 'Inter', 'Outfit', sans-serif;
}

.lux-nav > * { min-width: 0; }

.lux-nav.scrolled {
    top: 12px;
    background: linear-gradient(120deg, rgba(20, 78, 28, 0.97), rgba(4, 43, 31, 0.97));
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
}

.lux-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--lux-white);
    flex: 0 0 auto;
}

.lux-logo img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.12);
}

.lux-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 0.95;
}

.lux-logo-main,
.lux-logo-sub {
    color: var(--lux-white);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.lux-logo-main { font-size: 1.42rem; }
.lux-logo-sub { font-size: 1.13rem; }

.lux-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 30px);
}

.lux-link {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 10px 0;
    white-space: nowrap;
}

.lux-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 4px;
    height: 1px;
    background: var(--lux-nav-accent);
    transition: right 0.3s ease;
}

.lux-link:hover,
.lux-link.active { color: var(--lux-white); }

.lux-link:hover::after,
.lux-link.active::after { right: 0; }

.lux-search {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lux-search svg { width: 17px; height: 17px; }
.lux-search:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }

.lux-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--lux-nav-green), var(--lux-nav-green-light));
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(27, 94, 32, 0.34);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lux-book-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(27, 94, 32, 0.45);
}

.lux-book-compact,
.lux-search-compact { display: none; }

.lux-menu-toggle {
    position: relative;
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

.lux-menu-toggle span,
.lux-menu-toggle::before,
.lux-menu-toggle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 1.5px;
    margin: 0;
    background: #fff;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.lux-menu-toggle::before { transform: translate(-50%, calc(-50% - 6px)); }
.lux-menu-toggle::after { transform: translate(-50%, calc(-50% + 6px)); }
.lux-menu-toggle.open span { opacity: 0; }
.lux-menu-toggle.open::before { transform: translate(-50%, -50%) rotate(45deg); }
.lux-menu-toggle.open::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Search overlay */
.lux-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: start center;
    padding: 12vh 24px 40px;
    background: rgba(3, 25, 21, 0.88);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: 'Inter', 'Outfit', sans-serif;
}

.lux-search-overlay.open { opacity: 1; visibility: visible; }

.lux-search-panel {
    width: min(760px, 100%);
    padding: 34px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(140deg, rgba(7, 49, 39, 0.96), rgba(13, 50, 112, 0.9));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.lux-search-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.lux-search-head h2 { margin: 0; font-size: 2.4rem; font-weight: 500; }

.lux-search-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

#site-search {
    width: 100%;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

#site-search::placeholder { color: rgba(255, 255, 255, 0.55); }

.lux-search-results {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    max-height: 46vh;
    overflow-y: auto;
}

.lux-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid transparent;
    transition: border 0.3s ease, background 0.3s ease;
}

.lux-search-result:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(106, 216, 202, 0.55); }
.lux-search-result small { color: var(--lux-teal); letter-spacing: 0.12em; text-transform: uppercase; }

.lux-nav a:focus-visible,
.lux-nav button:focus-visible,
.lux-search-overlay button:focus-visible,
.lux-search-overlay input:focus-visible,
.lux-search-overlay a:focus-visible {
    outline: 2px solid var(--lux-nav-accent);
    outline-offset: 3px;
}

section[id],
header[id] { scroll-margin-top: 88px; }

@media (max-width: 1180px) {
    .lux-nav-links { gap: 14px; }
    .lux-link { font-size: 0.65rem; }
}

@media (max-width: 900px) {
    .lux-nav { top: 14px; width: calc(100% - 28px); max-width: calc(100vw - 28px); border-radius: 24px; padding: 8px 10px 8px 14px; gap: 10px; }
    .lux-menu-toggle { display: block; flex: 0 0 auto; }
    .lux-search-compact {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        cursor: pointer;
    }
    .lux-search-compact svg { width: 16px; height: 16px; }
    .lux-book-compact {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        flex: 0 0 auto;
        padding: 0 16px;
        border-radius: 999px;
        background: linear-gradient(120deg, var(--lux-nav-green), var(--lux-nav-green-light));
        color: #fff;
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        box-shadow: 0 8px 20px rgba(27, 94, 32, 0.3);
    }
    .lux-nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 18px;
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(4, 49, 31, 0.97);
        backdrop-filter: blur(18px);
    }
    .lux-nav-links.open { display: flex; }
    .lux-link { padding: 12px 8px; font-size: 0.76rem; }
    .lux-nav-links .lux-search,
    .lux-nav-links .lux-book-btn { display: none; }
}

@media (max-width: 600px) {
    .lux-nav { top: 10px; width: calc(100% - 20px); max-width: calc(100vw - 20px); padding-left: 12px; gap: 8px; }
    .lux-logo { gap: 8px; }
    .lux-logo img { width: 38px; height: 38px; }
    .lux-logo-sub { display: none; }
    .lux-logo-main { font-size: 1rem; }
    .lux-search-compact { width: 36px; height: 36px; }
    .lux-book-compact { min-height: 36px; padding: 0 10px; font-size: 0.58rem; letter-spacing: 0.08em; }
    .lux-menu-toggle { width: 38px; height: 38px; }
    .lux-search-overlay { padding: 8vh 14px 24px; }
    .lux-search-panel { padding: 20px; border-radius: 18px; }
    .lux-search-head h2 { font-size: 1.8rem; }
    #site-search { padding: 14px 16px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .lux-nav,
    .lux-link::after,
    .lux-search,
    .lux-book-btn,
    .lux-menu-toggle span,
    .lux-menu-toggle::before,
    .lux-menu-toggle::after,
    .lux-search-overlay,
    .lux-search-result {
        transition-duration: 0.01ms !important;
    }
}
