/* What's Up Tonight — NordicAstro Astronomy Planner */
/* NordicAstro Design Philosophy Applied */

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

:root {
  --bg-page: #060a10;
  --bg-page-top: #0a1628;
  --bg-section: #0a0f18;
  --bg-card: #111827;
  --accent: #00B4D8;
  --accent-dim: rgba(0, 180, 216, 0.15);
  --text-heading: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --border-hover: #334155;
  --radius-card: 8px;
  --radius-sm: 4px;
  --font: system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;
  --green: #10b981;
  --cyan: #00B4D8;
  --yellow: #fbbf24;
  --red: #ef4444;
}

html {
  scroll-behavior: smooth;
}

/* ── Page Background with gradient + noise texture ──── */
body {
  background: linear-gradient(180deg, var(--bg-page-top) 0%, var(--bg-page) 600px);
  color: var(--text-primary);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

body > * {
  position: relative;
  z-index: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ────────────────────────────────────────────── */
.page-header {
  position: relative;
  background: linear-gradient(180deg, #0a1628 0%, #060a10 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
  margin-bottom: 32px;
  overflow: hidden;
}

/* Static starfield dots (behind canvas) */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 15%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 80%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 35%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 70%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 90%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 45%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 10%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 40%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 55%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 85%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 5%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 75% 50%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 20% 75%, rgba(255,255,255,0.45) 0%, transparent 100%);
  pointer-events: none;
}

/* Ambient glow behind title — pulsing radial gradient */
.page-header::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 30%;
  width: 400px;
  height: 200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0,180,216,0.08) 0%, transparent 70%);
  animation: ambientGlow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes ambientGlow {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Particle starfield canvas */
.header-starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-titles h1 {
  color: var(--text-heading);
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.header-titles h1 .thin {
  font-weight: 300;
}

.header-titles h1 .bold {
  font-weight: 600;
}

.header-date {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 4px;
}

.header-location {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.header-wordmark {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: 4px;
}

/* ── Controls Bar ──────────────────────────────────────── */
.controls-bar {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.3),
    0 4px 8px rgba(0,0,0,0.2),
    0 12px 24px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.control-group label {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.control-group input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 6px 2px;
  width: 120px;
  transition: border-color var(--transition);
}

.control-group input:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}

.btn {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #060a10;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  transition: opacity var(--transition);
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.85;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.location-name {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

/* ── Summary Card — Hero Panel ─────────────────────────── */
.summary-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 40%);
  background-color: var(--bg-section);
  border: 1px solid var(--border);
  border-top-color: rgba(255,255,255,0.06);
  border-bottom-color: rgba(0,0,0,0.3);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  margin-bottom: 24px;
  min-height: 120px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.3),
    0 4px 8px rgba(0,0,0,0.2),
    0 12px 24px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.summary-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.summary-zone {
  display: flex;
  flex-direction: column;
}

.summary-zone-title {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 3px 0;
}

.summary-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.summary-value {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.summary-value.highlight {
  color: var(--accent);
}

/* Moon Visual */
.moon-zone-content {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.moon-visual {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e8e8e0;
  flex-shrink: 0;
}

.moon-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.moon-phase-name {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.moon-illum {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.moon-times {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.moon-time-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}

/* Tonight Rating */
.tonight-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tonight-zone .summary-zone-title {
  align-self: stretch;
  text-align: left;
}

.rating-display {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rating-label-large {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rating-label-large.rating-excellent {
  color: var(--green);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}
.rating-label-large.rating-good {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
}
.rating-label-large.rating-fair {
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}
.rating-label-large.rating-poor {
  color: var(--red);
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.rating-sublabel {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rating-detail {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ── Planet Visibility — Horizontal Chips ──────────────── */
.planets-section {
  margin-bottom: 28px;
}

.section-title {
  color: var(--text-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.planets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.planet-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: default;
  border: 1px solid transparent;
}

.planet-chip.visible {
  background: rgba(0, 180, 216, 0.12);
  color: var(--accent);
  border-color: rgba(0, 180, 216, 0.25);
}

.planet-chip.not-visible {
  background: rgba(100, 116, 139, 0.08);
  color: var(--text-muted);
  opacity: 0.5;
}

.planet-chip .planet-peak {
  font-size: 0.7rem;
  opacity: 0.7;
}

.planet-chip .planet-camera-link {
  font-size: 0.7rem;
  margin-left: 4px;
}

/* ── DSO Target Cards ──────────────────────────────────── */
.targets-section {
  margin-bottom: 32px;
}

.targets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Target card with gradient background, multi-layer shadow, spotlight */
.target-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 40%);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-top-color: rgba(255,255,255,0.06);
  border-bottom-color: rgba(0,0,0,0.3);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.3),
    0 4px 8px rgba(0,0,0,0.2),
    0 12px 24px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
  /* CSS vars for spotlight, set via JS mousemove */
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* Spotlight mouse-follow pseudo-element */
.target-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--mouse-x) var(--mouse-y), rgba(0,180,216,0.06), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.target-card:hover::before {
  opacity: 1;
}

/* Ensure card content is above spotlight */
.target-card > * {
  position: relative;
  z-index: 1;
}

/* Hover lift */
.target-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.3),
    0 8px 16px rgba(0,0,0,0.25),
    0 16px 32px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.target-card.in-season {
  border-left: 3px solid var(--accent);
}

/* Staggered entrance animations */
.target-card {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease forwards;
}

.target-card:nth-child(1)  { animation-delay: 0.05s; }
.target-card:nth-child(2)  { animation-delay: 0.1s; }
.target-card:nth-child(3)  { animation-delay: 0.15s; }
.target-card:nth-child(4)  { animation-delay: 0.2s; }
.target-card:nth-child(5)  { animation-delay: 0.25s; }
.target-card:nth-child(6)  { animation-delay: 0.3s; }
.target-card:nth-child(7)  { animation-delay: 0.35s; }
.target-card:nth-child(8)  { animation-delay: 0.4s; }
.target-card:nth-child(9)  { animation-delay: 0.45s; }
.target-card:nth-child(10) { animation-delay: 0.5s; }
.target-card:nth-child(11) { animation-delay: 0.55s; }
.target-card:nth-child(12) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cards beyond 12 that get revealed */
.target-card.target-hidden {
  display: none;
}

.target-card.target-revealed {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease forwards;
}

/* Card Header */
.target-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 8px;
}

.target-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.target-header h3 {
  color: var(--text-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

.target-header h3 .target-name {
  color: var(--text-secondary);
  font-weight: 400;
}

.type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.type-dot.emission_nebula,
.type-dot.supernova_remnant { background: #ef6b4a; }
.type-dot.reflection_nebula { background: #60a5fa; }
.type-dot.galaxy { background: #818cf8; }
.type-dot.globular_cluster,
.type-dot.open_cluster { background: #e2e8f0; }
.type-dot.planetary_nebula { background: #34d399; }
.type-dot.dark_nebula { background: #475569; }

.difficulty-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.difficulty-easy {
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
}

.difficulty-medium {
  background: rgba(251, 191, 36, 0.12);
  color: var(--yellow);
}

.difficulty-hard {
  background: rgba(239, 68, 68, 0.12);
  color: #f97316;
}

/* Card Meta */
.target-meta {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.target-meta .sep {
  margin: 0 6px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* Altitude Bar */
.altitude-bar-container {
  margin: 10px 0;
}

.altitude-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.altitude-bar-label .peak-info {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.altitude-bar-label .window-info {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.altitude-bar {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: rgba(30, 41, 59, 0.5);
  position: relative;
  overflow: hidden;
}

.altitude-bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 5px;
}

.altitude-peak-marker {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 14px;
  background: var(--text-primary);
  border-radius: 1px;
  transform: translateX(-1px);
}

/* Card Equipment */
.target-equipment {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.equip-setup-line {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.equip-setup-line .equip-fov {
  color: var(--text-muted);
}

.equip-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.equip-btn {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: inline-block;
  white-space: nowrap;
}

.equip-btn-fov {
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.equip-btn-fov:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.equip-btn-price {
  background: rgba(0, 180, 216, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 180, 216, 0.25);
  font-weight: 600;
}

.equip-btn-price:hover {
  background: rgba(0, 180, 216, 0.2);
  text-decoration: none;
}

/* ── Show All Targets Button ───────────────────────────── */
.show-all-targets-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 16px 0 4px;
}

.btn-show-all {
  background: transparent;
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 28px;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-show-all:hover {
  border-color: var(--accent);
  background: rgba(0, 180, 216, 0.06);
}

.btn-show-all:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Tooltips ──────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a2236;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* Tooltip arrow */
[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1a2236;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

[data-tooltip]:hover::before {
  opacity: 1;
}

/* No results */
.no-results {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
  text-align: center;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

/* ── Loading ───────────────────────────────────────────── */
.loading {
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
  font-size: 0.85rem;
}

.loading-pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Error state */
.error-message {
  color: var(--red);
  text-align: center;
  padding: 32px;
  font-size: 0.9rem;
}

.error-message .error-detail {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 8px;
}

/* ── Footer ────────────────────────────────────────────── */
.page-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .target-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .target-card.target-revealed {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .target-card:hover {
    transform: none;
  }
  .page-header::after {
    animation: none;
    opacity: 0.7;
  }
  .header-starfield {
    display: none;
  }
}

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

@media (max-width: 768px) {
  .page-header {
    padding: 36px 0 32px;
  }

  .header-titles h1 {
    font-size: 1.5rem;
  }

  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .control-group input {
    width: 100%;
  }

  .summary-three-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .summary-card {
    padding: 20px;
  }

  .moon-zone-content {
    flex-direction: row;
  }

  .tonight-zone {
    align-items: flex-start;
    text-align: left;
  }

  .rating-display {
    align-items: flex-start;
  }

  .target-equipment {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .header-wordmark {
    display: none;
  }

  .page-header {
    padding: 28px 0 24px;
  }

  .header-titles h1 {
    font-size: 1.3rem;
  }

  .planets-row {
    gap: 6px;
  }

  .planet-chip {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
}