/* ================================
   styles.css
   Single File - No Tabs Included
   ================================ */

:root {
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #38bdf8;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --time-green: #4ade80;
    --temp-high: #ef4444;
    --temp-low: #3b82f6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Inter', system-ui, sans-serif; 
    color: var(--text); 
    display: flex; height: 100vh; width: 100vw; overflow: hidden; 
    position: relative;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6); 
}

/* Make Google Icons filled and solid by default */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

/* Backgrounds */
body::before {
    content: ''; position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;
    z-index: -1; transition: background 1s ease-in-out; animation: bgShift 20s linear infinite alternate;
}

body.clear-day::before { background: linear-gradient(135deg, #0ea5e9, #0284c7, #0369a1); }
body.cloudy-day::before { background: linear-gradient(135deg, #64748b, #475569, #334155); }
body.rain-day::before { background: linear-gradient(135deg, #475569, #334155, #1e293b); }
body.snow-day::before { background: linear-gradient(135deg, #bae6fd, #7dd3fc, #38bdf8); }
body.clear-night::before { background: linear-gradient(135deg, #020617, #0f172a, #1e1b4b); }
body.cloudy-night::before { background: linear-gradient(135deg, #0f172a, #1e293b, #020617); }
body.rain-night::before { background: linear-gradient(135deg, #020617, #172554, #0f172a); }
body.snow-night::before { background: linear-gradient(135deg, #0f172a, #1e293b, #38bdf8); }

@keyframes bgShift { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(15%, 15%, 0); } }

/* Layout */
.content-area { flex: 1; padding: 2.5vh 2.5vw; height: 100%; display: flex; flex-direction: column; overflow: hidden;}
.column { display: flex; flex-direction: column; gap: 20px; }

.card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 28px; padding: 25px; border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15), inset 0 -1px 1px rgba(0, 0, 0, 0.2);
    display: flex; flex-direction: column;
}

h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: var(--accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; font-weight: 800; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

/* Typography */
.main-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
#date { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 800; color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
#location-name { font-size: clamp(0.9rem, 1.5vw, 1.1rem); color: var(--text-dim); margin-top: 2px; font-weight: 400; letter-spacing: 1px; }

.time-group { display: flex; align-items: flex-start; gap: 15px; }
.time-container { display: flex; flex-direction: column; align-items: flex-end; }
#time { font-size: clamp(2.5rem, 4vw, 4.5rem); font-weight: 800; letter-spacing: -2px; line-height: 1; color: var(--time-green); text-shadow: 0 0 15px rgba(74, 222, 128, 0.4); }
#last-updated { font-size: 0.85rem; color: var(--text-dim); margin-top: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.refresh-btn { background: rgba(255,255,255,0.1); border: 1px solid var(--glass-border); border-radius: 50%; width: 45px; height: 45px; cursor: pointer; color: white; display: flex; justify-content: center; align-items: center; transition: all 0.2s; margin-top: 2px; }
.refresh-btn:active { transform: scale(0.9); }
.refresh-btn.spinning .material-symbols-outlined { animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.current-weather { text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 15px 0; }

/* Main icon resized to exactly match the 5-day forecast icons */
.weather-icon-large { font-size: 40px; line-height: 1; margin-bottom: 10px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); }

/* Temperature is now stark white */
.temp-huge { font-size: clamp(4rem, 8vw, 7rem); font-weight: bold; line-height: 1; color: #ffffff; text-shadow: 0 4px 10px rgba(0,0,0,0.8); }

.feels-like { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--text-dim); margin-top: 5px; font-weight: 600; }
.condition-text { font-size: clamp(1.4rem, 2.5vw, 2rem); color: var(--accent); margin-top: 10px; font-weight: 500; }
.hi-low { font-size: clamp(1.1rem, 2vw, 1.4rem); color: #e2e8f0; margin-top: 10px; font-weight: 600; }
.color-high { color: var(--temp-high); font-weight: 800; }
.color-low { color: var(--temp-low); font-weight: 800; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 10px; }
.stat-item { background: rgba(0,0,0,0.5); border-radius: 16px; text-align: center; padding: 15px 10px; border: 1px solid rgba(255,255,255,0.15); box-shadow: inset 0 0 20px rgba(0,0,0,0.5); }
.stat-label { font-size: 0.75rem; color: #ffffff; text-transform: uppercase; margin-bottom: 5px; display: block; font-weight: 800; letter-spacing: 1px; }
.stat-value { font-size: clamp(0.9rem, 1.8vw, 1.4rem); font-weight: 800; color: #ffffff; transition: color 0.3s ease; text-shadow: none; }

.forecast-row { display: flex; justify-content: space-between; gap: 10px; }
.forecast-box { flex: 1; padding: 15px 0; background: rgba(0,0,0,0.2); border-radius: 16px; display: flex; flex-direction: column; align-items: center; border: 1px solid transparent; }
.daily-container { display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: space-around; }
.daily-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: rgba(0,0,0,0.15); border-radius: 14px; flex: 1; min-height: 0; }
.daily-icon { font-size: 40px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }

/* Breakpoints */
@media (min-width: 900px) {
    .dashboard-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
    .column { height: 100%; overflow: hidden; }
}
@media (min-width: 768px) and (max-width: 899px) {
    .dashboard-grid { display: flex; flex-direction: column; gap: 20px; }
    .column { height: 100%; flex: 1; display: flex; flex-direction: column; gap: 20px;}
}
@media (max-width: 767px) {
    body { height: 100dvh; overflow: auto; }
    .content-area { height: auto; padding: 15px; overflow-y: visible;}
    .dashboard-grid { display: flex; flex-direction: column; gap: 15px; height: auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    #time { font-size: 3rem; }
}
/* ... Keep all your existing root and base styles ... */

.card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 28px; padding: 25px; border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15), inset 0 -1px 1px rgba(0, 0, 0, 0.2);
    display: flex; flex-direction: column;
    /* Added for expansion */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* Expansion Logic */
.card.focused {
    position: fixed;
    top: 2.5vh;
    left: 2.5vw;
    width: 95vw;
    height: 95vh;
    z-index: 100;
    cursor: default;
    padding: 40px;
}

/* Close Button - hidden by default */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    display: none; /* Hidden */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 110;
}

.card.focused .close-btn {
    display: flex; /* Shown when focused */
}

/* Hide other cards when one is focused */
body.focus-active .card:not(.focused) {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

/* Scale up text/icons in focused mode */
.card.focused .forecast-row { gap: 20px; }
.card.focused .forecast-box { padding: 30px 0; }
.card.focused .daily-row { padding: 20px 30px; }

/* ... Keep the rest of your existing CSS ... */

