/**
 * LUMINA Dashboard Shared Components - Minimal V7
 * Info badges, tooltips, and help panel functionality
 */

/* ============================================
   INFO BADGE & TOOLTIP STYLES
   ============================================ */

.info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    margin-left: 6px;
    transition: all 0.1s ease;
    font-family: 'Inter', sans-serif;
}

.info-badge:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.info-badge::before {
    content: "?";
}

/* Tooltip container */
.info-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    background: #16181c;
    /* Surface */
    border: 1px solid #272a30;
    /* Border */
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.1s ease;
    z-index: 1000;
    text-align: left;
    pointer-events: none;
}

.info-badge:hover .info-tooltip,
.info-tooltip.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Tooltip arrow */
.info-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #272a30;
}

/* Tooltip sections */
.info-tooltip .hook {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.info-tooltip .example {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 8px;
    padding-left: 8px;
    border-left: 2px solid var(--border);
}

.info-tooltip .definition {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   HELP BUTTON & PANEL STYLES
   ============================================ */

.help-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: #16181c;
    border: 1px solid #272a30;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Help panel overlay */
.help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.help-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Help panel */
.help-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 100vw;
    height: 100vh;
    background: #0b0c0e;
    /* BG Primary */
    border-left: 1px solid #272a30;
    transform: translateX(100%);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.help-panel.active {
    transform: translateX(0);
}

.help-panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid #272a30;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-panel-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.help-panel-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.1s;
}

.help-panel-close:hover {
    color: var(--text-primary);
}

.help-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.help-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.help-step-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--bg-tertiary);
    /* Use CSS var or generic if unavailable */
    border: 1px solid #272a30;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.help-step-content h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.help-step-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.help-tip {
    background: #1f2937;
    /* Very subtle blue/grey tint */
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 16px;
}

.help-tip-title {
    font-size: 11px;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 4px;
}

.help-tip p {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.5;
}