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

:root {
  --bg-primary: #0a0e1a;
  --bg-card: #1a1f2e;
  --bg-card-hover: #252b3d;
  --text-primary: #ffffff;
  --text-secondary: #a0a8c0;
  --text-muted: #6b7280;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  --border: #2d3748;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  width: 1920px;
  height: 1080px;
}

#app {
  width: 100%;
  height: 100%;
  position: relative;
}

.page {
  display: none;
  width: 100%;
  height: 100%;
  padding: 40px;
  animation: fadeIn 0.5s ease-in;
}

.page.active {
  display: flex;
  flex-direction: column;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 2fr 1fr;
  gap: 24px;
  flex: 1;
  margin-bottom: 24px;
}

.today-weather {
  grid-row: 1 / 2;
}

.recommendation {
  grid-row: 1 / 2;
}

.memos {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: 32px;
  font-weight: 600;
}

.last-updated {
  font-size: 16px;
  color: var(--text-muted);
}

.weather-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.weather-current {
  display: flex;
  align-items: center;
  gap: 32px;
}

.temp-display {
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
}

.weather-icon {
  font-size: 120px;
  line-height: 1;
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: auto;
}

.weather-detail {
  text-align: center;
}

.weather-detail-label {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.weather-detail-value {
  font-size: 28px;
  font-weight: 600;
}

.recommendation-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rate-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.rate-badge.LOW { background: var(--accent-green); color: white; }
.rate-badge.MED { background: var(--accent-yellow); color: black; }
.rate-badge.HIGH { background: var(--accent-blue); color: white; }
.rate-badge.HOLD { background: var(--accent-red); color: white; }

.rec-headline {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
}

.rec-section {
  margin-bottom: 16px;
}

.rec-section h4 {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rec-section ul {
  list-style: none;
}

.rec-section li {
  font-size: 22px;
  line-height: 1.4;
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.rec-section li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-size: 28px;
}

#memos-list {
  display: flex;
  gap: 16px;
}

.memo-item {
  flex: 1;
  background: var(--bg-card-hover);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--accent-blue);
}

.memo-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.memo-body {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.zone-strip {
  display: flex;
  gap: 16px;
  height: 180px;
}

.zone-card {
  flex: 1;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zone-card-header {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.zone-temp {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.zone-precip {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 8px 0;
}

.zone-rec-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}

.forecast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  height: 100%;
}

.forecast-days {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.forecast-day {
  flex: 1;
  text-align: center;
  padding: 16px;
  background: var(--bg-card-hover);
  border-radius: 12px;
}

.forecast-day-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.forecast-icon {
  font-size: 64px;
  margin: 16px 0;
}

.forecast-temps {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 600;
}

.forecast-high {
  color: var(--accent-red);
}

.forecast-low {
  color: var(--accent-blue);
}

.forecast-precip {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 8px;
}

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

.rain-zone {
  background: var(--bg-card-hover);
  padding: 24px;
  border-radius: 12px;
}

.rain-zone-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.rain-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rain-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rain-stat-label {
  font-size: 18px;
  color: var(--text-secondary);
}

.rain-stat-value {
  font-size: 32px;
  font-weight: 700;
}

.rain-delta {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 600;
}

.rain-delta.positive {
  background: var(--accent-green);
  color: white;
}

.rain-delta.negative {
  background: var(--accent-red);
  color: white;
}

.updates-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  height: 100%;
}

.feed-highlights {
  grid-row: 1 / 3;
}

#feed-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.feed-item {
  background: var(--bg-card-hover);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--accent-blue);
}

.feed-item.compliment {
  border-left-color: var(--accent-green);
}

.feed-item.complaint {
  border-left-color: var(--accent-yellow);
}

.feed-type {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.feed-message {
  font-size: 20px;
  line-height: 1.5;
}

#spotlight-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spotlight-media {
  flex: 1;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-media img,
.spotlight-media video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.spotlight-info {
  background: var(--bg-card-hover);
  padding: 16px;
  border-radius: 12px;
}

.spotlight-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-blue);
  color: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.spotlight-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.spotlight-zone {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.spotlight-notes {
  font-size: 18px;
  line-height: 1.4;
}

.qr-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 16px;
}

#qr-code {
  background: white;
  padding: 16px;
  border-radius: 12px;
}

#qr-code img {
  display: block;
}

.qr-label {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  font-size: 24px;
  color: var(--text-secondary);
}