/**
 * Bonus Program Styles
 */

.bonus-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 110, 0, 0.1);
    color: var(--accent); /* Using the accent color from the theme */
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 4px;
    position: relative;
    cursor: default;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 110, 0, 0.2);
}

.bonus-badge:hover {
    background: rgba(255, 110, 0, 0.15);
    transform: translateY(-1px);
}

.bonus-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    margin-left: 6px;
    cursor: help;
    position: relative;
}

/* Tooltip Styles */
.bonus-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 240px;
    background: var(--secondary);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: left;
    pointer-events: none;
}

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

.bonus-icon:hover .bonus-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .bonus-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .bonus-tooltip {
        width: 200px;
        left: auto;
        right: -20px;
        transform: translateY(-10px);
    }
    
    .bonus-tooltip::after {
        left: auto;
        right: 24px;
        transform: none;
    }
    
    .bonus-icon:hover .bonus-tooltip {
        transform: translateY(-5px);
    }
}
