/* ============================================================
   Lumo Motion Nav — light theme
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.lmn-nav {
    position: relative;
    display: inline-block;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
}

/* ── Nav bar ─────────────────────────────────────────────── */
.lmn-nav-list {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

/* ── Animated highlight pill ─────────────────────────────── */
.lmn-highlight {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: #e5e7eb;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    /* transform / width / height driven by JS spring */
    will-change: transform, width, height, opacity;
}

/* ── Triggers & plain links ──────────────────────────────── */
.lmn-trigger,
.lmn-plain-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: none;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    transition: color 0.15s ease;
    user-select: none;
}

.lmn-trigger:focus-visible,
.lmn-plain-link:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Chevron */
.lmn-chevron {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #9ca3af;
}
.lmn-trigger[aria-expanded="true"] .lmn-chevron {
    transform: rotate(180deg);
}

/* ── Viewport (morphing dropdown shell) ──────────────────── */
.lmn-viewport {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 200;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.10),
                0 2px 8px  -2px rgba(0, 0, 0, 0.06);
    pointer-events: none;
    opacity: 0;
    width: 0;
    height: 0;
    /* transform / width / height / opacity animated by JS spring */
    will-change: width, height, opacity, transform;
}
.lmn-viewport.lmn-open {
    pointer-events: auto;
}

.lmn-viewport-inner {
    position: relative;
}

/* ── Content panels ──────────────────────────────────────── */
.lmn-content {
    position: absolute;
    top: 0;
    left: 0;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    /* JS controls visibility/transition */
    will-change: opacity, transform;
}
/* Active panel becomes "in flow" so viewport-inner can measure it */
.lmn-content.lmn-active-panel {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

/* ── Section label ───────────────────────────────────────── */
.lmn-section-label {
    padding: 4px 10px 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9ca3af;
}

/* ── Dropdown items (shared) ─────────────────────────────── */
.lmn-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.lmn-dd-item:hover {
    background-color: #f3f4f6;
}

.lmn-dd-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
}
.lmn-dd-icon.lmn-icon-large {
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}
.lmn-dd-icon i,
.lmn-dd-icon svg {
    width: 1em;
    height: 1em;
}

.lmn-dd-item-body {
    flex: 1;
    min-width: 0;
}
.lmn-dd-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}
.lmn-dd-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
    margin-top: 2px;
}
.lmn-dd-badge {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-left: auto;
    padding-left: 10px;
}

/* ── LIST layout ─────────────────────────────────────────── */
.lmn-list-layout {
    display: flex;
    gap: 0;
    min-width: 300px;
}
.lmn-list-layout.lmn-has-featured {
    min-width: 520px;
}

.lmn-list-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* List items with icon */
.lmn-dd-list-item {
    align-items: center;
}

/* Right featured panel (Resources style) */
.lmn-list-featured {
    width: 210px;
    border-left: 1px solid #f3f4f6;
    margin-left: 8px;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lmn-list-featured .lmn-dd-title {
    font-size: 15px;
    font-weight: 700;
}
.lmn-list-featured .lmn-dd-desc {
    font-size: 13px;
    white-space: normal;
    line-height: 1.5;
}

.lmn-featured-cta {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    border-bottom: 1.5px solid currentColor;
    padding-bottom: 1px;
    transition: opacity 0.15s ease;
    width: fit-content;
}
.lmn-featured-cta:hover { opacity: 0.65; }

/* ── FEATURED layout (Products style) ───────────────────── */
.lmn-featured-layout {
    display: flex;
    gap: 12px;
    min-width: 520px;
}

/* Hero left tile */
.lmn-featured-hero {
    width: 190px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
}
.lmn-featured-hero .lmn-dd-title {
    font-size: 16px;
    font-weight: 700;
}
.lmn-featured-hero .lmn-dd-desc {
    font-size: 13px;
    white-space: normal;
    line-height: 1.5;
}

/* Grid right side (2×N) */
.lmn-grid-items {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    align-content: start;
}

.lmn-dd-grid-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 10px 12px;
}
.lmn-dd-item-header {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}
.lmn-dd-item-header .lmn-dd-title {
    flex: 1;
}
.lmn-dd-item-header .lmn-dd-badge {
    font-size: 12px;
    color: #9ca3af;
    padding-left: 0;
    margin-left: 0;
}
.lmn-dd-grid-item .lmn-dd-desc {
    white-space: normal;
    font-size: 12px;
}
