:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-color: #000000;
    --accent: #00d2ff;
    --card-hover-bg: rgba(255, 255, 255, 0.2);
}

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

body {
    /* 4. Better Background: Day Sky Gradient */
    background: linear-gradient(to bottom, #1e3a8a, #3b82f6, #60a5fa);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 1. Adjusted to allow top spacing */
    overflow-x: hidden;
    color: var(--text-color);
    position: relative;
    align-items: center;
    justify-content: center;
}

/* 4. Background Elements: Decorative Clouds */
body::before, body::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(50px);
    border-radius: 50%;
    z-index: 0;
}

body::before {
    width: 400px;
    height: 150px;
    top: 10%;
    left: -100px;
}

body::after {
    width: 300px;
    height: 100px;
    top: 25%;
    right: -50px;
}

/* Main Container */
.app-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 2.5rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
}

/* Search Area */
.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 2.5rem;
}

#city-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 14px 20px;
    border-radius: 15px;
    color: black;
    outline: none;
    transition: 0.3s;
}

#city-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

#search-btn {
    background: var(--accent);
    border: none;
    padding: 12px;
    width: 50px;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

#search-btn:hover {
    transform: scale(1.1);
    background: #00e5ff;
}

/* Weather Info */
.weather-display { text-align: center; }

#city-name { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.5px; }
#date { opacity: 0.7; margin-bottom: 0.5rem; font-size: 0.9rem; }

.temp-container { 
    font-size: 6rem; 
    font-weight: 800; 
    margin: 0.5rem 0; 
    line-height: 1;
}
.unit { font-size: 2.5rem; font-weight: 300; vertical-align: top; margin-left: 5px; }

/* 2. Cloud Logo Removed via Display None or simply omitting the container */
.weather-icon-large { 
    display: none; 
}

#description { 
    text-transform: capitalize; 
    font-size: 1.3rem; 
    margin-bottom: 2.5rem; 
    font-weight: 500;
}

/* 3. Interactive Detail Cards */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.07);
    padding: 20px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.detail-card:hover {
    /* Slight BG change and "pop out" effect */
    background: var(--card-hover-bg);
    transform: translateY(-8px) scale(1.05);
    border-color: var(--glass-border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.detail-card i { 
    color: var(--accent); 
    width: 24px; 
    transition: transform 0.3s ease;
}

.detail-card:hover i {
    transform: rotate(15deg);
}

.label { font-size: 0.75rem; opacity: 0.6; margin-bottom: 2px; }
.value { font-weight: 600; font-size: 1.1rem; }

/* Animation for the background clouds */
@keyframes float {
    from { transform: translateX(0); }
    to { transform: translateX(30px); }
}

#city-input::placeholder {
    color: rgba(0, 0, 0, 0.7); /* Change this to your desired color */
    opacity: 1; /* Ensures the color is vibrant across all browsers */
}

.main-info{
    padding-bottom: 60px;
}