/*
Theme Name: Thrive
Theme URI: https://wp-training-issa.it-corp-lab.net
Author: IT CORP
Description: Thrive custom WordPress theme
Version: 1.0.0
*/

/* =========================
   WEATHER APP
========================= */

.weather-app {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 80px 20px;

    background: #f5f5f5;
}


/* =========================
   WEATHER CARD
========================= */

.weather-card {
    width: 100%;
    max-width: 500px;

    background: #ffffff;
    margin-top: -60px;

    border-radius: 18px;

    padding: 40px 35px;

    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    transition: 0.3s ease;
}

.weather-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}


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

.search {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 15px;
}

.search input {
    flex: 1;

    height: 60px;

    border: 1px solid #ddd;
    border-radius: 50px;

    padding: 0 25px;

    font-size: 16px;

    background: #f7f7f7;
    color: #222;

    outline: none;

    transition: 0.3s ease;
}

.search input:focus {
    border-color: #3fa9f5;
    box-shadow: 0 0 10px rgba(63,169,245,0.15);
}

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


/* SEARCH BUTTON */

.search button {
    width: 60px;
    height: 60px;

    border: none;
    border-radius: 50%;

    background: #3fa9f5;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: 0.3s ease;
}

.search button:hover {
    background: #a663e6;
}

.search button img {
    width: 18px;

    filter: brightness(0) invert(1);
}


/* =========================
   WEATHER DATA
========================= */

.weather {
    display: none;
    margin-top: 35px;
}

.weather-icon {
    width: 120px;
    margin-bottom: 20px;
}

.weather h1 {
    font-size: 68px;
    font-weight: 700;
    color: #111;
}

.weather h2 {
    font-size: 32px;
    font-weight: 400;
    color: #666;

    margin-top: 5px;
}


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

.details {
    margin-top: 40px;

    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.col {
    flex: 1;

    display: flex;
    align-items: center;

    gap: 15px;

    background: #f1f1f1;

    padding: 18px;

    border-radius: 14px;

    border: 1px solid #e5e5e5;
}

.col img {
    width: 35px;
    height: 35px;
    object-fit: contain;

    filter: none;
    opacity: 0.8;
}
.col p {
    margin: 0;
}

.humidity,
.wind {
    font-size: 22px;
    font-weight: 700;
    color: #111;
}


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

.error {
    display: none;

    margin-top: 15px;

    color: #d11a2a;
    font-size: 14px;

    text-align: left;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {

    .weather-card {
        padding: 30px 20px;
    }

    .details {
        flex-direction: column;
    }

    .weather h1 {
        font-size: 54px;
    }
}