/* =====================================================================
   Velocity Karting Club - custom theme on top of Bootstrap 5
   Racing look: dark carbon navbar, red accents, checkered highlights
   ===================================================================== */

:root {
  --vkc-red: #d62828;
  --vkc-dark: #14141a;
  --vkc-grey: #2b2b33;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* ---------- Navbar & footer ---------- */
.vkc-navbar {
  background: linear-gradient(90deg, var(--vkc-dark) 0%, var(--vkc-grey) 100%);
  border-bottom: 3px solid var(--vkc-red);
}

.vkc-navbar .nav-link.active {
  color: #fff;
  border-bottom: 2px solid var(--vkc-red);
}

.vkc-footer {
  background: var(--vkc-dark);
  border-top: 3px solid var(--vkc-red);
}

/* ---------- Hero (home page) ---------- */
.vkc-hero {
  background:
    linear-gradient(rgba(20, 20, 26, 0.85), rgba(20, 20, 26, 0.9)),
    repeating-linear-gradient(45deg, #1b1b22 0 24px, #22222b 24px 48px);
  color: #fff;
  border-radius: 1rem;
  padding: 4rem 2rem;
}

.vkc-hero .display-4 {
  letter-spacing: 1px;
}

/* checkered flag strip */
.vkc-checker {
  height: 14px;
  background:
    repeating-conic-gradient(#111 0% 25%, #fff 0% 50%) 0 0 / 28px 14px;
  border-radius: 3px;
}

/* ---------- Cards ---------- */
.vkc-tier-card {
  border-top: 4px solid var(--vkc-red);
  transition: transform .15s ease, box-shadow .15s ease;
}

.vkc-tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .25);
}

.vkc-stat-card {
  border-left: 4px solid var(--vkc-red);
}

/* ---------- Forms ---------- */
.vkc-form-card {
  max-width: 560px;
  margin: 0 auto;
}

.password-strength {
  height: 6px;
  border-radius: 3px;
  transition: width .25s ease, background-color .25s ease;
  width: 0;
}

/* ---------- Tables ---------- */
.table thead th {
  white-space: nowrap;
}

th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sortable::after {
  content: " \2195";
  opacity: .4;
}

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  display: none;
  z-index: 1050;
}

/* ---------- Leaderboard podium ---------- */
.podium-1 { background: linear-gradient(90deg, rgba(255, 193, 7, .25), transparent); }
.podium-2 { background: linear-gradient(90deg, rgba(173, 181, 189, .25), transparent); }
.podium-3 { background: linear-gradient(90deg, rgba(205, 127, 50, .25), transparent); }

/* ---------- Print (receipt) ---------- */
@media print {
  .vkc-navbar, .vkc-footer, #backToTop, .no-print {
    display: none !important;
  }
}
