/*
 * UberMenu Enhancements — Theme-level customisations
 * Lives in: wp-content/themes/teamcomputers/css/ubermenu-enhancements.css
 * ------------------------------------------------------------------ */

/* =====================================================================
   1. ICONS — left-panel tab items
   ===================================================================== */

.ubermenu .ubermenu-tab .ubermenu-target .ubermenu-icon,
.ubermenu .ubermenu-tab .ubermenu-target-title .ubermenu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    font-size: 1em;
    flex-shrink: 0;
    margin-right: 0.55em;
    color: inherit;
    vertical-align: middle;
}

.ubermenu .ubermenu-tab .ubermenu-target {
    display: flex !important;
    align-items: center;
}

.ubermenu .ubermenu-tab .ubermenu-target .ubermenu-target-title {
    display: inline-flex;
    align-items: center;
    flex: 1;
}

/* =====================================================================
   2. PANEL HEADING — parent label at top of content panel
   ===================================================================
   Rendered via CSS ::before on the content panel <ul>.

   WHY ::before instead of a real DOM element:
   UberMenu uses :nth-child selectors on the content panel <ul> children
   to handle float clearing for its column grid. Any injected <li> shifts
   the nth-child counters of real menu items and breaks the column layout
   (e.g., item 1 ends up alone instead of pairing in a 2-col grid).
   CSS ::before pseudo-elements are NOT counted by :nth-child, so they
   have zero impact on the grid regardless of how many columns are used.

   The label text is set server-side via data-tc-label="…" on the <ul>.
   ===================================================================== */

.ubermenu .ubermenu-tab-content-panel::before {
    /* Read label from the data attribute set by PHP */
    content: attr(data-tc-label);

    /* Render as a full-width block ABOVE the floated <li> columns */
    display: block;
    float: none;
    clear: both;
    width: 100%;
    box-sizing: border-box;

    /* Typography — matches the screenshot style (all-caps, spacing) */
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a99b3;
    line-height: 1.4;
    padding: 0 0 18px;

    /* Not interactive */
    pointer-events: none;
}

/* Hide ::before when no label has been set */
.ubermenu .ubermenu-tab-content-panel:not([data-tc-label])::before {
    display: none;
}

/* =====================================================================
   3. CUSTOM SVG ICONS — per-item uploaded SVG
   ===================================================================== */

.ubermenu .tc-custom-svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    line-height: 1;
    vertical-align: middle;
    margin-right: 0.45em;
    color: inherit;
}

.ubermenu .tc-custom-svg-icon svg {
    width: 1em;
    height: 1em;
    display: block;
}

/* =====================================================================
   4. DARK MODE — system-preference driven overrides
   =====================================================================
   Palette from Figma:  base #0B081A  |  cards #1a1729  |  text #d1d5dc
   Active accent: rgba(21, 93, 252, 0.12)

   IMPORTANT: We prefix selectors with "html body" to boost specificity
   above UberMenu's inline <style> tag that loads after this file.
   ===================================================================== */