/**
 * Seção: Raio-X do Evento
 * 
 * ESPECIFICIDADE: Nível 3 - Classes com namespace específico
 * NAMESPACING: Prefixo .raio-x__*
 * PRIORIDADE: Carregamento #5
 */

/* ===== CONTAINER PRINCIPAL ===== */
.raio-x {
    background: linear-gradient(135deg, #ffffff 0%, var(--light-gray) 50%, #ffffff 100%);
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.raio-x::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.2;
}

/* ===== CARDS DE ESTATÍSTICAS ===== */
.raio-x__card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    height: 100%;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.raio-x__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--stat-accent, var(--primary-color)), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.raio-x__card:hover::before {
    transform: scaleX(1);
}

.raio-x__card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(139, 69, 19, 0.15);
    border-color: rgba(139, 69, 19, 0.1);
}

.raio-x__card-inner {
    position: relative;
    z-index: 1;
}

/* ===== ÍCONES ===== */
.raio-x__icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--stat-accent, var(--primary-color)) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 8px 24px rgba(139, 69, 19, 0.2);
    transition: all var(--transition-normal);
    position: relative;
}

.raio-x__icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--stat-accent, var(--primary-color)), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.raio-x__card:hover .raio-x__icon {
    transform: scale(1.1) rotate(5deg);
}

.raio-x__card:hover .raio-x__icon::before {
    opacity: 0.2;
}

/* ===== NÚMEROS ===== */
.raio-x__number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--stat-accent, var(--primary-color));
    font-family: var(--font-secondary);
    line-height: 1;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== LABELS ===== */
.raio-x__label {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* ===== DESCRIÇÕES ===== */
.raio-x__description {
    font-size: var(--font-size-sm);
    color: var(--gray);
    line-height: 1.5;
    margin-top: var(--spacing-sm);
}

/* ===== ESTADO VAZIO ===== */
.raio-x__empty-state {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
}

.raio-x__empty-icon {
    font-size: 4rem;
    color: var(--gray);
    opacity: 0.3;
    margin-bottom: var(--spacing-lg);
    display: block;
}

.raio-x__empty-text {
    font-size: var(--font-size-lg);
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 991px) {
    .raio-x {
        padding: var(--spacing-2xl) 0;
    }
    
    .raio-x__icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .raio-x__number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .raio-x {
        padding: var(--spacing-xl) 0;
    }
    
    .raio-x__card {
        margin-bottom: var(--spacing-lg);
    }
    
    .raio-x__icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .raio-x__number {
        font-size: 2rem;
    }
    
    .raio-x__label {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 576px) {
    .raio-x__card {
        padding: var(--spacing-lg);
    }
    
    .raio-x__icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
    }
    
    .raio-x__number {
        font-size: 1.75rem;
    }
    
    .raio-x__label {
        font-size: var(--font-size-sm);
    }
    
    .raio-x__description {
        font-size: var(--font-size-xs);
    }
}

/* ===== CLASSES DE COMPATIBILIDADE (LEGADO) ===== */
/* Manter para transição suave - remover em versão futura */
.stat-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    height: 100%;
}

.stat-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: var(--white);
    font-size: 2.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.stat-label {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--dark-gray);
}

.stat-description {
    font-size: var(--font-size-sm);
    color: var(--gray);
}

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    .raio-x__card,
    .raio-x__icon,
    .raio-x__number {
        animation: none !important;
        transition: none !important;
    }
    
    .raio-x__card:hover {
        transform: none;
    }
}
