/**
 * ENNU Life Peptide Qualification Tooltips
 * 
 * @package ENNU_Life_Assessments
 * @version 99.9.0
 */

.ennu-peptide-tooltip {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 320px;
    min-width: 280px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #e1e5e9;
    z-index: 99999;
    pointer-events: none;
}

.ennu-peptide-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
}

.ennu-peptide-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 9px solid transparent;
    border-top-color: #e1e5e9;
    z-index: -1;
}

/* Tooltip positioned below button */
.ennu-peptide-tooltip.below::before {
    top: -16px;
    border-top-color: transparent;
    border-bottom-color: #fff;
}

.ennu-peptide-tooltip.below::after {
    top: -18px;
    border-top-color: transparent;
    border-bottom-color: #e1e5e9;
}

/* Tooltip header */
.ennu-peptide-tooltip .tooltip-header {
    padding: 12px 16px 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.ennu-peptide-tooltip .tooltip-header i {
    font-size: 16px;
}

.ennu-peptide-tooltip .tooltip-header.qualified {
    color: #059669;
}

.ennu-peptide-tooltip .tooltip-header.qualified i {
    color: #10b981;
}

.ennu-peptide-tooltip .tooltip-header.not-qualified {
    color: #dc2626;
}

.ennu-peptide-tooltip .tooltip-header.not-qualified i {
    color: #ef4444;
}

/* Tooltip content */
.ennu-peptide-tooltip .tooltip-content {
    padding: 0 16px 16px;
}

.ennu-peptide-tooltip.qualified .tooltip-content {
    color: #064e3b;
}

/* Missing requirements */
.ennu-peptide-tooltip .missing-requirements {
    margin-bottom: 12px;
}

.ennu-peptide-tooltip .missing-requirements strong {
    color: #dc2626;
    font-weight: 600;
}

.ennu-peptide-tooltip .missing-requirements ul {
    margin: 6px 0 0 0;
    padding-left: 20px;
    color: #374151;
}

.ennu-peptide-tooltip .missing-requirements li {
    margin-bottom: 4px;
    font-size: 13px;
}

/* Next step */
.ennu-peptide-tooltip .next-step {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
    font-size: 13px;
}

.ennu-peptide-tooltip .next-step strong {
    color: #1e40af;
    font-weight: 600;
}

/* Progress bar */
.ennu-peptide-tooltip .progress-bar {
    position: relative;
    background: #f3f4f6;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
}

.ennu-peptide-tooltip .progress-fill {
    background: linear-gradient(90deg, #10b981, #059669);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    min-width: 2px;
}

.ennu-peptide-tooltip .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Button states for peptides */
.btn-add-to-cart.peptide-not-qualified,
.btn-schedule-consultation.peptide-not-qualified {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.btn-add-to-cart.peptide-not-qualified::after,
.btn-schedule-consultation.peptide-not-qualified::after {
    content: '🔒';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
    opacity: 0.7;
}

/* Hover effects */
.btn-add-to-cart.peptide-not-qualified:hover,
.btn-schedule-consultation.peptide-not-qualified:hover {
    transform: none;
    box-shadow: none;
}

/* Animation for tooltip appearance */
@keyframes tooltipFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ennu-peptide-tooltip {
    animation: tooltipFadeIn 0.2s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ennu-peptide-tooltip {
        max-width: 280px;
        min-width: 240px;
        font-size: 13px;
    }
    
    .ennu-peptide-tooltip .tooltip-header {
        padding: 10px 12px 6px;
        font-size: 14px;
    }
    
    .ennu-peptide-tooltip .tooltip-content {
        padding: 0 12px 12px;
    }
    
    .ennu-peptide-tooltip .missing-requirements li {
        font-size: 12px;
    }
    
    .ennu-peptide-tooltip .next-step {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .ennu-peptide-tooltip .progress-text {
        font-size: 10px;
    }
}

