/**
 * Contextual Help Tooltip Component
 * Provides accessible help icons with tooltips for complex UI elements
 * @version 1.0.0
 * @since 2.3.0
 */

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.help-icon:hover,
.help-icon:focus {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.help-icon:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Dark background variant */
.help-icon-light {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.help-icon-light:hover,
.help-icon-light:focus {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Bootstrap tooltip customization for help tooltips */
.help-tooltip .tooltip-inner {
    max-width: 280px;
    padding: 12px 16px;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.help-tooltip .tooltip-arrow::before {
    border-top-color: rgba(0, 0, 0, 0.95) !important;
    border-bottom-color: rgba(0, 0, 0, 0.95) !important;
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .help-icon {
        width: 22px;
        height: 22px;
        font-size: 14px;
        margin-left: 8px;
    }
    
    .help-tooltip .tooltip-inner {
        max-width: 240px;
        font-size: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .help-icon {
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    .help-icon:hover,
    .help-icon:focus {
        background-color: rgba(255, 255, 255, 0.25);
    }
}
