/**
 * Stili mod_calcio_view
 */

.mod-calcio-view {
    width: 100%;
    margin: 20px 0;
}

/* ========== BOX RICERCA ========== */
.giornata-search-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.giornata-search-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-color: #ff6600;
    padding: 8px 16px;
    border-radius: 4px;
}

.giornata-search-input {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.giornata-search-input:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.1);
}

.giornata-search-btn {
    padding: 8px 20px;
    background-color: #333;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.giornata-search-btn:hover {
    background-color: #555;
}

/* ========== GIORNATA CARD ========== */
.giornata-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.giornata-header {
    padding: 15px 20px;
    text-align: center;
}

.giornata-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

/* ========== PARTITE ========== */
.partite-container {
    padding: 20px;
}

.partita-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    gap: 12px;
}

.partita-row:last-child {
    margin-bottom: 0;
}

.partita-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* ========== SQUADRE ========== */
.squadra {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.squadra-casa {
    justify-content: flex-end;
}

.squadra-trasferta {
    justify-content: flex-start;
}

.squadra-nome {
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.squadra-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
}

/* ========== PUNTEGGIO ========== */
.score-box {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
    min-width: 70px;
}

/* ========== SWIPER ========== */
.calcio-swiper {
    padding-bottom: 15px;
}

/* Nascondi frecce predefinite */
.swiper-button-next,
.swiper-button-prev {
    display: none;
}

/* ========== NUMERAZIONE GIORNATE ========== */
.giornate-numeri {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
}

.giornata-num-btn {
    min-width: 36px;
    height: 36px;
    padding: 6px 10px;
    border: 2px solid #ddd;
    background: #ffffff;
    color: #333333;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.giornata-num-btn:hover {
    border-color: #ff6600;
    background: #fff5f0;
    transform: translateY(-2px);
}

.giornata-num-btn.active {
    border-color: #ff6600;
    background: #ff6600;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

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

/* Tablet */
@media (max-width: 1024px) {
    .giornata-header h3 {
        font-size: 16px;
    }
    
    .partita-row {
        padding: 9px 12px;
        gap: 10px;
    }
    
    .squadra-nome {
        font-size: 13px;
    }
    
    .squadra-logo {
        width: 28px;
        height: 28px;
    }
    
    .score-box {
        font-size: 16px;
        padding: 6px 14px;
        min-width: 65px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mod-calcio-view {
        margin: 10px 0;
    }
    
    .giornata-search-container {
        justify-content: center;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .giornata-search-label {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .giornata-search-input {
        width: 100px;
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .giornata-search-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .giornata-card {
        margin-bottom: 15px;
    }
    
    .giornata-header {
        padding: 12px 15px;
    }
    
    .giornata-header h3 {
        font-size: 15px;
    }
    
    .partite-container {
        padding: 15px;
    }
    
    .partita-row {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .squadra {
        gap: 6px;
    }
    
    .squadra-nome {
        font-size: 12px;
    }
    
    .squadra-logo {
        width: 24px;
        height: 24px;
    }
    
    .score-box {
        font-size: 14px;
        padding: 6px 12px;
        min-width: 60px;
    }
    
    .calcio-swiper {
        padding-bottom: 10px;
    }
    
    .giornate-numeri {
        gap: 6px;
        padding: 12px 8px;
    }
    
    .giornata-num-btn {
        min-width: 32px;
        height: 32px;
        padding: 4px 8px;
        font-size: 13px;
    }
}

/* Mobile piccoli */
@media (max-width: 480px) {
    .giornata-header h3 {
        font-size: 14px;
    }
    
    .partite-container {
        padding: 12px;
    }
    
    .partita-row {
        padding: 7px 8px;
        gap: 6px;
    }
    
    .squadra {
        gap: 5px;
    }
    
    .squadra-nome {
        font-size: 11px;
    }
    
    .squadra-logo {
        width: 20px;
        height: 20px;
    }
    
    .score-box {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .giornate-numeri {
        gap: 5px;
        padding: 10px 5px;
    }
    
    .giornata-num-btn {
        min-width: 28px;
        height: 28px;
        padding: 3px 6px;
        font-size: 12px;
    }
}
