:root {
    --primary-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --bg-color: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.08); /* Slightly increased opacity for contrast */
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent: #0ea5e9; /* Ocean Blue */
    --accent-glow: rgba(14, 165, 233, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-image: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.4)), url('file:///C:/Users/hanjh/.gemini/antigravity/brain/1d34f9b4-7f0e-43fe-87ea-43927bae12b9/subtle_sea_scenery_1773479101024.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 2rem;
}

/* Background Shadows/Accents removed in favor of image, but keeping container for consistency */
.background-container {
    display: none;
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 100px) scale(1.2); }
}

/* Glass Container */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out;
}

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

/* Header & Search */
header {
    margin-bottom: 2.5rem;
}

.search-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

#city-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

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

#search-btn {
    background: var(--accent);
    border: none;
    border-radius: 12px;
    width: 48px;
    color: var(--bg-color);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

#search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.location-container h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.location-container p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Main Weather info */
.main-weather {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.weather-visual {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#weather-icon {
    font-size: 5rem;
    color: var(--accent);
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.3));
}

.temp-container {
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1;
}

.unit {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-secondary);
    vertical-align: top;
    margin-left: 5px;
}

.weather-description {
    text-align: right;
}

.weather-description h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.weather-description p {
    color: var(--text-secondary);
    text-transform: capitalize;
}

/* Stats Cards */
.weather-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

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

.stat-card i {
    font-size: 1.5rem;
    color: var(--accent);
}

.stat-info .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-info .value {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Forecast Header */
.forecast h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.forecast-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}

.forecast-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.forecast-item .day {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.forecast-item i {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: var(--accent);
}

.forecast-item .temp {
    font-weight: 600;
}

/* Skeleton Loading */
.forecast-skeleton {
    height: 120px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    animation: pulse 1.5s infinite;
}

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

/* Footer */
.footer {
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .glass-container { padding: 1.5rem; }
    .main-weather { flex-direction: column; text-align: center; gap: 2rem; }
    .weather-description { text-align: center; }
    .weather-stats { grid-template-columns: 1fr; }
    .forecast-grid { grid-template-columns: repeat(3, 1fr); }
}
