/**
 * Foiling Awards Hall of Fame - Official CSS
 * Developed by: Greta Eline Poclen
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;900&display=swap');

/* --- CONTENITORE PRINCIPALE --- */
.hof-container {
    font-family: 'DM Sans', sans-serif !important;
    color: #101C4E !important;
    max-width: 1100px;
    margin: 0 auto 60px auto; /* Rimosso margine superiore come richiesto */
    padding: 0 20px;
}

/* --- LABEL "SORT WINNERS BY" --- */
.hof-label {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 20px !important;
    text-transform: uppercase !important;
    color: #101C4E !important;
    text-align: center;
}

/* --- TOGGLE SWITCH (CATEGORY / EDITION) --- */
.hof-toggle-wrapper {
    display: flex;
    justify-content: center;
    border: 1.5px solid #101C4E;
    border-radius: 50px;
    padding: 3px;
    margin: 0 auto 50px auto;
    width: fit-content;
    background: #fff;
}

.hof-toggle-btn {
    background: transparent !important;
    border: none !important;
    color: #101C4E !important;
    padding: 10px 40px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
}

.hof-toggle-btn.active {
    background: #101C4E !important;
    color: #ffffff !important;
}

/* --- GRUPPI FILTRI (PILLOLE) --- */
.hof-filter-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hof-filter-pill {
    background: #ffffff !important;
    border: 1.5px solid #101C4E !important;
    border-radius: 50px !important;
    padding: 10px 25px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #101C4E !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
}

.hof-filter-pill:hover,
.hof-filter-pill.active {
    background: #101C4E !important;
    color: #ffffff !important;
}

/* --- LOGICA 5 PER RIGA (EDITIONS) --- */
#filter-group-edition .hof-filter-pill {
    flex: 0 1 calc(20% - 12px); 
    min-width: 120px;
    text-align: center;
    justify-content: center;
}

/* --- LOGICA ANDATA A CAPO PREMI SPECIALI --- */
/* Inserisce un'interruzione di riga prima del primo elemento .is-special */
.hof-filter-pill:not(.is-special) + .hof-filter-pill.is-special {
    flex-basis: 100% !important; 
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.hof-filter-pill.is-special {
    font-weight: 900 !important; /* Grassetto Extra per premi speciali */
    margin-top: 25px !important; /* Spazio extra per staccarli dalla riga sopra */
    letter-spacing: 0.05em !important;
}

/* --- RISULTATI (TABELLA) --- */
.hof-results {
    border-top: none !important;
    margin-top: 30px; 
}

.hof-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px !important; /* Righe leggermente più strette */
    border-bottom: 1.5px solid #101C4E !important;
    text-transform: uppercase !important;
    background: transparent !important;
}

.hof-col-type {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #101C4E !important;
    text-align: left;
    flex: 1;
}

.hof-col-winner {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    color: #101C4E !important;
    text-align: right;
    flex: 1;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .hof-toggle-btn { padding: 10px 20px !important; }
    .hof-row { padding: 20px 5px !important; }
    .hof-col-type, .hof-col-winner { font-size: 12px !important; }
    
    #filter-group-edition .hof-filter-pill {
        flex: 0 1 calc(33.33% - 10px); /* 3 per riga su mobile */
    }
}