/* ── Reset & Base ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0d1117;
  color: #c9d1d9;
  font-family: "Courier New", monospace;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

h1,
h2 {
  color: #58a6ff;
  margin-bottom: 10px;
}

button {
  background-color: #238636;
  color: #fff;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  transition: background 0.2s;
}

button:hover {
  background-color: #2ea043;
}

/* ── Region Select ── */
#region-select {
  text-align: center;
  margin-top: 100px;
}

#region-select p {
  margin-bottom: 20px;
  color: #8b949e;
}

#region-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

#region-buttons button {
  font-size: 16px;
  padding: 12px 24px;
}

/* ── Stats Bar ── */
#stats-bar {
  display: flex;
  gap: 24px;
  background: #161b22;
  padding: 12px 20px;
  border-radius: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  border: 1px solid #30363d;
}

#stats-bar span {
  font-size: 14px;
  color: #8b949e;
}

#stats-bar strong {
  color: #f0f6fc;
}

/* ── Weather Panel ── */
#weather-panel {
  display: flex;
  gap: 20px;
  background: #161b22;
  padding: 12px 20px;
  border-radius: 6px;
  margin-bottom: 16px;
  border: 1px solid #30363d;
  flex-wrap: wrap;
}

#weather-label {
  color: #e3b341;
  font-weight: bold;
}

/* ── Farm Section ── */
#farm-section,
#market-section,
#log-section {
  background: #161b22;
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 16px;
  border: 1px solid #30363d;
}

/* ── Plots ── */
#plots-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.plot {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.plot.ready {
  border-color: #2ea043;
  box-shadow: 0 0 8px #2ea04355;
}

.plot.empty {
  color: #30363d;
  font-size: 13px;
  border-style: dashed;
}

.plot-emoji {
  font-size: 28px;
}

.plot-name {
  font-size: 13px;
  color: #8b949e;
}

.plot-percent {
  font-size: 12px;
  color: #58a6ff;
}

/* ── Progress Bar ── */
.progress-bar {
  width: 100%;
  background: #30363d;
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #2ea043;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* ── Market ── */
#market-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.market-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: #0d1117;
  border-radius: 6px;
  border: 1px solid #30363d;
  flex-wrap: wrap;
}

.market-item.disabled {
  opacity: 0.4;
}

.out-of-season {
  font-size: 12px;
  color: #8b949e;
}

/* ── Message Log ── */
#message-log {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#message-log p {
  font-size: 13px;
  color: #3fb950;
  padding: 2px 0;
}

/* ── Controls ── */
#controls {
  text-align: center;
  margin-top: 16px;
}

#next-day-btn {
  font-size: 16px;
  padding: 12px 32px;
  background-color: #1f6feb;
}

#next-day-btn:hover {
  background-color: #388bfd;
}