/* Tooltip System */

.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: help;
    position: relative;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    cursor: help;
    transition: all 0.2s;
}

.tooltip-icon:hover {
    background: #e0115f;
    border-color: #e0115f;
    color: white;
    transform: scale(1.1);
}

.tooltip-content {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    min-width: 200px;
    max-width: 300px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.tooltip-trigger:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 12px);
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border-color);
}

.tooltip-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

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

.tooltip-example {
    margin-top: 8px;
    padding: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Mobile tooltip adjustments */
@media (max-width: 768px) {
    .tooltip-content {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        transform: none;
        max-width: none;
    }

    .tooltip-content::after {
        display: none;
    }

    .tooltip-trigger:hover .tooltip-content {
        bottom: 20px;
    }
}

/* Help Button */
.help-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.help-button:hover {
    background: var(--bg-secondary);
    border-color: #e0115f;
    color: #e0115f;
    transform: translateY(-2px);
}

.help-button-icon {
    font-size: 16px;
}

/* Floating Help Button */
.floating-help {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0115f 0%, #c71050 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(224, 17, 95, 0.4);
    z-index: 999;
    transition: all 0.3s;
}

.floating-help:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(224, 17, 95, 0.6);
}

/* Risk Warning Banner */
.risk-warning {
    padding: 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-left: 4px solid #fbbf24;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: start;
}

.risk-warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.risk-warning-content {
    flex: 1;
}

.risk-warning-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.risk-warning-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.risk-warning-text ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.risk-warning-text li {
    margin-bottom: 4px;
}

/* Disclaimer */
.disclaimer {
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 16px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
}

/* Info Box */
.info-box {
    padding: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: start;
}

.info-box-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.info-box-content {
    flex: 1;
}

.info-box-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-box-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}
