﻿/* ========================================
   WEATHER - STILI BANNER METEO
   ======================================== */

/* ✅ TITOLO BANNER METEO - ULTRA COMPATTO */
.weather-section-title {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 3px;
    padding-left: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* ✅ BANNER METEO - ULTRA COMPATTO */
.weather-banner-desktop {
    background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e5e5e5;
    border-bottom: 2px solid #667eea;
    padding: 6px 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.weather-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.weather-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.weather-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.weather-label {
    font-size: 0.6rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    line-height: 1;
}

.weather-value {
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
    line-height: 1;
}

/* Link mappa nel titolo meteo - ULTRA COMPATTO */
.weather-map-link {
    font-size: 0.6rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 6px;
    border: 1px solid #667eea;
    border-radius: 3px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.weather-map-link:hover {
    background-color: #667eea;
    color: white;
    text-decoration: none;
}

/* ✅ PREVISIONI METEO - ULTRA COMPATTE */
.weather-forecast {
    display: flex !important;
    gap: 6px;
    justify-content: space-evenly;
    padding: 6px;
}

.weather-forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding: 6px;
    min-width: 70px;
    text-align: center;
}

.forecast-date {
    font-weight: 600;
    font-size: 0.7rem;
    color: #495057;
    margin-bottom: 3px;
}

.forecast-icon {
    font-size: 1.5rem;
    margin: 3px 0;
}

.forecast-condition {
    font-size: 0.65rem;
    color: #6c757d;
    margin-bottom: 4px;
    min-height: 20px;
    line-height: 1.2;
}

.forecast-temps {
    display: flex;
    gap: 6px;
    font-weight: 600;
    font-size: 0.75rem;
}

.temp-max {
    color: #dc3545;
}

.temp-min {
    color: #007bff;
}

/* ✅ STATO TERRENO - EVIDENZIATO */
.weather-track-condition {
    background: linear-gradient(135deg, rgba(255,193,7,0.15) 0%, rgba(255,193,7,0.25) 100%);
    padding: 4px 12px;
    border-radius: 5px;
    border: 1px solid rgba(255,193,7,0.4);
    transition: all 0.3s ease;
}

.weather-track-condition:hover {
    background: linear-gradient(135deg, rgba(255,193,7,0.25) 0%, rgba(255,193,7,0.35) 100%);
    border-color: rgba(255,193,7,0.6);
    transform: scale(1.05);
}

.weather-track-condition .weather-value {
    font-weight: 900;
    font-size: 0.95rem;
    color: #333;
}

/* ✅ STATO PISTA NELLE PREVISIONI */
.forecast-track-condition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 6px;
    background: linear-gradient(135deg, rgba(255,193,7,0.15) 0%, rgba(255,193,7,0.25) 100%);
    border: 1px solid rgba(255,193,7,0.3);
    border-radius: 4px;
    margin: 4px 0;
    font-size: 0.7rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.forecast-track-condition:hover {
    background: linear-gradient(135deg, rgba(255,193,7,0.25) 0%, rgba(255,193,7,0.35) 100%);
    border-color: rgba(255,193,7,0.5);
    transform: scale(1.05);
}

.forecast-track-condition .track-emoji {
    font-size: 1rem;
}

.forecast-track-condition .track-text {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Mobile */
@media (max-width: 768px) {
    .weather-section-title {
        display: none;
    }
    
    .weather-banner-desktop {
        padding: 5px 8px;
    }
    
    .weather-info {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .weather-icon {
        font-size: 1.2rem;
    }
    
    .weather-value {
        font-size: 0.8rem;
    }
    
    .weather-forecast {
        gap: 4px;
        padding: 4px;
    }
    
    .weather-forecast-day {
        padding: 4px;
        min-width: 60px;
    }
    
    .forecast-date {
        font-size: 0.65rem;
    }
    
    .forecast-icon {
        font-size: 1.3rem;
    }
    
    .forecast-condition {
        font-size: 0.6rem;
        min-height: 18px;
    }
    
    .forecast-temps {
        font-size: 0.7rem;
    }
    
    .weather-track-condition {
        padding: 3px 8px;
    }
    
    .weather-track-condition .weather-value {
        font-size: 0.85rem;
    }
    
    .forecast-track-condition {
        padding: 2px 4px;
        gap: 3px;
    }
    
    .forecast-track-condition .track-emoji {
        font-size: 0.9rem;
    }
    
    .forecast-track-condition .track-text {
        font-size: 0.6rem;
    }
}
