* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('bg-img.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Adding a subtle dark overlay to the whole body so the bright card stands out nicely */
    background-color: rgba(0,0,0,0.3);
    background-blend-mode: overlay;
}

.weather-app {
    width: 90%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.search {
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.location-icon {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.city-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 10px;
    color: white;
    font-size: 1.1rem;
}

.city-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-btn:hover {
    transform: scale(1.08);
    background: #eef2f3;
}

.hidden {
    display: none !important;
}

.city-date-info {
    text-align: center;
    margin-bottom: 20px;
}

.city {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.date {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

.temp-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.description {
    font-size: 3.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
    /* adding dynamic entrance animation */
    animation: fadeInDown 0.8s ease;
}

.temp-container {
    text-align: center;
}

.temp {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.description-text {
    font-size: 1.2rem;
    font-weight: 400;
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.9);
}

.additional-info-wrapper {
    margin-top: 35px;
}

.additional-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.info-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.info-card i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.info-label {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.message-container {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s infinite ease-in-out;
}

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

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Footer Styling */
.footer {
    margin-top: 30px;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease forwards;
}

.footer p {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.social-links a:hover {
    background: white;
    color: #333;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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