/* =========================================================
   SAITEBI.NET WEATHER PAGE
========================================================= */

.weather-page {
    width: 888px;
    margin: 0 auto;
    padding: 18px 0 45px;
}


/* =========================================================
   WEATHER TITLE
========================================================= */

.weather-title {
    text-align: center;
    margin-bottom: 22px;
}

.weather-title h1 {
    margin: 0;
    color: #000080;
    font-size: 25px;
    line-height: 32px;
    font-weight: bold;
}

.weather-title p {
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 22px;
}


/* =========================================================
   SEARCH
========================================================= */

.weather-search {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
}

.search-box {
    display: flex;
    width: 100%;
    height: 48px;
    background: #ffffff;
    border: 1px solid #888;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 2px 6px rgba(0,0,0,.15);
}

.search-icon {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 0 8px;
    background: #fff;
    color: #222;
    font-family:
        Arial,
        Sylfaen,
        "DejaVu Sans",
        sans-serif;
    font-size: 15px;
}

.search-box input::placeholder {
    color: #888;
}

.search-box button {
    width: 90px;
    border: 0;
    background: #a0522d;
    color: #fff;
    cursor: pointer;
    font-family:
        Arial,
        Sylfaen,
        "DejaVu Sans",
        sans-serif;
    font-size: 14px;
    font-weight: bold;
    transition:
        background-color .15s ease;
}

.search-box button:hover {
    background: #cd853f;
}


/* =========================================================
   SEARCH RESULTS
========================================================= */

.search-results {
    position: absolute;
    top: 53px;
    left: 0;
    z-index: 500;
    display: none;
    width: 100%;
    max-height: 350px;
    overflow-y: auto;
    background: #faf0e6;
    border: 1px solid #a0522d;
    border-radius: 3px;
    box-shadow:
        0 7px 18px rgba(0,0,0,.30);
}

.search-result {
    display: flex;
    width: 100%;
    min-height: 54px;
    padding: 7px 12px;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid #ddd;
    background: transparent;
    color: #222;
    cursor: pointer;
    text-align: left;
    font-family:
        Arial,
        Sylfaen,
        "DejaVu Sans",
        sans-serif;
}

.search-result:hover {
    background: #e5d2c0;
}

