/* Localized Weather Advice Visualization Styles */

.weather-visualization-container {
    margin: 20px 0;
}

/* Regional Weather Dashboard Styles */
.regional-info {
    font-size: 0.9rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.info-item small {
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.suitability-indicator {
    position: relative;
}

.suitability-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.suitability-circle:hover {
    transform: scale(1.05);
}

.suitability-circle.suitability-success {
    background: linear-gradient(135deg, #198754, #20c997);
    color: white;
}

.suitability-circle.suitability-warning {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
    color: white;
}

.suitability-circle.suitability-danger {
    background: linear-gradient(135deg, #dc3545, #e55353);
    color: white;
}

.suitability-score {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.suitability-label {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 2px;
}

/* Temperature Gauge Styles */
.weather-gauge {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.gauge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.gauge-header h6 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.current-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
}

.gauge-container {
    text-align: center;
    margin: 20px 0;
}

.gauge-legend {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

/* Humidity Visualization Styles */
.humidity-viz {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.humidity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.humidity-header h6 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.humidity-header .current-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0dcaf0;
    background: rgba(13, 202, 240, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
}

.humidity-bar-container {
    margin: 20px 0;
}

.humidity-bar {
    position: relative;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.humidity-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
}

.humidity-optimal-zone {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(25, 135, 84, 0.3) 50%, transparent 100%);
    border: 2px solid #198754;
    border-radius: 10px;
    box-sizing: border-box;
}

.humidity-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6c757d;
}

.regional-context {
    margin-top: 15px;
}

.context-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 12px;
    border-radius: 8px;
    border-right: 4px solid #0dcaf0;
}

.context-text {
    color: #495057;
    font-size: 0.9rem;
}

/* Wind Visualization Styles */
.wind-viz {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.wind-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wind-header h6 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.wind-header .current-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
}

.wind-indicator {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px 0;
}

.wind-speed-meter {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 100px;
}

.wind-bar {
    width: 12px;
    border-radius: 6px;
    transition: background-color 0.5s ease;
}

.wind-direction-compass {
    position: relative;
}

.compass-face {
    width: 80px;
    height: 80px;
    border: 3px solid #dee2e6;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, #fff 0%, #f8f9fa 100%);
}

.wind-arrow {
    position: absolute;
    width: 4px;
    height: 30px;
    background: #dc3545;
    top: 10px;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 2px;
    transition: transform 1s ease;
}

.wind-arrow::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -3px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid #dc3545;
}

.wind-impact-alert {
    margin-top: 15px;
}

/* Suitability Chart Styles */
.suitability-chart {
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.suitability-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.suitability-header h6 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.suitability-score {
    font-size: 2rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.suitability-score.excellent {
    background: linear-gradient(135deg, #198754, #20c997);
    color: white;
}

.suitability-score.good {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
    color: white;
}

.suitability-score.fair {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
}

.suitability-score.poor {
    background: linear-gradient(135deg, #dc3545, #e55353);
    color: white;
}

.suitability-breakdown {
    margin: 20px 0;
}

.factor-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.factor-bar {
    display: grid;
    grid-template-columns: 120px 1fr 50px;
    gap: 15px;
    align-items: center;
}

.factor-bar label {
    font-weight: 500;
    color: #495057;
    margin: 0;
}

.factor-bar .progress {
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.factor-bar .progress-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease;
}

.factor-bar span {
    font-weight: bold;
    color: #495057;
    text-align: center;
}

.suitability-recommendation {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .weather-visualization-container {
        margin: 15px 0;
    }
    
    .weather-gauge,
    .humidity-viz,
    .wind-viz,
    .suitability-chart {
        padding: 15px;
    }
    
    .gauge-header,
    .humidity-header,
    .wind-header,
    .suitability-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .wind-indicator {
        flex-direction: column;
        gap: 20px;
    }
    
    .factor-bar {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .current-value,
    .suitability-score {
        font-size: 1.2rem;
    }
    
    .legend-item {
        justify-content: center;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

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

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .weather-gauge,
    .humidity-viz,
    .wind-viz,
    .suitability-chart {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    .gauge-header h6,
    .humidity-header h6,
    .wind-header h6,
    .suitability-header h6,
    .factor-bar label,
    .context-text {
        color: #e2e8f0;
    }
    
    .humidity-bar,
    .factor-bar .progress {
        background: #4a5568;
    }
    
    .context-card {
        background: rgba(45, 55, 72, 0.8);
        border-right-color: #0dcaf0;
    }
    
    .compass-face {
        background: radial-gradient(circle, #2d3748 0%, #4a5568 100%);
        border-color: #4a5568;
    }
}