/* DIRTy Racing — TTT public sign-up page */

/* ── Hero (anonymous state) ─────────────────────────────────────────── */
.ttt-hero {
  background: #1a1a1a;
  color: #fff;
  padding: 3rem 0 2.5rem;
}
.ttt-hero__inner {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.ttt-hero__text {
  flex: 1 1 340px;
}
.ttt-hero__eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #c0392b;
  margin: 0 0 .5rem;
}
.ttt-hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.15;
}
.ttt-hero__body {
  color: #ccc;
  line-height: 1.65;
  margin: 0 0 1rem;
}
.ttt-hero__zones {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  color: #bbb;
  font-size: .9rem;
  line-height: 1.9;
}
.ttt-hero__cta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.ttt-hero__events {
  flex: 0 0 260px;
  background: #252525;
  border-radius: 8px;
  padding: 1.25rem;
}
.ttt-section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 .75rem;
}
.ttt-anon-date {
  margin-bottom: 1rem;
}
.ttt-anon-date__heading {
  font-size: .9rem;
  font-weight: 700;
  color: #ddd;
  margin: 0 0 .5rem;
}
.ttt-anon-event {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .83rem;
  color: #aaa;
  margin-bottom: .25rem;
}
.ttt-anon-event__time,
.ttt-anon-event__count {
  color: #888;
}
.ttt-hero__hint {
  font-size: .8rem;
  color: #666;
  margin: .75rem 0 0;
}

