/* Power Weather AI - Weather Styles */

/* Basic weather widget styles */
.weather-widget {
    display: inline;
    font-size: 16px;
}

.weather-widget-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.weather-widget-link:hover {
    opacity: 0.9;
}

.weather-widget-link:hover .weather-temp {
    color: #667eea;
}

.weather-widget-inner {
    display: inline;
}

.weather-icon {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    display: inline-block;
}

.weather-temp {
    font-weight: bold;
}

.weather-desc {
    display: inline;
}

.weather-error {
    color: #dc3232;
    padding: 10px;
    background: #ffeeee;
    border-radius: 4px;
}

/* Detailed weather widget styles */
.weather-full-widget {
    max-width: 800px;
    margin: 20px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    color: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

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

.weather-header h3 {
    margin: 0 0 5px 0;
    font-size: 28px;
    color: white;
}

.weather-header small {
    opacity: 0.8;
    font-size: 14px;
}

.weather-current {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.weather-main img {
    width: 100px;
    height: 100px;
}

.weather-temp-big {
    font-size: 64px;
    font-weight: bold;
    line-height: 1;
}

.weather-description {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.weather-detail {
    display: flex;
    justify-content: space-between;
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 8px;
}

.weather-detail .label {
    opacity: 0.8;
}

.weather-detail .value {
    font-weight: bold;
}

.weather-forecast {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
}

.weather-forecast h4 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: white;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.forecast-day {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.forecast-date {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

.forecast-day img {
    width: 60px;
    height: 60px;
}

.forecast-temp {
    font-size: 24px;
    font-weight: bold;
    margin: 5px 0;
}

.forecast-desc {
    font-size: 12px;
    opacity: 0.9;
    text-transform: capitalize;
}

.forecast-rain {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
}

/* Mobile responsive for detailed widget */
@media (max-width: 768px) {
    .weather-full-widget {
        padding: 20px;
    }
    .weather-temp-big {
        font-size: 48px;
    }
    .weather-details-grid {
        grid-template-columns: 1fr 1fr;
    }
    .forecast-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Single day weather widget styles */
.weather-single-day {
    max-width: 500px;
    margin: 20px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

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

.weather-day-header h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: white;
}

.weather-day-date {
    font-size: 14px;
    opacity: 0.9;
}

.weather-day-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.weather-day-icon {
    width: 100px;
    height: 100px;
}

.weather-day-temp {
    font-size: 56px;
    font-weight: bold;
    line-height: 1;
}

.weather-day-description {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.weather-day-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.weather-day-detail {
    display: flex;
    justify-content: space-between;
    background: rgba(255,255,255,0.15);
    padding: 10px 15px;
    border-radius: 8px;
}

.weather-day-detail .label {
    opacity: 0.85;
    font-size: 14px;
}

.weather-day-detail .value {
    font-weight: bold;
    font-size: 14px;
}

/* Mobile responsive for single day widget */
@media (max-width: 768px) {
    .weather-single-day {
        padding: 20px;
    }
    .weather-day-temp {
        font-size: 42px;
    }
    .weather-day-icon {
        width: 80px;
        height: 80px;
    }
}

/* Hourly forecast section styles */
.weather-hourly-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.weather-hourly-section h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: white;
    text-align: center;
}

.weather-chart-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 400px;
}

.weather-chart-container canvas {
    min-height: 350px !important;
    height: 400px !important;
}

.weather-hourly-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) rgba(255,255,255,0.1);
}

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

.weather-hourly-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.weather-hourly-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}

.weather-hourly-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.weather-hourly-container {
    display: flex;
    gap: 12px;
    padding: 10px 5px;
    min-width: min-content;
}

.weather-hour-card {
    flex: 0 0 auto;
    width: 140px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.weather-hour-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.2);
}

.hour-time {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: white;
}

.hour-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 5px;
}

.hour-temp {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}

.hour-desc {
    font-size: 11px;
    opacity: 0.9;
    margin-bottom: 12px;
    text-transform: capitalize;
    min-height: 30px;
    color: white;
}

.hour-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 10px;
}

.hour-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.hour-detail-icon {
    font-size: 14px;
}

.hour-detail-value {
    font-weight: 600;
    color: white;
}

/* Mobile responsive for hourly cards */
@media (max-width: 768px) {
    .weather-hour-card {
        width: 120px;
        padding: 12px;
    }
    .hour-temp {
        font-size: 20px;
    }
    .hour-icon {
        width: 45px;
        height: 45px;
    }
}