/**
 * Kind Cities - Weather Display Styles
 */

/* Weather Container */
.kc-city-weather {
    margin: 30px 0;
    padding: 20px;
    background-color: #f5f7fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.kc-city-weather-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
    border-bottom: 1px solid #e0e5eb;
    padding-bottom: 10px;
}

/* Current Weather */
.kc-weather-current {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.kc-weather-icon {
    flex: 0 0 80px;
    margin-right: 15px;
}

.kc-weather-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.kc-weather-info {
    flex-grow: 1;
}

.kc-weather-temp {
    font-size: 2.2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.kc-weather-desc {
    font-size: 1.2em;
    color: #34495e;
    margin-bottom: 10px;
}

.kc-weather-details {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.95em;
    color: #5d6d7e;
}

.kc-weather-wind, 
.kc-weather-humidity {
    margin-right: 20px;
    margin-bottom: 5px;
}

.kc-weather-label {
    font-weight: 600;
    margin-right: 5px;
}

/* Forecast */
.kc-weather-forecast {
    margin-top: 20px;
    border-top: 1px solid #e0e5eb;
    padding-top: 20px;
}

.kc-weather-forecast h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #333;
}

.kc-forecast-summary {
    margin-bottom: 15px;
    font-style: italic;
    color: #5d6d7e;
}

.kc-forecast-periods {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    margin: 0 -10px;
}

.kc-forecast-period {
    flex: 0 0 140px;
    padding: 10px;
    margin: 0 5px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.kc-forecast-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 0.95em;
}

.kc-forecast-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
}

.kc-forecast-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.kc-forecast-temp {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.kc-forecast-desc {
    font-size: 0.85em;
    color: #5d6d7e;
}

/* Footer Info */
.kc-weather-updated {
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 0.85em;
}

.kc-weather-attribution {
    margin-top: 10px;
    color: #7f8c8d;
    font-size: 0.85em;
}

.kc-weather-attribution a {
    color: #3498db;
    text-decoration: none;
}

.kc-weather-attribution a:hover {
    text-decoration: underline;
}

/* Error Message */
.kc-error {
    color: #e74c3c;
    font-style: italic;
}

/* Admin Preview */
.kc-weather-admin-preview {
    font-size: 0.9em;
}

.kc-weather-preview {
    margin-bottom: 15px;
}

.kc-weather-preview h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.kc-weather-preview .kc-temp {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 5px;
}

.kc-weather-preview .kc-desc {
    margin-bottom: 8px;
}

.kc-weather-preview .kc-wind,
.kc-weather-preview .kc-humidity {
    margin-bottom: 4px;
    font-size: 0.9em;
}

.kc-weather-preview .kc-updated {
    margin-top: 10px;
    font-size: 0.85em;
    color: #777;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .kc-forecast-periods {
        margin: 0 -5px;
    }
    
    .kc-forecast-period {
        flex: 0 0 120px;
        padding: 8px;
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .kc-weather-current {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .kc-weather-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .kc-weather-details {
        justify-content: center;
    }
}