/* ============================================
   BADGES.CSS - Etiquetas y Tags para Cards
   Inspirado en Red Hat, Oracle y F1
   ============================================ */

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    transition: all 0.2s ease;
}

/* ==================== */
/* BADGE VARIANTS */
/* ==================== */

/* Featured Badge - Estilo F1 */
.badge-featured {
    background: var(--color-ferrari-red);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

/* New Badge - Estilo Red Hat */
.badge-new {
    background: linear-gradient(135deg, #DC143C 0%, #A00F2E 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.badge-new::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    animation: badgeShine 3s infinite;
}

@keyframes badgeShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* Enterprise Badge */
.badge-enterprise {
    background: rgba(37, 99, 235, 0.1);
    color: #60A5FA;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* Multiplataforma Badge */
.badge-multiplataforma {
    background: rgba(249, 115, 22, 0.1);
    color: #FB923C;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Cloud Badge */
.badge-cloud {
    background: rgba(16, 185, 129, 0.1);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Unlocked Badge - Estilo F1 Premium */
.badge-unlocked {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: var(--color-white);
    font-weight: 700;
}

/* Exclusive Badge */
.badge-exclusive {
    background: var(--color-surface-3);
    color: var(--color-ferrari-red);
    border: 1px solid var(--color-ferrari-red);
}

/* ==================== */
/* BADGE POSITIONS */
/* ==================== */

/* Top Left Badge en Cards */
.card-badge-top-left {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

/* Top Right Badge en Cards */
.card-badge-top-right {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

/* Badge Group - Múltiples badges */
.badge-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==================== */
/* BADGE CON ICONO */
/* ==================== */

.badge-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
}

.badge-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* ==================== */
/* HOVER EFFECTS */
/* ==================== */

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge-featured:hover {
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.5);
}

/* ==================== */
/* STATS BADGES - Estilo Red Hat */
/* ==================== */

.stat-badge {
    text-align: center;
    padding: 24px;
    background: var(--color-surface-2);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-badge:hover {
    background: var(--color-surface-3);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-ferrari-red);
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-light-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
}

.stat-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    display: block;
}

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

@media (max-width: 768px) {
    .badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}
