/*
 * Package Verification Badge Styles - Automatic System
 * Shows verification date on hover
 * VERSION 2.0: Accessibility Contrast Fix
 */

.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: help; 
}

/* Verified Badge (Green) - Contrast Fixed */
.verification-badge.verified {
    background: rgba(40, 167, 69, 0.1);
    color: #1e7e34; /* Darker green for readability */
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.verification-badge.verified i {
    color: #1e7e34;
}

/* Tooltip styling */
.verification-badge.verified[title] {
    position: relative;
}

.verification-badge.verified[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--py-secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* On Plan Cards */
.plan-card-wrapper {
    position: relative;
}

.plan-card-wrapper .verification-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* On Single Plan Page */
.sp-verification-badge {
    display: inline-block;
    margin-bottom: 10px;
}

.sp-verification-badge .verification-badge {
    font-size: 0.85rem;
    padding: 6px 15px;
}

/* On Related Plans in Sidebar */
.sp-related-post .verification-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    margin-top: 5px;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .verification-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .plan-card-wrapper .verification-badge {
        top: 5px;
        right: 5px;
    }
}