.sbwb-weather-buddy {
  max-width: 1040px;
  margin: 30px auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #16304a;
}

.sbwb-weather-buddy * {
  box-sizing: border-box;
}

.sbwb-shell {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
  border: 1px solid #d8effa;
  border-radius: 22px;
  box-shadow: 0 16px 45px rgba(17, 166, 216, 0.14);
  overflow: hidden;
}

.sbwb-header {
  background: linear-gradient(135deg, #11a6d8 0%, #ea2aae 100%);
  color: #ffffff;
  text-align: center;
  padding: 44px 28px 40px;
}


.sbwb-header h2 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
  margin: 0 0 12px;
  font-weight: 850;
}

.sbwb-header p {
  color: #ffffff;
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.45;
  opacity: 0.96;
}

.sbwb-body {
  padding: 34px;
}

.sbwb-card {
  background: #ffffff;
  border: 1px solid #d8effa;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17, 166, 216, 0.08);
}

.sbwb-search-card {
  padding: 24px;
}

.sbwb-label {
  display: block;
  margin-bottom: 10px;
  color: #16304a;
  font-size: 22px;
  font-weight: 800;
}

.sbwb-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.sbwb-location-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #bfe9f7;
  border-radius: 999px;
  background: #f8fdff;
  color: #16304a;
  font-size: 18px;
  line-height: 1.3;
  padding: 12px 18px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sbwb-location-input:focus {
  border-color: #11a6d8;
  box-shadow: 0 0 0 4px rgba(17, 166, 216, 0.14);
}

.sbwb-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.sbwb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.sbwb-button:hover {
  transform: translateY(-1px);
}

.sbwb-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.sbwb-primary {
  background: #ea2aae;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(234, 42, 174, 0.22);
}

.sbwb-secondary {
  background: #11a6d8;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(17, 166, 216, 0.2);
}

.sbwb-help {
  margin: 14px 0 0;
  color: #4e657c;
  font-size: 16px;
  line-height: 1.5;
}

.sbwb-status {
  min-height: 26px;
  margin: 16px 0;
  font-size: 16px;
  font-weight: 750;
}

.sbwb-status-info {
  color: #0c7ea8;
}

.sbwb-status-error {
  color: #b42318;
}

.sbwb-options-card {
  padding: 16px;
  margin-bottom: 18px;
}

.sbwb-options-title {
  margin: 0 0 10px;
  font-weight: 800;
}

.sbwb-location-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sbwb-location-chip {
  border: 1px solid #bfe9f7;
  background: #f8fdff;
  color: #16304a;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 750;
  cursor: pointer;
}

.sbwb-result-stack {
  display: grid;
  gap: 18px;
}

.sbwb-current-card {
  padding: 26px;
  border-color: rgba(234, 42, 174, 0.24);
}

.sbwb-current-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.sbwb-small-label {
  display: block;
  color: #ea2aae;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sbwb-current-card h3,
.sbwb-forecast-card h3 {
  color: #16304a;
  margin: 0;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.12;
}

.sbwb-updated {
  margin: 8px 0 0;
  color: #60758a;
  font-size: 15px;
}

.sbwb-weather-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 76px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(17, 166, 216, 0.12), rgba(234, 42, 174, 0.12));
  font-size: 42px;
}

.sbwb-temp-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.sbwb-temp {
  color: #11a6d8;
  font-size: clamp(58px, 9vw, 86px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.sbwb-condition {
  color: #16304a;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.35;
}

.sbwb-condition span {
  color: #60758a;
  font-size: 17px;
  font-weight: 700;
}

.sbwb-advice {
  margin-top: 20px;
  background: #f8fdff;
  border: 1px solid #d8effa;
  border-radius: 16px;
  padding: 16px;
  color: #16304a;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.45;
}

.sbwb-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sbwb-mini-card {
  padding: 18px;
}

.sbwb-mini-card span {
  display: block;
  color: #60758a;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sbwb-mini-card strong {
  display: block;
  color: #16304a;
  margin-top: 8px;
  font-size: 25px;
  line-height: 1.1;
}

.sbwb-phrase-card {
  padding: 22px;
  background: linear-gradient(135deg, rgba(17, 166, 216, 0.08), rgba(234, 42, 174, 0.08)), #ffffff;
}

.sbwb-phrase-card strong {
  display: block;
  color: #16304a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.sbwb-phrase-card p {
  color: #4e657c;
  font-size: 18px;
  margin: 10px 0 0;
}

.sbwb-forecast-card {
  padding: 24px;
}

.sbwb-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.sbwb-section-heading p {
  margin: 0;
  color: #60758a;
  font-size: 16px;
}

.sbwb-forecast-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.sbwb-day-card {
  background: #f8fdff;
  border: 1px solid #d8effa;
  border-radius: 16px;
  padding: 16px;
}

.sbwb-day-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #16304a;
  font-size: 15px;
  font-weight: 850;
}

.sbwb-day-top strong {
  font-size: 27px;
  line-height: 1;
}

.sbwb-day-card p {
  min-height: 42px;
  margin: 10px 0;
  color: #4e657c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.sbwb-day-metrics {
  display: grid;
  gap: 6px;
  color: #16304a;
  font-size: 14px;
  font-weight: 800;
}

.sbwb-source-note {
  color: #60758a;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 4px;
}

.sbwb-is-loading .sbwb-results {
  opacity: 0.72;
}

@media (max-width: 820px) {
  .sbwb-weather-buddy {
    margin: 18px auto;
  }

  .sbwb-body {
    padding: 20px;
  }

  .sbwb-search-row {
    grid-template-columns: 1fr;
  }

  .sbwb-button,
  .sbwb-button-row .sbwb-button {
    width: 100%;
  }

  .sbwb-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sbwb-forecast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sbwb-section-heading {
    display: block;
  }

  .sbwb-section-heading p {
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .sbwb-header {
    padding: 34px 18px 30px;
  }

  .sbwb-body {
    padding: 16px;
  }

  .sbwb-search-card,
  .sbwb-current-card,
  .sbwb-forecast-card,
  .sbwb-phrase-card {
    padding: 18px;
  }

  .sbwb-current-main {
    align-items: center;
  }

  .sbwb-weather-icon {
    min-width: 62px;
    height: 62px;
    border-radius: 20px;
    font-size: 34px;
  }

  .sbwb-metric-grid,
  .sbwb-forecast-grid {
    grid-template-columns: 1fr;
  }
}