.result-icon {
    width: 28px;
    font-size: 20px;
    text-align: center;
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result-info strong {
    color: #333;
    font-size: 15px;
}

.result-info small {
    color: #777;
    font-size: 12px;
}

.search-message {
    padding: 14px;
    color: #555;
    font-size: 14px;
    text-align: center;
}


/* =========================================================
   QUICK CITIES
========================================================= */

.quick-cities {
    margin-bottom: 20px;
}

.quick-title {
    margin-bottom: 9px;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.city-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.city-buttons button {
    padding: 7px 13px;
    border: 1px solid #999;
    border-radius: 3px;
    background: #b8b8b8;
    color: #222;
    cursor: pointer;
    font-family:
        Arial,
        Sylfaen,
        "DejaVu Sans",
        sans-serif;
    font-size: 13px;
    transition:
        background-color .15s ease,
        color .15s ease,
        transform .15s ease;
}

.city-buttons button:hover {
    background: #a0522d;
    color: #fff;
    transform: translateY(-1px);
}


/* =========================================================
   LOADING
========================================================= */

.weather-loading {
    padding: 25px;
    color: #333;
    font-size: 15px;
    text-align: center;
}


/* =========================================================
   ERROR
========================================================= */

.weather-error {
    display: none;
    margin: 15px 0;
    padding: 14px;
    background: #f8dddd;
    border: 1px solid #c97979;
    border-radius: 3px;
    color: #8a2222;
    font-size: 14px;
    text-align: center;
}


/* =========================================================
   CURRENT WEATHER
========================================================= */

.current-weather {
    margin-top: 10px;
    padding: 22px;
    background:
        linear-gradient(
            135deg,
            #eee 0%,
            #cfcfcf 100%
        );
    border: 1px solid #888;
    border-radius: 4px;
    box-shadow:
        0 3px 8px rgba(0,0,0,.18);
}

.current-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.current-city {
    color: #000080;
    font-size: 25px;
    font-weight: bold;
    line-height: 30px;
}

.current-date {
    margin-top: 4px;
    color: #555;
    font-size: 13px;
}

.current-icon {
    font-size: 54px;
    line-height: 60px;
}

.current-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
}

.current-temperature {
    color: #222;
    font-size: 58px;
    font-weight: bold;
    line-height: 60px;
}

.current-description {
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

.current-feels {
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}


/* =========================================================
   CURRENT DETAILS
========================================================= */

.current-details {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.current-detail {
    display: flex;
    min-height: 70px;
    padding: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.45);
    border: 1px solid rgba(100,100,100,.25);
    border-radius: 3px;
    color: #555;
    font-size: 12px;
    text-align: center;
}

.current-detail strong {
    margin-top: 5px;
    color: #222;
    font-size: 14px;
}

.detail-icon {
    font-size: 18px;
    margin-bottom: 2px;
}


/* =========================================================
   WEATHER SECTION
========================================================= */

.weather-section {
    margin-top: 25px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 2px solid #a0522d;
}

.section-heading h2 {
    margin: 0;
    color: #000080;
    font-size: 19px;
    line-height: 25px;
}

.section-heading span {
    color: #666;
    font-size: 12px;
}


/* =========================================================
   HOURLY
========================================================= */

.hourly-scroll {
    display: flex;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 3px 12px;
    scrollbar-width: thin;
}

.hour-card {
    flex: 0 0 115px;
    min-height: 165px;
    padding: 11px 7px;
    background: #b5b5b5;
    border: 1px solid #888;
    border-radius: 3px;
    text-align: center;
    box-shadow:
        0 1px 2px rgba(0,0,0,.15);
    transition:
        transform .15s ease,
        background-color .15s ease;
}

.hour-card:hover {
    transform: translateY(-2px);
    background: #c2c2c2;
}

.hour-time {
    color: #333;
    font-size: 13px;
    font-weight: bold;
}

.hour-icon {
    margin: 9px 0;
    font-size: 30px;
    line-height: 35px;
}

.hour-temp {
    color: #111;
    font-size: 20px;
    font-weight: bold;
}

.hour-description {
    min-height: 30px;
    margin-top: 4px;
    color: #555;
    font-size: 10px;
    line-height: 14px;
}

.hour-rain {
    margin-top: 7px;
    color: #286b94;
    font-size: 11px;
}


/* =========================================================
   DAILY
========================================================= */

.daily-list {
    display: grid;
    grid-template-columns:
        repeat(7, 1fr);
    gap: 9px;
}

.day-card {
    min-height: 190px;
    padding: 10px 6px;
    background: #b5b5b5;
    border: 1px solid #888;
    border-radius: 3px;
    text-align: center;
    box-shadow:
        0 1px 2px rgba(0,0,0,.15);
    transition:
        transform .15s ease,
        background-color .15s ease;
}

.day-card:hover {
    transform: translateY(-2px);
    background: #c2c2c2;
}

.day-card.today {
    border-color: #a0522d;
    background:
        linear-gradient(
            180deg,
            #d5b29b,
            #b5b5b5
        );
}

.day-name {
    color: #000080;
    font-size: 13px;
    font-weight: bold;
}

.day-date {
    margin-top: 3px;
    color: #666;
    font-size: 11px;
}

.day-icon {
    margin: 11px 0 6px;
    font-size: 31px;
    line-height: 35px;
}

.day-description {
    min-height: 32px;
    color: #444;
    font-size: 10px;
    line-height: 14px;
}

.day-temperature {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
}

.day-temperature strong {
    color: #222;
    font-size: 18px;
}

.day-temperature span {
    color: #777;
    font-size: 13px;
}

.day-rain {
    margin-top: 7px;
    color: #286b94;
    font-size: 11px;
}

.day-precipitation {
    margin-top: 5px;
    color: #666;
    font-size: 9px;
}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 950px) {

    .weather-page {
        width: calc(100% - 24px);
        padding-top: 18px;
        padding-bottom: 35px;
    }

    .weather-title h1 {
        font-size: 22px;
        line-height: 29px;
    }

    .weather-title p {
        font-size: 13px;
        line-height: 19px;
    }

    .current-weather {
        padding: 16px;
    }

    .current-city {
        font-size: 22px;
    }

    .current-icon {
        font-size: 45px;
    }

    .current-temperature {
        font-size: 48px;
        line-height: 52px;
    }

    .current-details {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .daily-list {
        grid-template-columns:
            repeat(2, 1fr);
        gap: 10px;
    }

    .day-card {
        min-height: 180px;
    }

}


@media screen and (max-width: 420px) {

    .weather-page {
        width: calc(100% - 16px);
    }

    .search-box {
        height: 45px;
    }

    .search-icon {
        width: 38px;
        font-size: 17px;
    }

    .search-box input {
        font-size: 13px;
    }

    .search-box button {
        width: 72px;
        font-size: 12px;
    }

    .city-buttons {
        gap: 5px;
    }

    .city-buttons button {
        padding: 6px 9px;
        font-size: 12px;
    }

    .current-main {
        gap: 12px;
    }

    .current-temperature {
        font-size: 43px;
    }

    .current-description {
        font-size: 15px;
    }

    .current-details {
        gap: 7px;
    }

    .current-detail {
        min-height: 65px;
        padding: 7px;
        font-size: 11px;
    }

    .section-heading {
        display: block;
        text-align: center;
    }

    .section-heading h2 {
        font-size: 18px;
    }

    .section-heading span {
        display: block;
        margin-top: 3px;
    }

    .daily-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .day-card {
        min-height: 175px;
    }

}