
*{box-sizing:border-box;margin:0;padding:0;font-family:Arial,Helvetica,sans-serif}
body{
  background:#f3f6fb;
  color:#1f2937;
}
a{text-decoration:none;color:#2563eb}
header{background:#2563eb;color:#fff;padding:16px}
header .nav a{color:#fff;margin-right:15px;font-weight:bold}
.container{max-width:1200px;margin:auto;padding:20px}
/*
 * Application base styles
 *
 * This file contains shared UI elements for both the frontend pages and
 * the weather page. We extend it to include cards, grids, hero and
 * forecast styles to ensure a cohesive blue theme across the site. The
 * admin panel has its own stylesheet (admin.css) for layout and
 * components.
 */

/* Container & basic layout */
.container{
  max-width:1200px;
  margin:auto;
  padding:20px;
}

/* Cards */
.card{
  background:#fff;
  border-radius:14px;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  padding:20px;
  margin-bottom:20px;
}

/* Grid helpers */
.grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:20px;
}
.grid-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
}
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

/* Section headers */
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:26px;
}
.section-title{
  font-size:22px;
  font-weight:700;
}
.muted{
  font-size:14px;
  color:#64748b;
}

/* Search bars */
.searchbar{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:14px;
}
.searchbar input{
  flex:1;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  font-size:14px;
}
.searchbar input:focus{
  outline:none;
  border-color:#2563eb;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:10px;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  border:none;
  cursor:pointer;
  background:#e5e7eb;
  color:#111827;
}
.btn:hover{background:#d1d5db;}
.btn-primary{
  background:#2563eb;
  color:#fff;
}
.btn-primary:hover{background:#1d4ed8;}

/* Hero weather card */
.hero{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  height:100%;
  background:#f9fafb;
  border-radius:14px;
  padding:20px;
}
.hero--light{background:#f9fafb;}
.hero__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}
.hero__loc{
  font-size:20px;
  font-weight:700;
}
.hero__date{
  font-size:14px;
  color:#64748b;
}
.pill{
  background:#2563eb;
  color:#fff;
  padding:4px 8px;
  border-radius:9999px;
  font-size:12px;
  font-weight:600;
}
.hero__main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
}
.hero__temp{
  display:flex;
  align-items:center;
  gap:12px;
}
.temp{
  font-size:64px;
  font-weight:700;
  color:#2563eb;
}
.cond__title{
  font-size:20px;
  font-weight:600;
}
.cond__sub{
  font-size:14px;
  color:#64748b;
  margin-top:4px;
}
.stats{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}
.stat{
  display:flex;
  flex-direction:column;
}
.stat__label{
  font-size:13px;
  color:#64748b;
}
.stat__value{
  font-size:18px;
  font-weight:700;
}
.hero__footer{
  margin-top:16px;
}
.mini{
  font-size:12px;
  color:#64748b;
}

/* Chips for quick jump links */
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.chip{
  display:inline-block;
  padding:8px 14px;
  border:1px solid #2563eb;
  border-radius:9999px;
  font-size:14px;
  font-weight:600;
  color:#2563eb;
  background:#fff;
  cursor:pointer;
  transition:background .2s,color .2s;
}
.chip:hover{
  background:#2563eb;
  color:#fff;
}

/* Forecast cards */
.forecast__list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.forecast__row{
  display:flex;
  justify-content:space-between;
  font-size:14px;
}

/* Card titles */
.card__title{
  font-size:18px;
  font-weight:700;
  margin-bottom:12px;
}

/* Hourly forecast */
.hourly{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:12px;
}
.hour{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:80px;
  background:#f9fafb;
  padding:8px;
  border-radius:8px;
  box-shadow:0 2px 4px rgba(0,0,0,0.05);
}
.hour__t, .hour__m{
  font-size:12px;
}
.hour__m{
  margin-top:2px;
}

/* Footer */
.footer{
  background:#0f172a;
  color:#cbd5f5;
  padding:30px;
  margin-top:40px;
}
.footer a{color:#93c5fd;}

/* Responsive adjustments */
@media(max-width:900px){
  .grid{grid-template-columns:1fr;}
  .grid-2{grid-template-columns:1fr;}
  .grid-3{grid-template-columns:1fr;}
}
