/* =========================================
   TOUR WEATHER WIDGET
   All styles are scoped to .tw-weather-widget
========================================= */


/* =========================================
   WEATHER CONTAINER
========================================= */

.tw-weather-widget .tw-weather {

    display: flex;
    gap: 10px;
    margin: 15px auto 20px;
    max-width: 280px;
    justify-content: center;

}


/* =========================================
   WEATHER DAY CARD
========================================= */

.tw-weather-widget .tw-day {

    flex: 1;
    padding: 10px 8px;
    border-radius: 14px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #eee;
    background: #fff;
    transition: .25s ease;

}


.tw-weather-widget .tw-day:hover {

    transform: translateY(-3px);

}


/* =========================================
   DAY NAME
========================================= */

.tw-weather-widget .tw-day span {

    display: block;
    font-size: 12px;
    color: #666;

}


/* =========================================
   TEMPERATURE / STATUS
========================================= */

.tw-weather-widget .tw-day strong {

    display: block;
    margin-top: 5px;
    font-weight: 700;

}


/* =========================================
   WEATHER STATUS COLORS
========================================= */


/* 80-100 */

.tw-weather-widget .tw-day.excellent {

    background: #eafaf0;
    border-color: #9bdcaf;
    color: #16733d;

}


/* 60-79 */

.tw-weather-widget .tw-day.good {

    background: #eef7ff;
    border-color: #9ac7ff;
    color: #1565c0;

}


/* 40-59 */

.tw-weather-widget .tw-day.extreme {

    background: #fff0e6;
    border-color: #ff9d57;
    color: #d35400;

    animation: tw-weather-warning 2s infinite;

}


/* 0-39 */

.tw-weather-widget .tw-day.danger,
.tw-weather-widget .tw-day.not_recommended {

    background: #ffeaea;
    border-color: #ff9b9b;
    color: #b30000;

    animation: tw-weather-danger 1.5s infinite;

}


/* =========================================
   STATUS BADGE
========================================= */

.tw-weather-widget .tw-status {

    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;

}


.tw-weather-widget .tw-status-excellent {

    background: #1fa463;
    color: #fff;

}


.tw-weather-widget .tw-status-good {

    background: #1976d2;
    color: #fff;

}


.tw-weather-widget .tw-status-extreme {

    background: #ff6f00;
    color: #fff;

}


.tw-weather-widget .tw-status-danger {

    background: #d32f2f;
    color: #fff;

}


/* =========================================
   BEST WEATHER MESSAGE
========================================= */

.tw-weather-widget .tw-best {

    text-align: center;
    margin-bottom: 15px;
    color: #1f6b3d;
    font-size: 13px;
    font-weight: 600;

}


/* Recommended future date */

.tw-weather-widget .tw-best strong {

    color: #0b7a3e;

}


/* =========================================
   WEATHER DETAILS
========================================= */

.tw-weather-widget .tw-details {

    text-align: center;
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 13px;

}


.tw-weather-widget .tw-details strong {

    display: block;
    margin-bottom: 6px;

}


.tw-weather-widget .tw-details span {

    display: inline-block;
    margin: 2px 5px;
    color: #555;

}


/* =========================================
   WEATHER UPDATED TIME
========================================= */

/*
 * Small, subtle timestamp showing when the
 * weather data was last updated.
 *
 * Example:
 * 🕐 Updated: 12:02 PM
 */

/* =========================================
   WEATHER UPDATED TIME
   Only this line is smaller
========================================= */

.tw-weather-widget .tw-updated {

    margin-top: 8px;
    text-align: center;
    font-size: 10px;
    line-height: 1.4;
    color: #888;
    font-weight: 400;

}


/* =========================================
   ANIMATION
========================================= */

@keyframes tw-weather-warning {

    0%,
    100% {

        box-shadow: 0 0 0 rgba(255, 111, 0, 0);

    }

    50% {

        box-shadow: 0 0 10px rgba(255, 111, 0, .35);

    }

}


@keyframes tw-weather-danger {

    0%,
    100% {

        box-shadow: 0 0 0 rgba(211, 47, 47, 0);

    }

    50% {

        box-shadow: 0 0 12px rgba(211, 47, 47, .35);

    }

}


/* =========================================
   MOBILE WEATHER
========================================= */

@media (max-width: 768px) {


    .tw-weather-widget .tw-weather {

        width: 100%;
        max-width: 100%;
        gap: 8px;
        margin-top: 15px;

    }


    .tw-weather-widget .tw-day {

        font-size: 13px;
        padding: 9px 6px;

    }


    .tw-weather-widget .tw-day span {

        font-size: 11px;

    }


    .tw-weather-widget .tw-day strong {

        font-size: 13px;

    }


    .tw-weather-widget .tw-status {

        font-size: 10px;
        padding: 3px 6px;

    }


    /*
     * Keep the update time small on mobile too.
     */

    .tw-weather-widget .tw-updated {

        font-size: 11px;
        margin-top: 5px;

    }

}