/**
 * ========================================
 * HALL OF FAME - SUPERCATEGORIAS V2
 * ========================================
 * Estilos completos para o sistema de SuperCategorias
 *
 * COMPONENTES:
 * - Selector "Ver SuperCategorias" / "Ver Categorias"
 * - Filtros de SuperCategoria (botões multi-seleção)
 * - Badges de SuperCategoria (simples e duplos)
 * - Responsivo e mobile-friendly
 *
 * AUTOR: Fernando Neiva - Race Admin
 * DATA: 2025-12-10
 * ========================================
 */

/* ========================================
   SELECTOR "VER SUPERCATEGORIAS" / "VER CATEGORIAS"
   ======================================== */

.hof-super-view-selector {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.hof-super-view-label {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.hof-super-view-buttons {
    display: flex;
    gap: 10px;
}

.hof-super-view-btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.hof-super-view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hof-super-view-btn.active {
    background: var(--cor-primaria, #FF6B00);
    border-color: var(--cor-primaria, #FF6B00);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
    transform: translateY(-2px);
}

.hof-super-view-btn.active:hover {
    background: var(--cor-primaria-hover, #ff8533);
    border-color: var(--cor-primaria-hover, #ff8533);
    transform: translateY(-3px);
}

/* ========================================
   FILTROS DE SUPERCATEGORIA
   ======================================== */

.hof-super-category-filters-container {

    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInDown 0.4s ease;
}

.hof-super-category-filters-container.active {
    display: block;
}

.hof-super-filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.hof-super-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hof-super-category-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.hof-super-category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.hof-super-category-btn.active {
    background: var(--cor-primaria, #FF6B00);
    border-color: var(--cor-primaria, #FF6B00);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.4);
    transform: translateY(-2px);
}

.hof-super-category-btn.active:hover {
    background: var(--cor-primaria-hover, #ff8533);
    border-color: var(--cor-primaria-hover, #ff8533);
    transform: translateY(-3px);
}

/* ========================================
   BADGES DE SUPERCATEGORIA
   ======================================== */

.hof-super-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg,
    var(--cor-primaria, #FF6B00),
    var(--cor-primaria-hover, #ff8533));
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    margin-bottom: 12px;
    animation: badgePulse 2s ease infinite;
}

.hof-super-badge.badge-double {
    background: linear-gradient(135deg,
    var(--cor-primaria, #FF6B00),
    var(--cor-secundaria, #FFD700));
    gap: 10px;
}

.hof-super-badge .badge-separator {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin: 0 4px;
}

/* Animação sutil do badge */
@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    }
    50% {
        box-shadow: 0 6px 18px rgba(255, 107, 0, 0.5);
    }
}

/* Badge em cards de equipes */
.hof-champion-card[data-tipo="equipes"] .hof-super-badge {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 768px) {
    .hof-super-view-selector {
        flex-direction: column;
        padding: 20px 15px;
        gap: 15px;
    }

    .hof-super-view-buttons {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .hof-super-view-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 14px;
    }

    .hof-super-category-filters-container {
        padding: 20px 15px;
    }

    .hof-super-filter-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .hof-super-category-filters {
        gap: 10px;
    }

    .hof-super-category-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 13px;
    }

    .hof-super-badge {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .hof-super-view-selector {
        padding: 15px 10px;
    }

    .hof-super-view-label {
        font-size: 14px;
    }

    .hof-super-view-btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    .hof-super-category-filters-container {
        padding: 15px 10px;
    }

    .hof-super-filter-title {
        font-size: 15px;
    }

    .hof-super-category-btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .hof-super-badge {
        font-size: 10px;
        padding: 5px 10px;
    }
}

/* ========================================
   ESTADOS DE CARREGAMENTO E TRANSIÇÕES
   ======================================== */

.hof-champion-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hof-champion-card.filtered-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* ========================================
   AJUSTES PARA TEMAS PERSONALIZADOS
   ======================================== */

/* Tema escuro (override de variáveis via backend) */
[data-theme="dark"] .hof-super-view-selector,
[data-theme="dark"] .hof-super-category-filters-container {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .hof-super-view-btn,
[data-theme="dark"] .hof-super-category-btn {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Tema claro */
[data-theme="light"] .hof-super-view-selector,
[data-theme="light"] .hof-super-category-filters-container {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hof-super-view-label,
[data-theme="light"] .hof-super-filter-title {
    color: #333333;
}

[data-theme="light"] .hof-super-view-btn,
[data-theme="light"] .hof-super-category-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
    color: #333333;
}

[data-theme="light"] .hof-super-view-btn:hover,
[data-theme="light"] .hof-super-category-btn:hover {
    background: #f5f5f5;
    color: #000000;
}


/* ========================================
   FILTROS DE SUPERCATEGORIA - ALINHAMENTO COM JS
   ======================================== */

.hof-super-category-filter-pill {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
}

.hof-super-category-filter-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.hof-super-category-filter-pill.active {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-color: #ffc107;
    color: #000;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
}

.hof-super-category-filter-pill.active:hover {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb74d 100%);
    border-color: #ffd54f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.5);
}

/* Container dos filtros */
.hof-super-category-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Responsivo */
@media (max-width: 768px) {
    .hof-super-category-filter-pill {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 13px;
    }

    .hof-super-category-filters-container {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hof-super-category-filter-pill {
        padding: 10px 16px;
        font-size: 12px;
    }
}


/* ========================================
   BADGES DAS CATEGORIAS-FILHAS (SUPERCATEGORIAS)
   ======================================== */

/* Container dos badges */
.hof-super-champion-categories {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 16px auto 24px auto !important;
    padding: 0 20px !important;
    width: 100%;
}

/* Cada badge individual */
.hof-category-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 193, 7, 0.4) !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
    cursor: default !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Hover nos badges */
.hof-category-badge:hover {
    background: rgba(255, 193, 7, 0.2) !important;
    border-color: rgba(255, 193, 7, 0.7) !important;
    color: #ffc107 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3) !important;
}

/* Responsivo - Tablet */
@media (max-width: 768px) {
    .hof-super-champion-categories {
        gap: 6px !important;
        padding: 0 12px !important;
        margin: 12px auto 20px auto !important;
    }

    .hof-category-badge {
        font-size: 12px !important;
        padding: 6px 14px !important;
    }
}

/* Responsivo - Mobile */
@media (max-width: 480px) {
    .hof-super-champion-categories {
        gap: 5px !important;
        padding: 0 8px !important;
        margin: 10px auto 16px auto !important;
    }

    .hof-category-badge {
        font-size: 11px !important;
        padding: 5px 12px !important;
    }
}
