/**
 * Badge Component
 * Status badges, chips, and labels
 *
 * @package BeepBeep_AI
 * @since 5.0.0
 */

/* ==================================================
   BASE BADGE
   ================================================== */

.bbai-badge {
    display: inline-block;
    padding: var(--bbai-space-1) var(--bbai-space-2);
    border-radius: var(--bbai-radius-full);
    font-size: var(--bbai-text-xs);
    border: 1px solid var(--bbai-border-primary);
    background: var(--bbai-white);
    font-weight: 600;
}

.bbai-badge--excellent {
    color: #065f46;
    background: var(--bbai-success-bg);
    border-color: var(--bbai-success-light);
}

.bbai-badge--critical {
    color: #991b1b;
    background: var(--bbai-danger-light);
    border-color: #fecaca;
}

/* ==================================================
   STATUS BADGES (within tables)
   ================================================== */

.bbai-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--bbai-radius-full);
    font-size: 0.825rem;
    font-weight: var(--bbai-font-semibold);
    letter-spacing: 0.01em;
}

.bbai-status-badge--optimized {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.bbai-status-badge--missing {
    background: rgba(251, 191, 36, 0.18);
    color: #92400e;
}

.bbai-status-badge--regenerated {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

/* ==================================================
   PLAN BADGES
   ================================================== */

.bbai-plan-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.bbai-plan-badge--pro {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Usage Plan Badges */
.bbai-usage-plan-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.bbai-usage-plan-badge--free {
    background: #f3f4f6;
    color: #6b7280;
}

.bbai-usage-plan-badge--pro {
    background: #dbeafe;
    color: #1e40af;
}

.bbai-usage-plan-badge--agency {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Settings Plan Badge */
.bbai-settings-plan-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bbai-settings-plan-badge--free {
    background: #f3f4f6;
    color: #6b7280;
}

.bbai-settings-plan-badge--pro {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

/* ==================================================
   PRICING BADGE
   ================================================== */

.bbai-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #1d4ed8;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(29, 78, 216, 0.3);
}

/* ==================================================
   STAT CHIPS
   ================================================== */

.bbai-stats-chips {
    display: inline-flex;
    gap: var(--bbai-space-3);
    align-items: center;
    justify-content: center;
    margin: 0 0 var(--bbai-space-6) 0;
}

.bbai-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--bbai-space-2);
    padding: var(--bbai-space-2) var(--bbai-space-3);
    border-radius: var(--bbai-radius-full);
    font-size: 13px;
    border: 1px solid transparent;
}

.bbai-chip__label {
    color: var(--bbai-gray-600);
}

.bbai-chip__value {
    font-weight: var(--bbai-font-bold);
}

.bbai-chip--success {
    background: var(--bbai-success-bg);
    border-color: var(--bbai-success-light);
    color: #065f46;
}

.bbai-chip--warning {
    background: var(--bbai-warning-bg);
    border-color: var(--bbai-warning-light);
    color: #9a3412;
}

/* ==================================================
   SPECIAL BADGES
   ================================================== */

/* Time Saved Badge */
.bbai-time-saved-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

/* Optimization Badge */
.bbai-optimization-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Debug Badge */
.bbai-debug-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fef3c7;
    border: 1px solid #fde047;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
}

.bbai-debug-badge-icon {
    width: 14px;
    height: 14px;
}

.bbai-debug-badge-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Badge */
.bbai-modal__badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer CTA Badges */
.bbai-footer-cta-badge {
    font-size: 13px;
    color: #677388;
    margin-left: 8px;
}

.bbai-footer-cta-badge-coming-soon {
    display: inline-block;
    padding: 4px 8px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bbai-footer-cta-badge-new {
    display: inline-block;
    padding: 4px 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 768px) {
    .bbai-stats-chips {
        flex-wrap: wrap;
    }

    .bbai-chip {
        font-size: 12px;
        padding: var(--bbai-space-1) var(--bbai-space-2);
    }

    .bbai-usage-plan-badge {
        top: 12px;
        left: 12px;
        font-size: 10px;
    }
}
