* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    padding: 24px;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 32px;
}

h1 {
    color: white;
    margin-bottom: 24px;
    font-size: 2.5rem;
}

h2 {
    color: white;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

/* Search Bar */
.search-form {
    max-width: 448px;
    margin: 0 auto;
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    outline: none;
    font-size: 1rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    color: rgb(151, 16, 131);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Weather Card */
.weather-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.weather-header {
    text-align: center;
    margin-bottom: 24px;
}

.weather-header h2 {
    margin-bottom: 8px;
}

.date {
    color: rgba(255, 255, 255, 0.8);
}

.weather-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.weather-icon {
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
}

.weather-temp {
    text-align: center;
}

.temp-value {
    font-size: 3.75rem;
    color: white;
}

.condition {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

.feels-like {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-top: 4px;
}

/* Weather Details */
.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.detail-item {
    text-align: center;
}

.detail-icon {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto 8px;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.detail-value {
    color: white;
}

/* Hourly Forecast */
.hourly-section {
    margin-top: 32px;
}

.hourly-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 16px;
}

.hourly-container::-webkit-scrollbar {
    height: 8px;
}

.hourly-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.hourly-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.hourly-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 100px;
    text-align: center;
    transition: background 0.3s;
}

.hourly-card:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hourly-time {
    color: white;
    margin-bottom: 12px;
}

.hourly-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
}

.hourly-temp {
    color: white;
    font-size: 1.125rem;
}

/* 5-Day Forecast */
.forecast-section {
    margin-top: 32px;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .forecast-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .forecast-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.forecast-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    cursor: pointer;
}

.forecast-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.forecast-card.active {
    background: rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.forecast-day {
    text-align: center;
    color: white;
    margin-bottom: 16px;
}

.forecast-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

.forecast-temps {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.temp-high {
    color: white;
}

.temp-low {
    color: rgba(255, 255, 255, 0.6);
}

.forecast-condition {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-align: center;
}

.footer-note {
    margin-top: 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}


.icon-sun {
    color: #fcd34d;
}

.icon-partly-cloudy {
    color: white;
}

.icon-cloud {
    color: #e5e7eb;
}

.icon-rain {
    color: #bfdbfe;
}

.weather-icon {
    font-size: 100px;  
    line-height: 1;
    text-align:center;
    margin-bottom: 16px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.weather-emoji {
    font-size: inherit;  
}

.hourly-icon .weather-emoji {
    font-size: 48px;   
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}


.forecast-icon .weather-emoji {
    font-size: 48px;  
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

