/* =====================================================
   BASE / RESET
===================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #0f1115;
  color: #f4f6fb;
}
/* Unvisited link */
a:link {  color: #9aa3b2; }

/* Visited link */
a:visited {  color: #9aa3b2; }

:root {
  --bg: #0f1115;
  --card: #171a21;
  --muted: #9aa3b2;
  --text: #f4f6fb;
  --line: #262b36;
  --accent: #b11226;
}

/* =====================================================
   FORM ELEMENTS (inputs match buttons)
===================================================== */

input,
select,
textarea {
  border: 1px solid var(--line);
  background: #0e1016;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
}

input:hover,
select:hover,
textarea:hover {
  filter: brightness(1.05);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(177, 18, 38, 0.8);
  box-shadow: 0 0 0 2px rgba(177, 18, 38, 0.25);
}

/* =====================================================
   HEADER
===================================================== */
.top {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 🔑 centers logo + title + meta */
  text-align: center;
}
.ratt-logo {
  max-width: 112px;
  width: 100%;
  height: auto;
   margin: 1px auto 1px;  /* 🔑 force center */
  margin-bottom: 1px;
}


header.top {
  display: block;color:#ffffff;
}

header.top h1 {
  display: block;
}

.top {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.meta {
  color: var(--muted);
  font-size: 16px;
}

/* =========================
   HERO LANDING LAYOUT
========================= */

#landing {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: radial-gradient(
    1200px 800px at 50% 0%,
    #1a2030,
    #0f1115
  );
}

.landing-wrap {
  width: 100%;

  padding: 24px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;

  /* ðŸ”‘ pushes content into top third */
  padding-top: 10vh;
}

.landing-logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin-bottom: 36px;

  display: block;
}
#landing2 {

  display: flex;
  justify-content: center;
  background: radial-gradient(
    1200px 800px at 50% 0%,
    #1a2030,
    #0f1115
  );
}

.landing-wrap2 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* ðŸ”‘ pushes content into top third */
}

.landing-logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin-bottom: 36px;

  display: block;
}
#board {width:100%;}
/* =====================================================
   EVENT LIST (PUBLIC LANDING)
===================================================== */

.event-list {
  width: 100%;
}

.event-card {
  max-width: 720px;
  margin: 0 auto 16px;

  display: flex;
  flex-direction: column;     /* ðŸ”‘ FORCE column on desktop */
  align-items: center;        /* ðŸ”‘ center everything */
  gap: 14px;

  background:
    linear-gradient(180deg, #1b1f2a, #141820),
    linear-gradient(90deg, #b11226, transparent 60%);
  border: 1px solid #262b36;
  border-radius: 14px;
  padding: 20px;
}


.event-main {
  display: flex;
  flex-direction: column;
  gap: 4px;

}

.event-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.event-meta {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.35;
}

/* dot separator */
.sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--muted);
  border-radius: 50%;
  margin: 0 8px;
  transform: translateY(-2px);
}

/* status text */
.status {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.status.open {
  color: #4caf50;
}

.event-actions {
  flex-shrink: 0;
}

/* =====================================================
   BUTTONS
===================================================== */

.btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #111;
  color: var(--text);
  cursor: pointer;
}

