/* Grace Upon Grace Auctions — clean, mobile-first, teal + coral */
:root {
  --teal: #0f766e;
  --teal-dark: #0b5e57;
  --coral: #f2624a;
  --coral-dark: #d64e38;
  --ink: #1f2a2a;
  --muted: #5b6b6b;
  --line: #dce5e5;
  --bg: #f7f5f2;
  --card: #ffffff;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

/* Header */
.site-header {
  background: var(--teal);
  color: #fff;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}
.brand { color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.brand span { color: #ffd9d2; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-left: auto; }
.site-nav a { color: #e6fffa; text-decoration: none; padding: 0.25rem 0; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .owner-link { font-weight: 700; }
.btn-small {
  background: var(--coral); color: #fff !important;
  padding: 0.3rem 0.8rem !important; border-radius: 999px;
}

/* Layout */
.container { max-width: 960px; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.6rem; margin: 0.5rem 0 0.75rem; }
h2 { font-size: 1.2rem; margin-top: 1.5rem; }
.lede { color: var(--muted); max-width: 60ch; }
.empty { color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.25rem; }
.meta { color: var(--muted); font-size: 0.9rem; }

/* Buttons */
.btn {
  display: inline-block; background: var(--coral); color: #fff !important;
  border: none; border-radius: 999px; padding: 0.6rem 1.2rem;
  font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--coral-dark); }
.btn-ghost {
  background: transparent; color: var(--teal) !important;
  border: 2px solid var(--teal);
}
.btn-ghost:hover { background: #e6fffa; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.filters input[type="search"], .filters select {
  padding: 0.6rem; border: 1px solid var(--line); border-radius: 8px;
  font-size: 1rem; background: #fff; flex: 1 1 140px;
}

/* Lot cards */
.lot-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.lot-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.lot-card img, .photo-placeholder {
  width: 100%; height: 180px; object-fit: cover; display: block;
}
.photo-placeholder {
  background: #e0f2f1; color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.photo-placeholder.big { height: 280px; font-size: 1.4rem; }
.lot-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.lot-body h2 { margin: 0; font-size: 1.1rem; }
.lot-body h2 a { color: var(--ink); text-decoration: none; }
.lot-body h2 a:hover { color: var(--teal); }
.bid-line { margin: 0; }
.lot-body .btn { margin-top: auto; align-self: flex-start; }

/* Lot detail */
.lot-photo { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); }
.bid-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; margin: 1rem 0;
}
.current-bid { font-size: 1.2rem; margin: 0 0 0.5rem; }
.premium-note { color: var(--muted); font-size: 0.95rem; }
.bid-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin-top: 0.75rem; }
.bid-form label { font-weight: 700; width: 100%; }
.bid-form input { padding: 0.6rem; border: 1px solid var(--line); border-radius: 8px; font-size: 1.1rem; width: 10rem; }

/* Forms */
.form { max-width: 520px; display: flex; flex-direction: column; gap: 0.35rem; }
.form label { font-weight: 700; margin-top: 0.6rem; }
.form input, .form select, .form textarea {
  padding: 0.65rem; border: 1px solid var(--line); border-radius: 8px;
  font-size: 1rem; background: #fff; width: 100%;
}
.form .btn { margin-top: 1rem; align-self: flex-start; }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 0.6rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.table th { background: var(--teal); color: #fff; }
.table tr:last-child td { border-bottom: none; }

/* Totals + flashes */
.totals {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.25rem 2rem;
}
.totals p { margin: 0.25rem 0; }
.flashes { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.flash { border-radius: 8px; padding: 0.75rem 1rem; margin: 0.75rem 0; }
.flash-success { background: #dcfce7; color: #14532d; }
.flash-error { background: #fee2e2; color: #7f1d1d; }

/* Footer */
.site-footer {
  text-align: center; color: var(--muted); font-size: 0.9rem;
  padding: 2rem 1rem; border-top: 1px solid var(--line); margin-top: 2rem;
}

@media (max-width: 560px) {
  h1 { font-size: 1.35rem; }
  .site-nav { margin-left: 0; }
  .table { font-size: 0.85rem; }
  .table th, .table td { padding: 0.45rem; }
}
