/* WeatherPower Mobile – WeatherPower blue theme */

:root {
  --bg: #020617;
  --bg-soft: #020617;
  --card: #020617;
  --card-soft: #0b1220;
  --accent: #38bdf8; /* WeatherPower blue */
  --accent-soft: rgba(56, 189, 248, 0.18);
  --danger: #f97373;
  --warning: #fbbf24;
  --success: #22c55e;
  --text-main: #e5f2ff;
  --text-soft: #9ca3af;
  --border-subtle: rgba(56, 189, 248, 0.4);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.9);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --nav-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0b1220 0, #020617 45%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* App shell */

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.9)
  );
  border-bottom: 1px solid rgba(56, 189, 248, 0.45);
  padding: 0.65rem 1rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0, #e0f2fe 0, #38bdf8 30%, #020617 80%);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.8),
    0 8px 18px rgba(15, 23, 42, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #e0f2fe;
  font-size: 1.15rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-weight: 600;
  font-size: 0.98rem;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.icon-button {
  border: none;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
}

.icon-button:active {
  transform: translateY(1px);
}

/* Layout */

#main-content {
  flex: 1;
  padding: 0.75rem 0.9rem 4.5rem;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

/* Cards */

.card {
  background: radial-gradient(circle at top, #020617 0, #020617 65%);
  border-radius: var(--radius-xl);
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.9);
  outline: 1px solid rgba(56, 189, 248, 0.16);
}

.full-card {
  padding: 0.85rem 0.85rem 0.85rem;
}

.card h2 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

/* Pills & status text */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
}

.pill-soft {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--text-soft);
}

.status-text {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.25rem;
}

/* WIP notice banner */
.wip-banner {
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.08), #020617);
  border-style: dashed;
  border-color: rgba(251, 191, 36, 0.7);
  border-width: 1px;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.wip-title {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fde68a;
}

.wip-text {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-soft);
}

/* Current card */

.current-card {
  padding-top: 0.8rem;
}

.current-location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.current-main-row {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.current-temp-block {
  flex: 0 0 auto;
}

.current-temp {
  font-size: 2.7rem;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.current-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.current-extra {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

/* Live systems */

.live-systems .section-header {
  margin-bottom: 0.4rem;
}

.live-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.metric {
  border-radius: 18px;
  padding: 0.5rem 0.6rem;
  background: radial-gradient(
    circle at top left,
    rgba(56, 189, 248, 0.18),
    #020617
  );
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.metric-small {
  font-size: 0.75rem;
}

.metric-label {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.metric-caption {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: 0.1rem;
}

/* Quick tools */

.quick-links h2 {
  margin-bottom: 0.35rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.quick-btn {
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.22), #020617);
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--text-main);
}

.quick-emoji {
  font-size: 1rem;
}

/* Hourly */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.hourly-scroll {
  margin-top: 0.35rem;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.hour-card {
  min-width: 82px;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.9)
  );
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.45rem 0.5rem 0.4rem;
  font-size: 0.72rem;
  text-align: center;
}

.hour-time {
  color: var(--text-soft);
  margin-bottom: 0.25rem;
}

.hour-temp {
  font-weight: 600;
  font-size: 0.9rem;
}

.hour-pop {
  color: var(--accent);
  font-size: 0.7rem;
  margin-top: 0.1rem;
}

/* Alerts + WeWatch */

.alerts-list {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.alert-card {
  border-radius: 16px;
  background: radial-gradient(circle at top left, #0b1220 0, #020617 70%);
  border: 1px solid rgba(15, 23, 42, 0.9);
  outline: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.55rem 0.6rem;
  font-size: 0.78rem;
}

.alert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.alert-title {
  font-weight: 600;
  font-size: 0.83rem;
}

.alert-pill {
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.28);
}

.alert-pill-danger {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.65);
  color: #fecaca;
}

.alert-pill-warning {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.65);
  color: #fef3c7;
}

.alert-pill-info {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.6);
  color: #e0f2fe;
}

.alert-body {
  color: var(--text-soft);
}

.alert-meta {
  margin-top: 0.18rem;
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Radar */

.radar-frame-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: #020617;
  aspect-ratio: 9 / 16;
}

.radar-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Settings */

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.settings-form label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.settings-form input {
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.7);
  padding: 0.5rem 0.85rem;
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  font-size: 0.88rem;
}

.settings-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.75);
}

.primary-btn,
.ghost-btn {
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  border-color: rgba(15, 23, 42, 0.9);
  color: #0b1120;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(56, 189, 248, 0.5);
}

.ghost-btn {
  background: transparent;
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--text-soft);
}

.primary-btn:active,
.ghost-btn:active {
  transform: translateY(1px);
}

.full-width {
  width: 100%;
}

/* Tiny note */

.tiny-note {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Scanner card */

.scanner-card {
  margin-top: 0.4rem;
  border-radius: 18px;
  padding: 0.55rem 0.65rem;
  background: radial-gradient(
    circle at top left,
    rgba(56, 189, 248, 0.22),
    rgba(15, 23, 42, 0.96)
  );
  border: 1px solid rgba(56, 189, 248, 0.6);
  font-size: 0.78rem;
}

.scanner-line {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.scanner-summary {
  color: var(--text-soft);
}

/* Photo stats grid */

.photo-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.45rem;
}

/* Bottom nav */

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.35rem;
  max-width: 540px;
  width: calc(100% - 1.5rem);
  border-radius: 999px;
  padding: 0.15rem 0.25rem;
  background: radial-gradient(circle at top, #020617 0, #000 70%);
  border: 1px solid rgba(56, 189, 248, 0.7);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.95);
  display: flex;
  justify-content: space-between;
  gap: 0.2rem;
  z-index: 20;
}

.nav-item {
  flex: 1;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.68rem;
  padding: 0.35rem 0.1rem;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
}

.nav-icon {
  font-size: 1rem;
}

.nav-item-active {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.22), #020617);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.75);
}

.nav-label {
  letter-spacing: 0.02em;
}

/* Utilities */

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.5);
}

/* Scrollbar tweaks for hourly */

.hourly-scroll::-webkit-scrollbar {
  height: 4px;
}

.hourly-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.hourly-scroll::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.7);
  border-radius: 999px;
}

/* Desktop-ish width */

@media (min-width: 640px) {
  #main-content {
    padding-bottom: 5rem;
  }

  .bottom-nav {
    bottom: 0.75rem;
    width: 420px;
  }
}