.btnPrimary {
  background: linear-gradient(180deg, var(--accent), #7d0c1b);
  border: 1px solid var(--accent);
  color: #fff;
}

.btnPrimary:hover {
  filter: brightness(1.1);
}

/* =====================================================
   BOARD / DIVISIONS
===================================================== */

section {
  margin: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.caret {
  font-size: 0.9rem;
  color: var(--muted);
}

.division-body {
  padding: 4px 0 10px;
}

.weight-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
}

.weight-status {
  font-size: 0.9rem;
  text-transform: capitalize;
}

.status-available {
  cursor: pointer;
}

.status-pending,
.status-confirmed {
  opacity: 0.6;
}

/* =====================================================
   MODAL
===================================================== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none;
}

.modal-card {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  width: 280px;
}

.modal-card input {
  width: 100%;
  margin-bottom: 8px;
}

.actions {
  display: flex;
  justify-content: space-between;
}

/* =====================================================
   MOBILE TWEAKS
===================================================== */

@media (max-width: 640px) {
  .event-card {
    flex-direction: column;
    align-items: stretch;
  }

  .event-actions {
    margin-top: 10px;
  }
}

.event-main {
  align-items: center;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-card {
  background: #111;
  color: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
}

.modal-card h3 {
  margin: 0 0 14px;
  text-align: center;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  opacity: 0.85;
}
.form-group select,
.form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #0f1115;
  color: #fff;
}

.form-group .row {
  display: flex;
  gap: 10px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.modal-actions .btn {
  flex: 1;
}
.claim-summary {
  background: #0f1115;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}
/* === FORCE EVENT LIST VISIBILITY (DEBUG / FIX) === */
#landingText {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10 !important;
}

.event-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 11 !important;
  background: #1b1f2a !important;
}
/* Base */
.weight-status {
  font-weight: 600;
}

/* AVAILABLE */
.weight-row.status-available .weight-status {
  color: #9aa0a6; /* muted gray */
}

/* PENDING — dark gold */
.weight-row.status-pending .weight-status {
  color: #c9a227;        /* dark gold */
  text-shadow: 0 0 1px rgba(0,0,0,.25);
}

/* CONFIRMED (future-proof) */
.weight-row.status-confirmed .weight-status {
  color: #2e7d32;        /* deep green */
}


.claimed {
  color: #b11226; /* Rattlers red */
  font-weight: 600;
  text-transform: uppercase;
}
.division-count {
  font-size: 0.85em;
  opacity: 0.75;
  margin-left: 6px;
  white-space: nowrap;
}

.status-available .division-count {
  color: #4caf50;
}
#eventFee {
  margin-bottom: 6px;
}

.event-fee {
  margin-top: 6px;
  font-size: 1.0em;
  opacity: 0.85;
}

main.wrap .card {
  padding: 4px;
}
/* Checkbox row reset */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  text-align: left;
}

/* Undo global input styling */
.checkbox-row input[type="checkbox"] {
  width: auto !important;
  max-width: none !important;
  display: inline-block;
  margin: 0;
  accent-color: #c4161c; /* optional Rattlers red */
}

/* Ensure wrapper aligns like other fields */
#gearDiscountWrap {
  text-align: left;
}
.event-meta-line {
  display: flex;
  align-items: center; justify-content: center; /* 👈 THIS */
  text-align: center; 
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .event-meta-line {
    flex-direction: column;
    align-items: center;   /* 👈 center horizontally */
    text-align: center;    /* 👈 center text */
    gap: 4px;
  }

  .event-meta-line .sep {
    display: none;
  }
}

@media (max-width: 600px) {
  .event-meta-line span:first-child {
    font-weight: 600;
  }
}
#modal {  color: #fff;}
#modalTitle {  color: #fff;}
#eventTitle {  color: #fff;}
/* Autocomplete suggestions */
.form-group {
  position: relative;
  overflow: visible;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  background: #0f1115;
  border: 1px solid #262b36;
  border-radius: 8px;

  max-height: 220px;
  overflow-y: auto;

  z-index: 100000; /* above modal */
  display: none;
}

.suggestions.active {
  display: block;
}

.suggestion {
  margin:0px;
  padding: 10px 12px;
  cursor: pointer;
  color: #f4f6fb;
  background: #262b36;
}

.suggestion:hover {
  background: #171a21;
}

.suggestion.muted {
  color: #9aa3b2;
  cursor: default;
}

.field-error {
  margin-top: 6px;
  font-size: 13px;
  color: #ff6b6b;
}

.hidden {
  display: none;
}

input.input-error {
  border-color: #ff6b6b !important;
  box-shadow: 0 0 0 2px rgba(255,107,107,0.25);
}
#dobError {margin:1px 0;}

input.verified {
  border-color: #2ecc71;
  box-shadow: 0 0 0 2px rgba(46,204,113,.35);
}

.verified-badge {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #2ecc71;
}

.input-wrap {
  position: relative;
}

.clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);

  background: transparent;
  border: none;
  color: #9aa3b2;
  font-size: 16px;
  cursor: pointer;
}

.clear-btn:hover {
  color: #f4f6fb;
}
.modal-card select {
  padding: 0 10px;       /* horizontal only */
  height: 38px;          /* match inputs */
  line-height: 38px;     /* vertical centering */
  border-radius: 10px;
}
/* Normalize select height */
.form-group select {
  padding: 8px 10px;
  line-height: 1.2;
  height: 40px;
}

/* Remove extra browser chrome */
.form-group select::-ms-expand {
  display: none;
}
.caret img {
  transition: transform 0.2s ease;
}

.portal-link {
  color: #5fa8ff;              /* soft blue */
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.portal-link:hover {
  color: #ffffff;
  border-bottom: 1px solid #5fa8ff;
}

.portal-link:active {
  opacity: 0.8;
}
