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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f5f0e8;
  color: #333;
  min-height: 100vh;
}

/* === Header === */
header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #2c2c2c;
  letter-spacing: -1px;
}

.accent { color: #e07b4c; }

.tagline {
  font-size: 1.1rem;
  color: #777;
  margin-top: 0.3rem;
  font-style: italic;
}

/* === Board (post-it grid) === */
.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.8rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

/* === Notes (post-it cards) === */
.note {
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow:
    2px 3px 8px rgba(0,0,0,0.12),
    inset 0 -2px 4px rgba(0,0,0,0.04);
  position: relative;
  transform: rotate(-0.4deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.note:nth-child(2) { transform: rotate(0.3deg); }
.note:nth-child(3) { transform: rotate(-0.2deg); }
.note:nth-child(4) { transform: rotate(0.5deg); }

.note:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 3px 5px 14px rgba(0,0,0,0.16);
}

.note-yellow { background: #fff9b1; }
.note-blue   { background: #b1d4ff; }
.note-green  { background: #b8f0b1; }
.note-pink   { background: #ffb1d0; }

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.note-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c2c2c;
}

.note-icon { font-size: 1.5rem; }

.note-desc {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.note-body { min-height: 60px; }

/* === Inputs === */
.input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.input-row input[type="text"],
.input-row input[type="number"],
.input-row select {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 4px;
  font-size: 0.92rem;
  background: rgba(255,255,255,0.7);
  outline: none;
  transition: border-color 0.15s;
}

.input-row input:focus,
.input-row select:focus {
  border-color: #e07b4c;
}

.input-row input[type="number"] {
  max-width: 80px;
}

.input-row button,
button.btn-go {
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 4px;
  background: #2c2c2c;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.input-row button:hover,
button.btn-go:hover {
  background: #e07b4c;
}

/* === Lists === */
ul {
  list-style: none;
}

ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
  font-size: 0.9rem;
  gap: 0.5rem;
}

ul li:last-child { border-bottom: none; }

li .item-text { flex: 1; }

li .item-price {
  font-weight: 700;
  color: #c0392b;
  white-space: nowrap;
}

li .item-time {
  font-size: 0.78rem;
  color: #888;
  white-space: nowrap;
}

li .item-status {
  font-size: 0.78rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-weight: 600;
}

.status-waiting {
  background: rgba(0,0,0,0.08);
  color: #666;
}

.status-ready {
  background: #e07b4c;
  color: #fff;
  cursor: pointer;
}

.status-skipped {
  background: #27ae60;
  color: #fff;
}

.status-bought {
  background: #c0392b;
  color: #fff;
}

li button.remove-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 0.3rem;
  transition: color 0.15s;
}

li button.remove-btn:hover { color: #c0392b; }

/* === One Thing === */
.big-thing {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  padding: 1rem 0;
  line-height: 1.3;
}

.onething-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.btn-done {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 4px;
  background: #27ae60;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-done:hover { background: #219a52; }

.btn-clear {
  padding: 0.5rem 1rem;
  border: 2px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  background: transparent;
  color: #555;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-clear:hover {
  border-color: #c0392b;
  color: #c0392b;
}

#onething-streak {
  text-align: center;
  font-size: 0.82rem;
  color: #555;
  margin-top: 0.5rem;
}

/* === Quick Decide === */
.decide-prompt {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.8rem;
}

.decide-vs {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
}

.btn-pick {
  flex: 1;
  max-width: 200px;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  background: rgba(255,255,255,0.5);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-pick:hover {
  background: #2c2c2c;
  color: #fff;
  border-color: #2c2c2c;
}

.vs {
  font-style: italic;
  color: #888;
  font-size: 0.9rem;
}

#decide-go {
  width: 100%;
  margin-top: 0.5rem;
}

#decide-options li {
  padding: 0.35rem 0;
}

/* === Saved Message === */
.saved-msg {
  text-align: center;
  font-size: 0.85rem;
  color: #27ae60;
  font-weight: 600;
  min-height: 1.2rem;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  color: #999;
  font-size: 0.88rem;
}

.footer-sub {
  margin-top: 0.3rem;
  font-weight: 600;
  color: #bbb;
}

/* === Utility === */
.hidden { display: none !important; }

/* === Responsive === */
@media (max-width: 600px) {
  header h1 { font-size: 2.2rem; }
  .board { padding: 1rem; gap: 1.2rem; }
  .note { padding: 1.2rem; }
  .big-thing { font-size: 1.2rem; }
  .decide-vs { flex-direction: column; }
  .btn-pick { max-width: 100%; }
}
