/**
 * Global Badge Component Styles
 * Reusable badge styles matching Next.js SectionBadge component
 * 
 * @component Badge
 * @version 1.0.0
 */

/* Base Badge Styles */
.modeo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem; /* px-4 py-2 */
    border-radius: 9999px; /* rounded-full */
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    letter-spacing: 0.025em; /* tracking-wide */
    border: 1px solid;
    transition: all 0.2s ease;
}

/* Badge Text */
.modeo-badge__text {
    display: inline-block;
    line-height: 1.25rem;
}

.modeo-badge__text.uppercase {
    text-transform: uppercase;
}

/* Badge Dot (pulsing indicator) */
.modeo-badge__dot {
    width: 0.5rem; /* w-2 */
    height: 0.5rem; /* h-2 */
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    flex-shrink: 0;
}

/* If Tailwind classes are used, remove border-radius from base */
.modeo-badge__dot.rounded-full {
    border-radius: 9999px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Badge Variants */

/* Primary (red) */
.modeo-badge--primary {
    background-color: #fef2f2; /* bg-red-50 */
    color: #dc2626; /* text-red-600 */
    border-color: #fee2e2; /* border-red-100 */
}

.modeo-badge--primary .modeo-badge__dot {
    background-color: #dc2626; /* bg-red-600 */
}

/* Secondary (gray) */
.modeo-badge--secondary {
    background-color: #f9fafb; /* bg-gray-50 */
    color: #4b5563; /* text-gray-600 */
    border-color: #f3f4f6; /* border-gray-100 */
}

.modeo-badge--secondary .modeo-badge__dot {
    background-color: #4b5563; /* bg-gray-600 */
}

/* Dark (for dark backgrounds - white with backdrop blur) */
.modeo-badge--dark {
    background-color: rgba(255, 255, 255, 0.1); /* bg-white/10 */
    color: rgba(255, 255, 255, 0.9); /* text-white/90 */
    border-color: rgba(255, 255, 255, 0.2); /* border-white/20 */
    backdrop-filter: blur(12px); /* backdrop-blur-md */
    -webkit-backdrop-filter: blur(12px);
    font-weight: 600; /* font-semibold */
}

.modeo-badge--dark .modeo-badge__text {
    color: rgba(255, 255, 255, 0.95); /* text-white */
}

.modeo-badge--dark .modeo-badge__dot {
    background-color: #dc2626; /* bg-red-500 or bg-primary */
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .modeo-badge {
        padding: 0.375rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .modeo-badge__dot {
        width: 0.375rem;
        height: 0.375rem;
    }
}

