@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&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    /* font-family: "Rubik", sans-serif; */
}
body{

    font-family: Arial, sans-serif;
    /* background-color: lightgray; */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Rubik", sans-serif;
}

.container{
    background-color: white;
    box-shadow: 0px 0px 20px 3px #aeaeae60;
    width: 375px;
    height: 800px;
    border-radius: 50px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

nav{
    /* height: 10vh; */
    /* background-color:bisque; */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 16px;
}
.search{
    padding: 0 20px 0px 10px;
    background-color: rgba(249, 249, 250, 1);
    width: 327px;
    height: 46px;
    border-radius: 15px;
    display: flex;
    font-family: "Poppins", sans-serif;
    justify-content: space-between;
    align-items: center;
    /* margin-top: 20px; */
    position: relative;  /* Add this */
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 15px;
    margin-top: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.search-result-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.search input{
    height: 90%;
    width: 90%;
    font-size: 15px;
    /* color: black; */
    border: none;
    outline: none;
    background-color: transparent;
    transition: all 0.3s ease;
}
.search input::placeholder{
    color: rgba(196, 196, 196, 1);
}

.search input:focus {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.city_wrapper{
    width: 100%;
    font-size: 30px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.main-info-wrapper{
    width: 345px;
    height: 152px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(249, 249, 250, 1);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.main-info-wrapper:hover {
    transform: scale(1.02);
}

.main-info{
    width: 295px;
    height: 88px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background-color: salmon; */
}

.condition-info{
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.date{
    font-size: 10px;
    font-weight: 400;
    color: rgba(158, 158, 158, 1);
}

.condition{
    font-weight: 500;
    font-size: 14px;
    color: rgba(117, 117, 117, 1);
}

.temperature{
    font-size: 40px;
    font-weight: 500;
    color: rgba(97, 97, 97, 1);
}
.details{
    width: 345px;
    height: 95px;
    background-color: rgba(249, 249, 250, 1);
    /* background-color: aqua; */
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 29px;
    padding: 16px 50px;
}

.details-item{
    color: rgba(117, 117, 117, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
}

.details-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-items{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.info-text{
    font-size: 14px;
    font-weight: 600;
}

.info-name{
    font-size: 10px;
    font-weight: 300;
}

.hourly-forecast {
    width: 345px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.forecast_title{
    font-size: 14px;
    font-weight: 500;
    color: rgba(117, 117, 117, 1);
}


.hour-item{
    color: rgba(117, 117, 117, 1);
    background-color: rgba(138, 141, 147, 0.05);
    width: 78px;
    height: 101x;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.hour-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.hour-time{
    font-size: 10px;
    font-weight: 400;
}

.hour-temp{
    font-size: 14px;
    font-weight: 600;
}

.hour-item-wrapper{
    width: 345px;
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width: 430px) {
    
    .container{
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
}

/* Add loading animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced Weather Recommendations */
.weather-recommendation {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    animation: slideUp 0.5s ease-out;
}

.weather-recommendation h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-recommendation h3::before {
    content: '💡';
    font-size: 1.4rem;
}

.recommendation-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommendation-item {
    background: rgba(255,255,255,0.1);
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.recommendation-item:hover {
    transform: translateX(5px);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.recommendation-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.recommendation-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Add animation for recommendation items */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.recommendation-item {
    animation: fadeInRight 0.5s ease-out forwards;
    opacity: 0;
}

.recommendation-item:nth-child(1) { animation-delay: 0.1s; }
.recommendation-item:nth-child(2) { animation-delay: 0.2s; }
.recommendation-item:nth-child(3) { animation-delay: 0.3s; }
.recommendation-item:nth-child(4) { animation-delay: 0.4s; }

/* Add new weather details section */
.weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.detail-card {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Improve existing elements */
.search input {
    transition: all 0.3s ease;
}

.search input:focus {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-result-item {
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

/* Add responsive design improvements */
@media (max-width: 768px) {
    .weather-details {
        grid-template-columns: 1fr;
    }
    
    .details {
        flex-direction: column;
    }
    
    .details-item {
        width: 100%;
        margin: 10px 0;
    }
}

/* Add smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Add glass morphism effect */
.container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}