/**
 * Tribute.js v5.1.3 — Base CSS + SM overrides
 *
 * @package SlideMind
 * @since 2.0.0
 */

/* =========================================================================
   Base Tribute styles
   ========================================================================= */

.tribute-container {
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    max-height: 300px;
    max-width: 500px;
    min-width: 260px;
    overflow: auto;
    display: block;
    z-index: 100000;
    border: 1px solid var(--sm-border, #e2e8f0);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    background: #fff;
}

.tribute-container ul {
    margin: 0;
    padding: 4px 0;
    list-style: none;
}

.tribute-container li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.1s ease;
}

.tribute-container li:hover,
.tribute-container li.highlight {
    background-color: var(--sm-bg-hover, #f1f5f9);
}

.tribute-container li.no-match {
    cursor: default;
    color: #94a3b8;
    font-style: italic;
}

/* =========================================================================
   SM Variable Autocomplete overrides
   ========================================================================= */

/* Variable name */
.sm-var-name {
    font-family: 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
    font-size: 12px;
    color: #1e293b;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Variable label (description) */
.sm-var-label {
    font-size: 11px;
    color: #94a3b8;
    margin-left: auto;
    flex-shrink: 0;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Type badges */
.sm-var-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    line-height: 1.4;
}

/* System — grey */
.sm-var-badge--system {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Memory — blue */
.sm-var-badge--memory {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Profile — green */
.sm-var-badge--profile {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Template — orange */
.sm-var-badge--template {
    background-color: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

/* Highlight match in search */
.tribute-container li span {
    font-weight: 700;
}

/* Header hint at top of menu */
.sm-autocomplete-hint {
    padding: 6px 12px;
    font-size: 11px;
    color: #94a3b8;
    border-bottom: 1px solid #f1f5f9;
    user-select: none;
}
