/* LTFC Season Tickets — shared styles
   Colour palette taken from the Luton home kit / card design:
   - Deep near-black background
   - Luton orange accent (#F26522)
   - Off-white card backs (#f3f1ed)
*/

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

html, body {
  background: #111;
  min-height: 100vh;
  color: #eee;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body { padding: 20px 16px 64px; }

.container {
  max-width: 720px;
  margin: 0 auto;
}

h1 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  color: #fff;
}
h2 {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #999;
  margin: 24px 0 10px;
  text-transform: uppercase;
}

.subtitle { color: #888; font-size: 13px; margin-bottom: 20px; }

.tabs {
  display: flex;
  gap: 4px;
  background: #1a1a1e;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}
.tab {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  border-radius: 7px;
  background: transparent;
  border: none;
  color: #aaa;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tab.active { background: #F26522; color: #fff; }

.panel { display: none; }
.panel.active { display: block; animation: fadeIn 0.2s; }

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

/* Buttons */
button, .btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
button:active, .btn:active { transform: scale(0.97); }
.btn-primary { background: #F26522; color: #fff; }
.btn-primary:hover { background: #e05515; }
.btn-ghost { background: transparent; color: #aaa; border: 1px solid #333; }
.btn-ghost:hover { border-color: #666; color: #eee; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-small { font-size: 12px; padding: 6px 10px; }

/* Form inputs */
input, select, textarea {
  width: 100%;
  background: #1a1a1e;
  border: 1px solid #333;
  border-radius: 8px;
  color: #eee;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: #F26522; }
label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #888;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.field { margin-bottom: 12px; }
.field-row { display: flex; gap: 10px; }
.field-row > .field { flex: 1; }

/* Fixture card */
.fix-card {
  background: #1a1a1e;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.15s;
}
.fix-card:hover { border-color: #F26522; }
.fix-date {
  background: #F26522;
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 900;
  text-align: center;
  min-width: 50px;
  font-size: 11px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.fix-date .day { font-size: 18px; display: block; }
.fix-body { flex: 1; margin: 0 12px; }
.fix-opp { font-weight: 700; font-size: 16px; color: #fff; }
.fix-meta { font-size: 12px; color: #888; margin-top: 2px; }
.fix-attendance-pill {
  font-size: 11px;
  background: #2a2a2e;
  color: #aaa;
  padding: 4px 8px;
  border-radius: 99px;
  white-space: nowrap;
}
.fix-attendance-pill.full { background: #27ae60; color: #fff; }

/* Empty state */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 14px;
}

/* Status pills */
.status-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
}
.status-used    { background: #27ae60; color: #fff; }
.status-sold    { background: #2980b9; color: #fff; }
.status-given   { background: #8e44ad; color: #fff; }
.status-spare   { background: #7f8c8d; color: #fff; }
.status-unused  { background: #34495e; color: #ccc; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px;
  z-index: 1000;
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #1a1a1e;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 480px;
  margin: auto;
}
.modal h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 18px;
  margin-bottom: 12px;
  color: #fff;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* Ticket row in attendance modal */
.tkt-row {
  background: #0f0f12;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.tkt-row-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}
.tkt-row-head strong { color: #F26522; }

.people-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.chip {
  background: #2a2a2e;
  color: #ccc;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  cursor: pointer;
  border: 1px solid transparent;
}
.chip:hover { border-color: #F26522; color: #fff; }

/* Header / logout */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
.logout-link {
  color: #666;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.logout-link:hover { color: #F26522; }
