/* Shared components: buttons, cards, badges, menu items, event rows, forms */

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur), border-color var(--dur), transform var(--dur);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--amber);
  color: var(--bg);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: var(--text-xs);
}

/* ─── Day Badge (events) ─── */
.day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--amber);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* ─── Card ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  transition: border-color var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--muted-dark);
}

/* ─── Menu item row ─── */
.menu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.menu-item:last-child { border-bottom: none; }
.menu-item-name {
  color: var(--cream-dim);
  font-size: var(--text-base);
  flex: 1;
}
.menu-item-desc {
  font-size: var(--text-xs);
  color: var(--muted);
  display: block;
  margin-top: 0.15rem;
}
.menu-item-dots {
  flex: 1;
  border-bottom: 1px dotted var(--muted-dark);
  margin: 0 var(--sp-1);
  min-width: 1rem;
  align-self: center;
}
.menu-item-price {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Section heading ─── */
.section-heading {
  margin-bottom: var(--sp-5);
}
.section-heading h2 {
  margin-top: var(--sp-1);
  color: var(--cream);
}
.section-heading p {
  margin-top: var(--sp-2);
  max-width: 52ch;
}

/* ─── Feature pill ─── */
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--text-xs);
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* ─── Stamp / retro badge ─── */
.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border: 2px solid var(--amber);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--amber);
  flex-shrink: 0;
}

/* ─── Icon box ─── */
.icon-box {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--surface-2);
  flex-shrink: 0;
}

/* ─── Tag ─── */
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ─── Input ─── */
.input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  transition: border-color var(--dur);
  outline: none;
}
.input:focus {
  border-color: var(--amber);
}
.input::placeholder {
  color: var(--muted-dark);
}

/* ─── Footnote ─── */
.footnote {
  font-size: var(--text-xs);
  color: var(--muted-dark);
  font-family: var(--font-mono);
  line-height: 1.6;
  margin-top: var(--sp-3);
}

/* ─── Loyalty card mockup ─── */
.loyalty-card {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  max-width: 340px;
  position: relative;
  overflow: hidden;
}
.loyalty-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 30px solid rgba(201, 106, 61, 0.08);
}
.loyalty-card-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--sp-3);
}
.loyalty-card-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--cream);
  margin-bottom: var(--sp-1);
}
.loyalty-card-bonus {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-top: var(--sp-2);
}
.loyalty-card-member {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border);
}

/* ─── Grid utilities ─── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
