:root{
  --bg-clear: linear-gradient(135deg,#56CCF2 0%,#2F80ED 100%);
  --bg-clouds: linear-gradient(135deg,#bdc3c7,#2c3e50);
  --bg-rain: linear-gradient(135deg,#667eea,#764ba2);
  --bg-snow: linear-gradient(135deg,#e6f0ff,#cfe8ff);
  --bg-storm: linear-gradient(135deg,#434343,#000000);
  --glass: rgba(255,255,255,0.07);
  --accent: #ffb703;
  --text: #fff;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
  background: var(--bg-rain);
  min-height:100vh;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* app wrapper */
.app-wrapper{max-width:1080px;margin:0 auto;}

/* hero / liquid header */
.hero{
  position:relative;
  padding:28px 20px 40px;
  overflow:hidden;
  border-bottom-left-radius:18px;
  border-bottom-right-radius:18px;
}
.hero-inner{position:relative;z-index:2;max-width:960px;margin:0 auto;text-align:center}
.hero-title{font-size:28px;margin:0 0 6px}
.hero-sub{margin:0 0 16px;opacity:0.9}

.search-row{display:flex;justify-content:center;gap:8px;align-items:center}
.search-row input{
  width:60%;
  max-width:360px;
  padding:10px 12px;border-radius:10px;border:0;background:rgba(255,255,255,0.12);color:#fff;font-size:15px;
}
.search-row button{
  padding:10px 14px;border-radius:10px;border:0;background:var(--accent);color:#111;font-weight:700;cursor:pointer;
  box-shadow:0 8px 18px rgba(0,0,0,0.2)
}
.search-row button:active{transform:translateY(1px)}

/* history chips */
.history{margin-top:14px;display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.history button{background:rgba(255,255,255,0.08);border:0;padding:6px 10px;border-radius:999px;color:#fff;cursor:pointer;font-size:13px}

/* liquid svg */
.liquid{position:absolute;left:0;right:0;bottom:0;height:140px;display:block;z-index:1}

/* main content */
.main{padding:20px;display:grid;grid-template-columns:1fr;gap:18px;max-width:960px;margin:0 auto;}
.card{display:flex;gap:16px;background:var(--glass);padding:16px;border-radius:12px;align-items:center;box-shadow:0 8px 30px rgba(0,0,0,0.25)}
.current-left{display:flex;flex-direction:column;align-items:center;gap:6px;width:140px}
.current-left img{width:96px;height:96px;filter:drop-shadow(0 8px 18px rgba(0,0,0,0.2))}
.temp{font-size:28px;font-weight:700}
.current-right h2{margin:0;font-size:20px}
.current-right p{margin:6px 0;color:rgba(255,255,255,0.95)}

/* charts grid */
.charts{display:grid;grid-template-columns:1fr;gap:14px}
.chart-card{background:rgba(255,255,255,0.03);padding:12px;border-radius:10px}
.chart-card h3{margin:0 0 8px;font-size:16px}

/* footer & error */
.footer{text-align:center;padding:16px;opacity:0.85}
.error{color:#ffcccc;text-align:center;min-height:18px}

/* responsive */
@media(min-width:900px){
  .main{grid-template-columns:400px 1fr}
  .charts{grid-column:2}
  .card{flex-direction:row}
  .chart-card{height:220px}
}
@media(max-width:600px){
  .search-row input{width:58%}
  .hero{padding-bottom:80px}
}
/* Dark overlay to improve chart contrast */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.28);  /* adjust darkness */
    pointer-events: none;
    z-index: -1;
    backdrop-filter: blur(3px);
}
.chart-card {
    background: rgba(0,0,0,0.25) !important;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.08);
}
.chart-card {
    border-radius: 18px !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

