@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    color: #ffffff;
    font-weight: 600;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    background: url('assets/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Optional: hides scrollbars if needed */
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3); /* Adjusted opacity for better contrast */
    z-index: -1; /* Ensure it sits behind content */
}

/* UTILITIES */
.regular-txt {
    font-weight: 400;
}
/* END UTILITIES */

.main-container {
    width: 400px; /* Increased width */
    height: 600px; /* Increased height */
    z-index: 1;
    background: linear-gradient(
        to top, rgba(0, 0, 0, 0.4),
        rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    backdrop-filter: blur(30px);
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: transform 0.3s ease;
}
.main-container:hover {
    transform: translateY(-5px); /* Slight lift effect on hover */
}

/* INPUT CONTAINER */
.input-container {
    position: relative;
    margin-bottom: 25px;
}

.city-input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 99px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    font-weight: 500;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    padding-right: 45px;
}
.city-input:focus {
    border: 2px solid rgba(255, 255, 255, 0.75);
    background-color: rgba(255, 255, 255, 0.2);
}
.city-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.search-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    display: flex;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}
.search-btn:hover span {
    color: #ffffff; /* Full white on hover */
}
/* END INPUT CONTAINER */

/* SECTION: WEATHER INFO */
.weather-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.location-date-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px; /* Increase font size for clarity */
}

.weather-summary-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.weather-summary-img {
    width: 120px;
    height: 120px;
}
.weather-summary-info {
    text-align: end;
    font-size: 24px; /* Larger text for temperature */
}

.weather-conditions-container {
    display: flex;
    justify-content: space-between;
}
.condition-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.condition-item span {
    font-size: 24px; /* Standardize font size */
}

.forecast-items-container {
    display: flex;
    gap: 15px;
    overflow-x: auto; /* Changed from scroll for better UX */
    padding-bottom: 12px;
}
.forecast-items-container::-webkit-scrollbar {
    height: 8px;
}
.forecast-items-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 99px;
}
.forecast-items-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 99px;
}

.forecast-item {
    min-width: 70px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    align-items: center;
    border-radius: 12px;
    transition: background 0.3s ease, transform 0.3s ease;
}
.forecast-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px); /* Lift effect on hover */
}
.forecast-item-img {
    width: 35px;
    height: 35px;
}
/* END SECTION: WEATHER INFO */

/* SECTION: MESSAGE */
.section-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-top: 25%;
}
.section-message img {
    height: 180px;
    width: auto;
    transition: transform 0.3s ease;
}
.section-message img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}
/* END SECTION: MESSAGE */
