/* Header Styles for Prestige Home Finds */

/* Header action buttons (Login / Dashboard) */
header .btn {
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

header .btn-primary {
    background: linear-gradient(45deg, #00AEEF, #6B2D91);
    color: white;
}

header .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 174, 239, 0.4);
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    background: white;
    padding: 10px 50px;
    box-shadow: var(--shadow);
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 40px;
}

/* Desktop Nav Visibility */

.desktop-nav {
    display: flex;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    text-decoration: none;
    color: white; /* Home Page Default */
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.desktop-nav a:hover {
    color: var(--primary);
}

header.scrolled nav a {
    color: var(--dark);
}

/* Hamburger Button */
#mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
    z-index: 1001;
}

#mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: var(--transition);
}

header.scrolled #mobile-menu-btn span {
    background-color: var(--dark);
}

/* Hamburger Active State */
#mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
#mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ── MOBILE NAV OVERLAY ── */
#mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 998;
    pointer-events: none;
    visibility: hidden;
}
#mobile-nav.open {
    pointer-events: auto;
    visibility: visible;
}

/* Backdrop */
.mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 5, 30, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.32s ease;
}
#mobile-nav.open .mobile-nav-backdrop {
    opacity: 1;
}

/* Slide-in panel */
.mobile-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 82%;
    max-width: 340px;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 28px 28px 40px;
    box-shadow: -8px 0 40px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
#mobile-nav.open .mobile-nav-panel {
    transform: translateX(0);
}

/* Close button */
.mobile-nav-close {
    align-self: flex-end;
    background: #f3ebff;
    border: none;
    color: #7000ff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.mobile-nav-close:hover { background: #e0d0ff; }

/* Logo */
.mobile-nav-logo {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}
.mobile-nav-logo img {
    height: 36px;
}

/* Links */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a2e;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.18s, color 0.18s;
}
.mobile-nav-links a i {
    width: 20px;
    text-align: center;
    color: #7000ff;
    font-size: 0.85rem;
}
.mobile-nav-links a:hover {
    background: #f3ebff;
    color: #7000ff;
}

/* CTA */
.mobile-nav-cta {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}
.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #7000ff, #9f3fff);
    color: white !important;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(112,0,255,0.3);
    transition: box-shadow 0.2s;
}
.mobile-cta-btn:hover { box-shadow: 0 6px 24px rgba(112,0,255,0.45); }

/* Responsive Header */
@media (max-width: 992px) {
    header {
        padding: 15px 30px;
    }

    .desktop-nav, .header-actions .btn {
        display: none;
    }

    #mobile-menu-btn {
        display: flex;
    }
}

