/**
 * WildRover Weather Widget Styles
 */

/* Weather Container */
.wildrover-weather-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.wildrover-weather-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

/* Loading State */
.weather-loading {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.weather-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Current Weather Section */
.weather-current {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.weather-main {
    display: flex;
    flex-direction: column;
}

.weather-location {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-location svg {
    width: 16px;
    height: 16px;
}

.weather-temp {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.weather-temp sup {
    font-size: 2rem;
    font-weight: 400;
}

.weather-feels-like {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.weather-condition {
    font-size: 1.25rem;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.weather-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-icon img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Weather Details Grid */
.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

.weather-detail {
    text-align: center;
}

.weather-detail-label {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.weather-detail-value {
    font-size: 1.125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.weather-detail-value svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

/* Forecast Section */
.weather-forecast {
    position: relative;
    z-index: 1;
}

.weather-forecast-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.weather-forecast-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.weather-forecast-day {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.weather-forecast-day:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.forecast-day-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.forecast-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem;
}

.forecast-icon img {
    width: 100%;
    height: 100%;
}

.forecast-temps {
    font-size: 0.875rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.forecast-temp-high {
    font-weight: 600;
}

.forecast-temp-low {
    opacity: 0.7;
}

.forecast-rain {
    font-size: 0.75rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.forecast-rain svg {
    width: 12px;
    height: 12px;
}

/* Hiking Recommendation */
.weather-recommendation {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recommendation-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.recommendation-text {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wildrover-weather-widget {
        padding: 1.5rem;
    }
    
    .weather-current {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .weather-icon {
        margin: 0 auto;
    }
    
    .weather-forecast-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .weather-forecast-day:nth-child(4),
    .weather-forecast-day:nth-child(5) {
        display: none;
    }
}

/* Weather Condition Icons */
.weather-condition-icon {
    width: 24px;
    height: 24px;
}

/* Error State */
.weather-error {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.weather-error svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.8;
}