/*
 * N360 Macro Expansion — Suggestion Popup Styles
 */
.n360-macro-suggestions {
    display: none;
    min-width: 320px;
    max-width: 480px;
    max-height: 260px;
    overflow-y: auto;
    background: var(--n360-surface, #fff);
    border: 1px solid var(--n360-border, #dee2e6);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: inherit;
    font-size: 0.875rem;
    z-index: var(--n360-z-index-tooltip, 10000);
}

.n360-macro-suggestion-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--n360-border-light, #f0f0f0);
    transition: background 0.15s;
}

.n360-macro-suggestion-item:last-child {
    border-bottom: none;
}

.n360-macro-suggestion-item:hover,
.n360-macro-suggestion-item.active {
    background: var(--n360-hover, #e9ecef);
}

.n360-macro-suggestion-item .macro-code {
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    font-weight: 600;
    color: var(--n360-primary, #0d6efd);
    white-space: nowrap;
    min-width: 100px;
}

.n360-macro-suggestion-item .macro-desc {
    flex: 1;
    color: var(--n360-text-secondary, #6c757d);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.n360-macro-suggestion-item .macro-usage {
    font-size: 0.75rem;
    color: var(--n360-text-muted, #adb5bd);
    white-space: nowrap;
}

/* RTL support */
[dir="rtl"] .n360-macro-suggestion-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .n360-macro-suggestion-item .macro-code {
    text-align: right;
}

/* Print — hide popup */
@media print {
    .n360-macro-suggestions {
        display: none !important;
    }
}
