/* resorts/templates/resorts/estado_pistas.html */

.ep-metric-label {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
}

.ep-meteorologia,
.ep-forecast-section {
    border-left: none !important;
    border-top: 3px solid #1976d2;
}

.ep-forecast-section {
    border-top-color: #ff9800;
}

/* Mobile-first responsive styles for Estado de Pistas */
@media (max-width: 768px) {
    /* Hero adjustments */
    .ep-hero { padding: 2rem 0 !important; padding-top: 7rem !important; }
    .ep-hero h1 { font-size: 1.4rem !important; }
    .ep-hero p { font-size: 0.95rem !important; }
    
    /* Card headers - stack on mobile */
    .ep-card-header { 
        flex-direction: column !important; 
        gap: 1rem !important;
        align-items: flex-start !important;
    }
    .ep-card-header a { 
        width: 100% !important; 
        text-align: center !important;
        padding: 0.75rem !important;
    }
    
    /* Metrics grid - adjust for mobile */
    .ep-metrics { 
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 0.5rem !important;
    }
    .ep-metric-value { font-size: 1.4rem !important; }
    .ep-metric-label { font-size: 0.65rem !important; letter-spacing: 0.5px !important; }
    .ep-metric-box { padding: 0.75rem 0.5rem !important; }
    
    /* Instalaciones section - stack on mobile */
    .ep-installations { 
        display: block !important;
    }
    .ep-installations > div { 
        margin-bottom: 1rem !important; 
    }
    
    /* Meteorologia section - optimize for mobile */
    .ep-meteorologia {
        border-top: 3px solid #1976d2 !important;
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    .ep-meteorologia > div { 
        font-size: 0.85rem !important; 
        margin-bottom: 0.25rem !important;
    }
    
    /* Forecast section */
    .ep-forecast-section { 
        padding: 0.75rem !important; 
        margin-bottom: 0.75rem !important;
    }
    .ep-forecast-section h4 { 
        font-size: 0.9rem !important; 
        margin-bottom: 0.5rem !important;
    }
    .ep-forecast-section p { 
        font-size: 0.85rem !important; 
        line-height: 1.4 !important;
    }
    
    /* Webcams grid */
    .ep-webcams-grid { 
        grid-template-columns: 1fr 1fr !important; 
        gap: 0.75rem !important;
    }
    .ep-webcam-img { height: 120px !important; }
    .ep-webcam-label { font-size: 0.75rem !important; padding: 0.5rem !important; }
    .ep-webcam-badge { font-size: 0.6rem !important; padding: 0.15rem 0.35rem !important; }
    
    /* Weather section */
    .ep-weather-grid { grid-template-columns: 1fr 1fr !important; gap: 0.75rem !important; }
    .ep-weather-box { padding: 1rem !important; }
    .ep-weather-temp { font-size: 2rem !important; }
    
    /* Forecast days */
    .ep-forecast-days { gap: 0.25rem !important; }
    .ep-forecast-day { padding: 0.5rem 0.25rem !important; min-width: 50px !important; }
    .ep-forecast-icon { font-size: 1rem !important; }
    .ep-forecast-temps { font-size: 0.7rem !important; }
    
    /* Avalanche section */
    .ep-avalanche-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    .ep-avalanche-indicator { 
        width: 70px !important;
        height: 70px !important;
        font-size: 2rem !important;
    }
    .ep-avalanche-info { 
        font-size: 1rem !important;
    }
    .ep-avalanche-warning { 
        padding: 1rem !important;
        margin-top: 0.5rem !important;
    }
    .ep-avalanche-warning i { 
        font-size: 1.5rem !important;
    }
    
    /* Avalanche scale - horizontal scroll on very small */
    .ep-avalanche-scale { 
        gap: 0.25rem !important; 
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
    }
    .ep-avalanche-item { 
        font-size: 0.6rem !important; 
        padding: 0.5rem 0.15rem !important;
        min-width: 55px !important;
        flex-shrink: 0 !important;
    }
    
    /* Section padding */
    .ep-section { padding: 1.25rem !important; border-radius: 16px !important; }
    .ep-section-title { font-size: 1.1rem !important; margin-bottom: 1rem !important; }
    .ep-section-icon { width: 32px !important; height: 32px !important; }
    
    /* CTA */
    .ep-cta { padding: 2rem 1rem !important; }
    .ep-cta h2 { font-size: 1.4rem !important; }
    .ep-cta-buttons { flex-direction: column !important; gap: 0.75rem !important; }
    .ep-cta-btn { width: 100% !important; justify-content: center !important; }
    
    /* Disclaimer */
    .ep-disclaimer { padding: 1rem !important; font-size: 0.85rem !important; }
}

@media (max-width: 480px) {
    .ep-hero h1 { font-size: 1.2rem !important; }
    .ep-metrics { grid-template-columns: repeat(3, 1fr) !important; }
    .ep-metric-value { font-size: 1.2rem !important; }
    .ep-metric-label { font-size: 0.6rem !important; }
    .ep-webcams-grid { grid-template-columns: 1fr !important; }
    .ep-webcam-img { height: 140px !important; }
    .ep-weather-grid { grid-template-columns: 1fr !important; }
    .ep-avalanche-indicator { width: 60px !important; height: 60px !important; font-size: 1.8rem !important; }
    .ep-section { padding: 1rem !important; }
    .ep-section-title { font-size: 1rem !important; }
    .ep-cta { padding: 1.5rem 1rem !important; }
    .ep-cta h2 { font-size: 1.2rem !important; }
    .ep-cta p { font-size: 0.95rem !important; }
}

/* Animación para indicador LIVE */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