/* ── Zone badge ─────────────────────────────────────────────────────── */
.ttt-zone-badge {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 3px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ttt-zone-badge--z24 { background: #9b111e; color: #fff; }
.ttt-zone-badge--z26 { background: #0f52ba; color: #fff; }

/* ── Logged-in page layout ──────────────────────────────────────────── */
.ttt-page {
  padding: 2rem 1.5rem;
}
.ttt-notice {
  padding: .85rem 1.1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  line-height: 1.5;
}
.ttt-notice--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.ttt-notice--info a { color: #1e40af; }
.ttt-empty {
  color: #888;
  text-align: center;
  padding: 3rem 0;
}

/* ── Week section ───────────────────────────────────────────────────── */
.ttt-week {
  margin-bottom: 2.5rem;
}
.ttt-week__heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #e5e5e5;
}
.ttt-zones-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ── Zone card ──────────────────────────────────────────────────────── */
.ttt-zone-card {
  flex: 1 1 320px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  transition: border-color .15s;
}
.ttt-zone-card--signed-up {
  border-color: #4ade80;
  background: #f0fdf4;
}

/* Card header */
.ttt-zone-card__header {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}
.ttt-zone-card__name {
  font-weight: 600;
  font-size: .9rem;
  flex: 1 1 auto;
}
.ttt-zone-card__time {
  font-size: .82rem;
  color: #666;
}
.ttt-zone-card__count {
  font-size: .82rem;
  color: #888;
  background: #f0f0f0;
  padding: .15rem .5rem;
  border-radius: 20px;
}
.ttt-zone-card__status {
  font-size: .75rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 3px;
}
.ttt-zone-card__status--locked   { background: #fef3c7; color: #92400e; }
.ttt-zone-card__status--complete { background: #e5e7eb; color: #6b7280; }
.ttt-zone-card__status--cancelled{ background: #fee2e2; color: #991b1b; }

/* ── Sign-up toggle ─────────────────────────────────────────────────── */
.ttt-signup-row {
  margin-bottom: .85rem;
}
.ttt-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  user-select: none;
}
.ttt-toggle__input {
  width: 1.15rem;
  height: 1.15rem;
  cursor: pointer;
  accent-color: #16a34a;
}
.ttt-toggle__label {
  font-weight: 700;
  font-size: .95rem;
}

/* ── Sign-up detail fields ──────────────────────────────────────────── */
.ttt-signup-details {
  background: #f8fafb;
  border: 1px solid #e0e7ef;
  border-radius: 6px;
  padding: .9rem 1rem;
  margin-bottom: .85rem;
}
.ttt-field-row {
  margin-bottom: .75rem;
}
.ttt-field-row:last-child { margin-bottom: 0; }
.ttt-field-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: #555;
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ttt-field-inline {
  display: flex;
  gap: .5rem;
}
.ttt-input {
  flex: 1 1 auto;
  padding: .35rem .6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: .88rem;
  font-family: inherit;
}
.ttt-input:focus {
  outline: none;
  border-color: #6b9bd2;
  box-shadow: 0 0 0 2px rgba(107,155,210,.2);
}
.ttt-select {
  padding: .35rem .55rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: .88rem;
  font-family: inherit;
  background: #fff;
}
.ttt-field-hint {
  font-size: .77rem;
  color: #888;
  margin: .3rem 0 0;
}

/* ── Route card (full-width, above zones) ───────────────────────────── */
.ttt-route-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #c0392b;
  border-radius: 6px;
  padding: .6rem 1rem;
  margin-bottom: 1rem;
  font-size: .85rem;
}
.ttt-route-card__name {
  font-weight: 700;
  color: #222;
}
.ttt-route-card__meta {
  color: #555;
}
.ttt-route-card__meta::before {
  content: '·';
  margin-right: .5rem;
  color: #ccc;
}

/* ── Pool section ───────────────────────────────────────────────────── */
.ttt-pool-section {
  margin-top: .75rem;
}
.ttt-pool-toggle {
  font-size: .78rem;
}
.ttt-pool {
  margin-top: .6rem;
  overflow-x: auto;
}
.ttt-pool-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.ttt-pool-table th {
  text-align: left;
  padding: .3rem .5rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #888;
  border-bottom: 1px solid #e0e0e0;
  white-space: nowrap;
}
.ttt-pool-table td {
  padding: .35rem .5rem;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}
.ttt-pool-table tr:last-child td { border-bottom: none; }
.ttt-pool-table__name { font-weight: 600; }

/* ── Note icon tooltip ──────────────────────────────────────────────── */
.ttt-note-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: .3rem;
  cursor: pointer;
  color: #aaa;
  vertical-align: middle;
  line-height: 1;
}
.ttt-note-icon:hover,
.ttt-note-icon:focus { color: #666; outline: none; }
.ttt-note-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: .35rem .6rem;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 400;
  white-space: normal;
  min-width: 140px;
  max-width: 240px;
  z-index: 200;
  pointer-events: none;
  line-height: 1.4;
}
.ttt-note-icon:hover .ttt-note-tooltip,
.ttt-note-icon:focus .ttt-note-tooltip,
.ttt-note-icon.open  .ttt-note-tooltip { display: block; }
.ttt-pool-empty {
  color: #aaa;
  font-size: .85rem;
  margin: .5rem 0 0;
}

/* ── Category chip ──────────────────────────────────────────────────── */
.ttt-cat-chip {
  display: inline-block;
  padding: .1rem .45rem;
  border-radius: 3px;
  font-size: .75rem;
  font-weight: 700;
}

/* ── Team rosters ───────────────────────────────────────────────────── */
.ttt-teams-section {
  margin-top: .5rem;
}
.ttt-section-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #888;
  font-weight: 600;
}
.ttt-team-roster {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  margin-bottom: .5rem;
  overflow: hidden;
}
.ttt-team-roster--mine {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,.15);
}
.ttt-team-roster__header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .65rem;
  background: #f9f9f9;
  border-bottom: 1px solid #ebebeb;
}
.ttt-team-roster__swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ttt-team-roster__name {
  font-weight: 700;
  font-size: .84rem;
  flex: 1;
}
.ttt-team-roster__you {
  font-size: .72rem;
  background: #6366f1;
  color: #fff;
  border-radius: 3px;
  padding: .1rem .4rem;
  font-weight: 600;
}
.ttt-team-roster__riders {
  padding: .3rem .65rem .4rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.ttt-team-rider {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
}
.ttt-team-rider--me .ttt-team-rider__name {
  font-weight: 700;
}
.ttt-team-rider__name {
  flex: 1;
}
.ttt-team-rider__wkg {
  font-size: .75rem;
  color: #777;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ttt-hero__title  { font-size: 1.65rem; }
  .ttt-hero__events { flex: 1 1 100%; }
  .ttt-zone-card    { flex: 1 1 100%; }
  .ttt-zones-row    { flex-direction: column; }
}
