/**
 * Badge Components
 *
 * Conversion-optimized badges with depth and gradients
 * Orange highlights for "Best Value" and featured products
 *
 * @package MattressProtectorReviews
 * @version 2.0.0 - Design System Transformation
 */

/* ============================================
   GRADE BADGES
   ============================================ */
.grade-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-500), var(--red-600));
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--highlight-top), 0 4px 12px rgba(220, 38, 38, 0.3);
}

.grade-badge-compact {
    padding: 0.5rem 1.25rem;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--white);
    border-radius: var(--radius-lg);
    border: none;
    background: linear-gradient(135deg, var(--gray-500), var(--gray-600));
    box-shadow: var(--highlight-top), 0 2px 8px rgba(75, 85, 99, 0.3);
}

/* ============================================
   GRADE COLOR CLASSES
   ============================================ */
.grade-A {
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    box-shadow: var(--highlight-top), 0 4px 12px rgba(22, 163, 74, 0.3);
}

.grade-B {
    background: var(--gradient-primary);
    box-shadow: var(--highlight-top), 0 4px 12px rgba(37, 99, 235, 0.3);
}

.grade-C {
    background: linear-gradient(135deg, var(--yellow-400), var(--yellow-500));
    color: var(--gray-900);
    box-shadow: var(--highlight-top), 0 4px 12px rgba(234, 179, 8, 0.3);
}

.grade-D {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    box-shadow: var(--highlight-top), 0 4px 12px rgba(234, 88, 12, 0.3);
}

.grade-F {
    background: linear-gradient(135deg, var(--red-600), var(--red-700));
    box-shadow: var(--highlight-top), 0 4px 12px rgba(185, 28, 28, 0.3);
}

/* ============================================
   PRODUCT GRADE BADGE
   ============================================ */
.product-grade-badge {
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-small);
}

/* ============================================
   PILLAR GRADE BADGE
   ============================================ */
.pillar-grade {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--white);
    border-radius: var(--radius-sm);
    border: none;
    box-shadow: var(--shadow-small);
}

/* ============================================
   CURRENT/FEATURED PRODUCT BADGE
   Conversion Optimized - Orange
   ============================================ */
.current-product-badge,
.best-value-badge,
.featured-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--gradient-cta);
    color: var(--white);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    box-shadow: var(--highlight-top), 0 3px 10px rgba(234, 88, 12, 0.4);
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--highlight-top), 0 3px 10px rgba(234, 88, 12, 0.4);
    }
    50% {
        box-shadow: var(--highlight-top), 0 5px 15px rgba(234, 88, 12, 0.6);
    }
}

/* "Top Pick" badge - Blue (Trust) */
.top-pick-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    box-shadow: var(--highlight-top), 0 3px 10px rgba(37, 99, 235, 0.4);
    z-index: 10;
}

/* ============================================
   FRAMEWORK VERDICT BADGES
   ============================================ */
.framework-verdict {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    margin-left: 0.5rem;
    border: none;
    box-shadow: var(--shadow-small);
}

.framework-verdict.yes,
.framework-verdict.excellent,
.framework-verdict.recommended {
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    color: var(--white);
}

.framework-verdict.good,
.framework-verdict.basic,
.framework-verdict.partial {
    background: var(--gradient-primary);
    color: var(--white);
}

.framework-verdict.limited,
.framework-verdict.no,
.framework-verdict.not_recommended {
    background: linear-gradient(135deg, var(--yellow-400), var(--yellow-500));
    color: var(--gray-900);
}

/* ============================================
   PILLAR WEIGHT BADGE
   ============================================ */
.pillar-weight {
    font-size: var(--text-xs);
    color: var(--text-caption);
    background: var(--layer-3);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    border: none;
    box-shadow: var(--shadow-small);
}

/* ============================================
   STATUS BADGES
   ============================================ */
.badge-new {
    background: var(--gradient-cta);
    color: var(--white);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    box-shadow: var(--highlight-top), 0 2px 6px rgba(234, 88, 12, 0.3);
}

.badge-updated {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    box-shadow: var(--highlight-top), 0 2px 6px rgba(37, 99, 235, 0.3);
}

.badge-sale {
    background: linear-gradient(135deg, var(--red-500), var(--red-600));
    color: var(--white);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    box-shadow: var(--highlight-top), 0 2px 6px rgba(220, 38, 38, 0.3);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .grade-badge-compact {
        padding: 0.375rem 1rem;
        font-size: var(--text-lg);
    }

    .current-product-badge,
    .best-value-badge,
    .top-pick-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem 0.625rem;
        font-size: 0.625rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .current-product-badge,
    .best-value-badge {
        animation: none;
    }
}
