.rwf-weather-widget {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: clamp(15px, 4vw, 20px);
    background: linear-gradient(135deg, rgba(88, 86, 217, 0.85), rgba(54, 38, 166, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: all 0.3s ease-in-out;
}

.rwf-weather-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rwf-current-weather {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.rwf-current-weather::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.rwf-location {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rwf-main-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.rwf-icon {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.rwf-icon:hover {
    transform: scale(1.1);
}

.rwf-temp-container {
    text-align: center;
}

.rwf-temp {
    font-size: 3em;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #FFD93D, #FF6B6B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rwf-condition {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
}

.rwf-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rwf-detail {
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.rwf-detail:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.rwf-detail span {
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.rwf-forecast {
    display: flex;
    margin: clamp(15px, 4vw, 20px) 0;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding: 15px 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rwf-forecast::-webkit-scrollbar {
    height: 6px;
}

.rwf-forecast::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.rwf-forecast::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    border: 2px solid transparent;
    transition: background-color 0.3s ease;
}

.rwf-forecast::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 480px) {
    .rwf-weather-widget {
        margin: 0;
        border-radius: 15px;
        padding: 12px;
    }

    .rwf-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rwf-detail {
        flex: 1 1 100%;
        padding: 8px;
    }

    .rwf-day {
        flex: 0 0 120px;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .rwf-weather-widget {
        margin: clamp(5px, 2vw, 10px);
    }

    .rwf-location {
        font-size: clamp(1.4em, 4vw, 1.6em);
    }

    .rwf-temp {
        font-size: clamp(2.4em, 6vw, 2.8em);
    }

    .rwf-icon {
        width: clamp(60px, 15vw, 80px);
        height: clamp(60px, 15vw, 80px);
    }

    .rwf-details {
        flex-wrap: wrap;
        gap: clamp(8px, 2vw, 10px);
    }

    .rwf-detail {
        flex: 1 1 calc(50% - clamp(8px, 2vw, 10px));
        min-width: 110px;
        font-size: clamp(0.9em, 2.5vw, 1em);
    }

    .rwf-forecast {
        gap: clamp(4px, 1vw, 8px);
    }

    .rwf-day {
        flex: 1 1 calc(20% - clamp(4px, 1vw, 8px));
        min-width: 70px;
        padding: clamp(8px, 2vw, 10px);
        margin: 0;
    }

    .rwf-day-name {
        font-size: clamp(0.9em, 2.5vw, 1.1em);
    }

    .rwf-day-temp {
        font-size: clamp(1.1em, 3vw, 1.3em);
    }
}

.rwf-day {
    flex: 0 0 140px;
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 15px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(31, 38, 135, 0.15);
    transition: all 0.3s ease;
}

.rwf-day:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.rwf-day-name {
    font-weight: 600;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

.rwf-day-icon {
    width: 50px;
    height: 50px;
    margin: 12px 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.rwf-day:hover .rwf-day-icon {
    transform: scale(1.1);
}

.rwf-day-temp {
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #FFD93D, #FF6B6B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rwf-updated {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 25px 0 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.rwf-attribution {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rwf-attribution a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 2px 5px;
    border-radius: 4px;
}

.rwf-attribution a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.rwf-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
    border: 1px solid #fecaca;
    font-weight: 500;
}

.rwf-forecast-day {
    min-width: 120px;
    padding: 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.rwf-forecast-day:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.rwf-forecast-day .day {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rwf-forecast-day img {
    width: 50px;
    height: 50px;
    margin: 10px auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.rwf-forecast-day img:hover {
    transform: scale(1.1);
}

.rwf-forecast-day .temp {
    font-size: 1.2em;
    font-weight: 600;
    margin: 10px 0;
    background: linear-gradient(135deg, #FFD93D, #FF6B6B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}