/* ============================================================
   Weather Theme RO — sky-blue palette
   ============================================================ */

:root {
  --sky-dark:    #0d47a1;
  --sky-mid:     #1976d2;
  --sky-light:   #42a5f5;
  --sky-pale:    #e3f2fd;
  --sky-bg:      #f0f8ff;
  --text-main:   #1a237e;
  --text-muted:  #546e7a;
  --card-bg:     #ffffff;
  --card-border: #bbdefb;
  --accent:      #ff6f00;
}

/* ---- Base ---- */
body { background: var(--sky-bg); color: var(--text-main); font-family: 'Segoe UI', system-ui, sans-serif; }

/* ---- Header ---- */
.site-header {
  background: linear-gradient(135deg, var(--sky-dark) 0%, var(--sky-mid) 100%);
  box-shadow: 0 2px 8px rgba(13,71,161,.3);
}
.site-logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.logo-icon { font-size: 1.6rem; }
.logo-text { font-size: 1.3rem; font-weight: 700; color: #fff; }
.site-header .nav-link { color: rgba(255,255,255,.85) !important; font-weight: 500; transition: color .2s; }
.site-header .nav-link:hover { color: #fff !important; }

/* ---- Weather Hero ---- */
.weather-hero {
  background: linear-gradient(160deg, var(--sky-mid) 0%, var(--sky-light) 60%, #90caf9 100%);
  padding: 2.5rem 0 3rem;
  color: #fff;
}
.weather-city-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}

/* ---- Current weather card ---- */
.weather-widget-card {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  color: #fff;
}
.weather-current { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.weather-icon-big { font-size: 5rem; line-height: 1; }
.weather-temp-main { font-size: 3.5rem; font-weight: 700; line-height: 1.1; }
.weather-desc { font-size: 1.2rem; font-weight: 600; margin-top: .2rem; }
.weather-feels { font-size: .95rem; opacity: .85; margin-top: .15rem; }
.weather-details { display: flex; flex-direction: column; gap: .4rem; font-size: .95rem; }
.weather-detail { display: flex; align-items: center; gap: .3rem; }
.weather-loading, .weather-error { text-align: center; padding: 2rem; }

/* ---- 7-day forecast ---- */
.forecast-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .5rem;
}
@media (max-width: 767px) {
  .forecast-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 479px) {
  .forecast-row { grid-template-columns: repeat(2, 1fr); }
}
.forecast-card {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  padding: .7rem .5rem;
  text-align: center;
  font-size: .85rem;
  color: #fff;
}
.forecast-day { font-weight: 700; font-size: .9rem; }
.forecast-date { opacity: .75; font-size: .75rem; margin-bottom: .3rem; }
.forecast-icon { font-size: 1.6rem; margin: .3rem 0; }
.forecast-desc { font-size: .72rem; opacity: .85; margin-bottom: .3rem; }
.forecast-temps { display: flex; justify-content: center; gap: .4rem; font-weight: 600; }
.temp-max { color: #ffcc02; }
.temp-min { color: #b3e5fc; }
.forecast-rain { font-size: .72rem; opacity: .8; margin-top: .2rem; }

/* ---- Articles ---- */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sky-dark);
  border-left: 4px solid var(--sky-light);
  padding-left: .75rem;
}
.article-card-link { text-decoration: none; color: inherit; }
.article-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(25,118,210,.15); }
.article-img { width: 100%; height: 180px; object-fit: cover; }
.article-img-placeholder {
  width: 100%; height: 140px;
  background: var(--sky-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.article-body { padding: 1rem; }
.article-category {
  display: inline-block;
  background: var(--sky-pale); color: var(--sky-dark);
  font-size: .72rem; font-weight: 600; padding: .2rem .6rem;
  border-radius: 20px; margin-bottom: .5rem; text-transform: uppercase;
}
.article-title { font-size: .95rem; font-weight: 700; color: var(--text-main); margin-bottom: .4rem; line-height: 1.35; }
.article-summary { font-size: .83rem; color: var(--text-muted); margin-bottom: .5rem; line-height: 1.5; }
.article-date { font-size: .75rem; color: var(--sky-light); font-weight: 500; }

/* ---- Article page ---- */
.article-page { max-width: 780px; margin: 2rem auto; background: var(--card-bg); border-radius: 14px; padding: 2rem; }
.article-page h1 { font-size: 1.8rem; color: var(--sky-dark); margin-bottom: 1rem; }
.article-page .article-meta { color: var(--text-muted); font-size: .85rem; margin-bottom: 1.5rem; }
.article-page .article-content p { line-height: 1.8; margin-bottom: 1rem; }

/* ---- Pagination ---- */
.pagination-wrap { display: flex; justify-content: center; gap: .5rem; margin: 2rem 0; }
.pagination-wrap a, .pagination-wrap span {
  padding: .4rem .9rem; border-radius: 8px;
  border: 1px solid var(--card-border);
  color: var(--sky-mid); text-decoration: none; font-size: .9rem;
}
.pagination-wrap a:hover { background: var(--sky-pale); }
.pagination-wrap .current { background: var(--sky-mid); color: #fff; border-color: var(--sky-mid); }

/* ---- Footer ---- */
.site-footer {
  background: var(--sky-dark);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
}
.footer-link { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-link:hover { color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .weather-city-title { font-size: 1.5rem; }
  .weather-icon-big { font-size: 3.5rem; }
  .weather-temp-main { font-size: 2.5rem; }
  .weather-current { gap: 1rem; }
}
