/* Weather Widget Pro - Styles */

.wwp-weather-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Current Weather Section */
.wwp-current-weather {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    color: #ffffff;
}

.wwp-header {
    text-align: center;
    margin-bottom: 20px;
}

.wwp-location {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #ffffff;
}

.wwp-localtime {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 3px;
}

.wwp-date {
    display: block;
    font-size: 13px;
    opacity: 0.8;
}

/* Current Main Display */
.wwp-current-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

.wwp-temp-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wwp-condition-icon {
    width: 80px;
    height: 80px;
}

.wwp-temperature {
    display: flex;
    align-items: flex-start;
}

.wwp-temp {
    font-size: 64px;
    font-weight: 300;
    line-height: 1;
}

.wwp-unit {
    font-size: 24px;
    font-weight: 400;
    margin-top: 5px;
}

.wwp-condition-info {
    text-align: right;
}

.wwp-condition-text {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.wwp-feels-like {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* Current Details Grid */
.wwp-current-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.wwp-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.wwp-detail-icon {
    font-size: 24px;
}

.wwp-detail-content {
    display: flex;
    flex-direction: column;
}

.wwp-detail-label {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wwp-detail-value {
    font-size: 16px;
    font-weight: 600;
    margin-top: 2px;
}

/* AQI Section */
.wwp-aqi-section {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
}

.wwp-aqi-label {
    font-size: 12px;
    opacity: 0.9;
    margin-right: 8px;
}

.wwp-aqi-value {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.aqi-1 { background: #00e400; color: #000; }
.aqi-2 { background: #ffff00; color: #000; }
.aqi-3 { background: #ff7e00; color: #fff; }
.aqi-4 { background: #ff0000; color: #fff; }
.aqi-5 { background: #8f3f97; color: #fff; }
.aqi-6 { background: #7e0023; color: #fff; }

/* Alerts */
.wwp-alerts {
    margin: 15px 0;
}

.wwp-alert {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #ffc107;
}

.wwp-alert strong {
    display: block;
    margin-bottom: 5px;
}

.wwp-alert p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.wwp-alert-moderate { border-left-color: #ff9800; }
.wwp-alert-severe { border-left-color: #f44336; }
.wwp-alert-extreme { border-left-color: #9c27b0; }

/* Forecast Section */
.wwp-forecast {
    background: #ffffff;
    padding: 25px;
    color: #333;
}

.wwp-forecast-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

/* Tabs */
.wwp-forecast-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.wwp-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.wwp-tab-btn.active {
    color: #667eea;
}

.wwp-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

.wwp-tab-content {
    display: none;
}

.wwp-tab-content.active {
    display: block;
}

/* Forecast Grid */
.wwp-forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.wwp-forecast-day {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.wwp-forecast-day:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.wwp-forecast-day-header {
    margin-bottom: 10px;
}

.wwp-day-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.wwp-day-date {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.wwp-forecast-icon {
    width: 60px;
    height: 60px;
    margin: 10px 0;
}

.wwp-forecast-temps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.wwp-temp-max {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.wwp-temp-min {
    font-size: 18px;
    font-weight: 400;
    color: #666;
}

.wwp-forecast-condition {
    font-size: 13px;
    color: #555;
    margin: 5px 0;
}

.wwp-forecast-details {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* Hourly Forecast */
.wwp-hourly-section {
    margin-bottom: 25px;
}

.wwp-hourly-day {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.wwp-hourly-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.wwp-hourly-scroll::-webkit-scrollbar {
    height: 8px;
}

.wwp-hourly-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.wwp-hourly-scroll::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.wwp-hourly-item {
    min-width: 80px;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    transition: transform 0.3s;
}

.wwp-hourly-item:hover {
    transform: translateY(-3px);
}

.wwp-hour-time {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.wwp-hourly-icon {
    width: 40px;
    height: 40px;
    margin: 5px 0;
}

.wwp-hour-temp {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 8px 0;
}

.wwp-hour-rain {
    display: block;
    font-size: 11px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wwp-current-main {
        flex-direction: column;
        text-align: center;
    }
    
    .wwp-condition-info {
        text-align: center;
        margin-top: 15px;
    }
    
    .wwp-current-details {
        grid-template-columns: 1fr;
    }
    
    .wwp-forecast-grid {
        grid-template-columns: 1fr;
    }
    
    .wwp-temp {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .wwp-current-weather {
        padding: 20px;
    }
    
    .wwp-forecast {
        padding: 15px;
    }
    
    .wwp-temp {
        font-size: 42px;
    }
    
    .wwp-condition-icon {
        width: 60px;
        height: 60px;
    }
}
