/* ── L3 Navigator Floating Action Button ── */
.l3-nav-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.l3-nav-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.5);
}

.l3-nav-fab i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0px); }
}

/* ── L3 Navigator Drawer ── */
.l3-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.l3-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.l3-nav-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #ffffff;
    z-index: 1001;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.l3-nav-overlay.open .l3-nav-drawer {
    right: 0;
}

@media (max-width: 768px) {
    .l3-nav-fab {
        bottom: calc(65px + 1.25rem);
        right: 1.25rem;
    }

    .l3-nav-drawer {
        top: auto;
        bottom: -100vh;
        right: 0;
        max-width: 100%;
        height: 85vh;
        border-radius: 16px 16px 0 0;
        transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .l3-nav-overlay.open .l3-nav-drawer {
        bottom: 0;
    }
}

/* Drawer Header */
.l3-nav-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    position: relative;
}

@media (max-width: 768px) {
    .l3-nav-header {
        border-radius: 16px 16px 0 0;
    }
}

.l3-nav-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.l3-nav-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.l3-nav-title i {
    color: #f59e0b;
}

.l3-nav-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.l3-nav-close:hover {
    color: #ffffff;
}

.l3-nav-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
}

/* Drawer Body (Chat area) */
.l3-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Input Area */
.l3-nav-input-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    transition: border-color 0.2s ease;
}

.l3-nav-input-wrapper:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.l3-nav-input-wrapper i {
    color: #94a3b8;
    margin-right: 0.75rem;
}

.l3-nav-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #0f172a;
    background: transparent;
}

.l3-nav-input::placeholder {
    color: #94a3b8;
}

/* Example Chips */
.l3-nav-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.l3-nav-examples-title {
    width: 100%;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.l3-nav-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 0.4rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.l3-nav-chip:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

/* Results Area */
.l3-nav-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.l3-nav-results-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin: 0 0 0.5rem 0;
    display: none; /* Shown by JS when results exist */
}

/* Result Card */
.l3-nav-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.l3-nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.l3-nav-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.l3-nav-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.l3-nav-card-category {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.l3-nav-card-desc {
    font-size: 0.8rem;
    color: #475569;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.l3-nav-card-match {
    font-size: 0.7rem;
    color: #10b981;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.l3-nav-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.5rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.l3-nav-card-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* Empty State */
.l3-nav-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
    display: none;
}

.l3-nav-empty i {
    font-size: 2rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.l3-nav-empty p {
    margin: 0;
    font-size: 0.9rem;
}
