/* RSP OpenMeteo v3 */

/* ─── Skupno ─────────────────────────────────────────── */

.rsp-weather-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: #64748b;
  padding: 32px 0;
}

.rsp-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(100, 116, 139, 0.25);
  border-top-color: #64748b;
  border-radius: 50%;
  animation: rsp-spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes rsp-spin { to { transform: rotate(360deg); } }

.rsp-weather-error {
  text-align: center;
  font-size: 14px;
  color: #b45309;
  padding: 24px 0;
}

.rsp-weather-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.rsp-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.rsp-weather-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  color: #64748b;
}

/* ─── Homepage – 3 kartice ───────────────────────────── */

.rsp-weather-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 28px 0 36px;
}

.rsp-overview-card {
  background: linear-gradient(160deg, #dff4fb 0%, #eef7ef 100%);
  border-radius: 24px;
  padding: 24px 22px 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  color: #1f2937;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rsp-weather-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.rsp-weather-city-name h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: #1f2937;
}

.rsp-weather-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #4b5563;
}

.rsp-temp-block {
  text-align: right;
}

.rsp-weather-temp {
  font-size: 42px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
  white-space: nowrap;
}

.rsp-weather-feels {
  font-size: 12px;
  color: #6b7280;
  margin-top: 3px;
}

.rsp-weather-icon {
  font-size: 32px;
  line-height: 1;
  margin: 8px 0 2px;
}

.rsp-weather-desc {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 14px;
}

.rsp-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 14px;
  color: #374151;
}

.rsp-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* ─── Podstran – detail ───────────────────────────────── */

.rsp-weather-detail {
  background: linear-gradient(160deg, #dff4fb 0%, #eef7ef 100%);
  border-radius: 28px;
  padding: 32px 28px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
  color: #1f2937;
  margin: 24px 0 40px;
}

.rsp-detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.rsp-detail-city {
  margin: 0 0 6px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: #1f2937;
}

.rsp-detail-icon {
  font-size: 40px;
  margin: 8px 0 4px;
}

.rsp-detail-desc {
  font-size: 18px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0;
}

.rsp-detail-temps {
  text-align: right;
}

.rsp-detail-temp {
  font-size: 72px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
}

.rsp-detail-feels {
  font-size: 14px;
  color: #6b7280;
  margin-top: 6px;
}

.rsp-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  font-size: 15px;
  color: #374151;
  margin-bottom: 4px;
}

.rsp-detail-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ─── 7-dnevna napoved ────────────────────────────────── */

.rsp-forecast-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rsp-forecast-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.rsp-forecast-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.rsp-forecast-wrap {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: 6px;
  min-width: 560px;
}

.rsp-fc-day {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  padding: 10px 6px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
}

.rsp-fc-today {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.rsp-fc-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.rsp-fc-today .rsp-fc-name {
  color: #2563eb;
}

.rsp-fc-icon {
  font-size: 26px;
  line-height: 1;
  margin: 2px 0;
}

.rsp-fc-desc {
  font-size: 10px;
  color: #6b7280;
  line-height: 1.3;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsp-fc-temps {
  display: flex;
  gap: 5px;
  align-items: baseline;
  margin-top: 2px;
}

.rsp-fc-tmax {
  font-size: 15px;
  font-weight: 800;
  color: #1f2937;
}

.rsp-fc-tmin {
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
}

.rsp-fc-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  color: #6b7280;
  margin-top: 4px;
}

/* ─── Odzivnost ───────────────────────────────────────── */

@media (max-width: 900px) {
  .rsp-weather-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


@media (max-width: 600px) {
  .rsp-overview-card {
    border-radius: 18px;
    padding: 18px 16px;
  }

  .rsp-weather-city-name h3 { font-size: 24px; }
  .rsp-weather-temp         { font-size: 36px; }
  .rsp-weather-desc         { font-size: 14px; }
  .rsp-overview-grid        { font-size: 13px; gap: 6px 12px; }

  .rsp-weather-detail {
    border-radius: 20px;
    padding: 22px 16px 18px;
  }

  .rsp-detail-city  { font-size: 28px; }
  .rsp-detail-temp  { font-size: 56px; }
  .rsp-detail-grid  { font-size: 14px; gap: 10px 16px; }

  .rsp-detail-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .rsp-detail-temps {
    text-align: left;
  }
}
