/* ======================================================================
   IMPERFECT TRUCKING - trucking.imperfectgaming.com
   Distinct asphalt + amber theme. Self-contained: this is the only
   stylesheet on the trucking pages, so it also styles the reused livecard
   component (.livecard / .lc-*).
   ====================================================================== */

:root {
  --bg:        #0e1013;
  --bg-2:      #14171b;
  --surface:   #181c21;
  --surface-2: #20242b;
  --rule:      rgba(255, 255, 255, 0.08);
  --rule-2:    rgba(255, 255, 255, 0.15);
  --ink:       #f3f5f8;
  --ink-2:     #c6ccd4;
  --ink-3:     #8b939e;
  --muted:     #6b7480;
  --amber:     #ffb02e;
  --amber-2:   #ff9410;
  --green:     #54e5b3;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-serif:   "Instrument Serif", Georgia, serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --font-body:    "Manrope", system-ui, sans-serif;

  --radius:    12px;
  --radius-lg: 18px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

.t-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

.twrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.amber { color: var(--amber); }
.it { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--font-mono); }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); letter-spacing: -0.025em; line-height: 1.02; margin: 0; }

.tkicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

/* ---------------------------- NAV ---------------------------- */
.tnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 16, 19, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.tnav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.tbrand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 700; }
.tbrand:hover { text-decoration: none; }
.tbrand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--amber); color: #1a1205;
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  letter-spacing: -0.02em;
}
.tbrand-txt { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; }

.tnav-links { display: flex; align-items: center; gap: 26px; }
.tnav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.tnav-links a:hover { color: var(--ink); text-decoration: none; }
.tcta {
  background: var(--amber); color: #1a1205 !important;
  padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.tcta:hover { background: var(--amber-2); transform: translateY(-1px); text-decoration: none; }

.tburger {
  display: none;
  background: none; border: 1px solid var(--rule-2); color: var(--ink);
  width: 42px; height: 38px; border-radius: 9px; font-size: 20px; cursor: pointer;
}

/* ---------------------------- HERO ---------------------------- */
.thero { position: relative; padding: 96px 0 84px; overflow: hidden; }
.thero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 460px at 78% -8%, rgba(255, 176, 46, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  z-index: 0;
}
.thero-road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26px; z-index: 1;
  background: #0a0c0e;
  border-top: 1px solid var(--rule);
}
.thero-road::after {
  content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 38px, transparent 38px 74px);
  opacity: 0.85;
}
.thero-inner { position: relative; z-index: 2; }
.thero h1 { font-size: clamp(52px, 9vw, 124px); font-weight: 800; }
.thero-lede { max-width: 620px; margin: 22px 0 0; font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-2); }
.thero-lede strong { color: var(--ink); font-weight: 600; }
.thero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.thero-games { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.tgame-chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); padding: 6px 12px; border: 1px solid var(--rule-2); border-radius: 999px;
}

/* ---------------------------- BUTTONS ---------------------------- */
.tbtn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 11px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.tbtn:hover { text-decoration: none; transform: translateY(-2px); }
.tbtn-amber { background: var(--amber); color: #1a1205; }
.tbtn-amber:hover { background: var(--amber-2); }
.tbtn-ghost { border-color: var(--rule-2); color: var(--ink); }
.tbtn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ---------------------------- SECTIONS ---------------------------- */
.tsec { padding: 86px 0; }
.tsec-alt { background: var(--bg-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tsec-head { margin-bottom: 38px; }
.tsec-head h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; }
.tnote { max-width: 640px; margin: 16px 0 0; color: var(--ink-3); font-size: 15.5px; }
.tnote strong { color: var(--ink-2); }

/* ---------------------------- LIVE CARDS (reused partial) ---------------------------- */
.livecards { display: grid; gap: 26px; }
.livecards.is-multi { grid-template-columns: repeat(2, 1fr); align-items: start; }
.livecard-group { min-width: 0; }

.livecard {
  display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center;
  background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--radius-lg);
  padding: 26px 28px; position: relative; overflow: hidden;
}
.livecard::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--muted); opacity: 0.5;
}
.livecard.is-online::before { background: var(--green); opacity: 1; }
.livecard.is-offline::before { background: var(--amber-2); opacity: 0.7; }

.lc-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lc-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--rule-2); border-radius: 999px; padding: 5px 11px;
}
.livecard.is-online .lc-badge { color: var(--green); border-color: rgba(84, 229, 179, 0.4); }
.lc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.livecard.is-online .lc-dot { background: var(--green); box-shadow: 0 0 0 0 rgba(84, 229, 179, 0.6); animation: tpulse 2s infinite; }
@keyframes tpulse { 0% { box-shadow: 0 0 0 0 rgba(84, 229, 179, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(84, 229, 179, 0); } 100% { box-shadow: 0 0 0 0 rgba(84, 229, 179, 0); } }
.lc-game { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.lc-name { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: var(--ink); margin: 14px 0 0; }
.lc-meta { margin-top: 8px; }
.lc-map { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }

.livecard-side { text-align: center; padding-left: 22px; border-left: 1px solid var(--rule); }
.lc-count { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.lc-now { font-size: clamp(44px, 6vw, 66px); color: var(--ink); }
.livecard.is-online .lc-now { color: var(--green); }
.lc-sep, .lc-max { font-size: clamp(26px, 3.5vw, 40px); color: var(--muted); }
.lc-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }

.lc-roster { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.lc-driver {
  font-family: var(--font-mono); font-size: 12.5px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--rule-2); color: var(--ink-2);
}
.lc-driver-time { color: var(--ink-3); }
.livecard.is-online .lc-driver-time { color: var(--green); }
.lc-roster.is-empty .lc-driver-empty,
.lc-driver-empty { font-family: var(--font-body); font-style: italic; color: var(--ink-3); font-size: 14.5px; }

.lc-activity {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
}
.lc-act-stats { display: flex; gap: 22px; }
.lc-act { display: flex; flex-direction: column; gap: 3px; }
.lc-act-v { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1; color: var(--ink); }
.lc-act-l { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.lc-spark { min-width: 0; }
.lc-spark svg { display: block; width: 100%; height: 40px; color: var(--amber); }
.lc-spark-l { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ---------------------------- REQUIRED MODS ---------------------------- */
.tmods-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tmods-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 22px 24px; }
.tmods-card.is-empty { opacity: 0.7; }
.tmods-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tmods-game { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.tmods-count {
  font-size: 12px; color: var(--amber); background: rgba(255, 176, 46, 0.1);
  border: 1px solid rgba(255, 176, 46, 0.35); border-radius: 999px; padding: 3px 11px;
}
.tmods-list, .lc-mods-list { display: flex; flex-wrap: wrap; gap: 8px; }
.lc-mod, .tmod {
  font-family: var(--font-mono); font-size: 12px; padding: 6px 11px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--rule); color: var(--ink-2);
}
.tmods-empty { font-style: italic; color: var(--ink-3); font-size: 14px; }
.tmods-foot { margin: 26px 0 0; color: var(--ink-3); font-size: 14.5px; }

/* ---------------------------- HOW TO JOIN ---------------------------- */
.tsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tsteps li {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--amber);
  border-radius: var(--radius); padding: 22px 24px;
}
.tstep-n { font-family: var(--font-mono); font-weight: 600; font-size: 22px; color: var(--amber); line-height: 1.1; }
.tsteps h3 { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.tsteps p { margin: 0; color: var(--ink-3); font-size: 15px; }
.tsteps p strong { color: var(--ink-2); }

/* ---------------------------- CONVOYS + ABOUT ---------------------------- */
.tabout-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.tconvoys h2, .tabout h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
.tschedule { list-style: none; margin: 24px 0 0; padding: 0; }
.tschedule li {
  display: grid; grid-template-columns: 130px 110px 1fr; align-items: baseline; gap: 12px;
  padding: 14px 0; border-bottom: 1px dashed var(--rule-2);
}
.tsched-day { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.tsched-time { font-family: var(--font-mono); font-size: 14px; color: var(--amber); }
.tsched-what { color: var(--ink-3); font-size: 15px; }
.tabout {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 30px 30px 34px;
}
.tabout p { color: var(--ink-2); }
.tabout .tbtn { margin-top: 20px; }

/* ---------------------------- FOOTER ---------------------------- */
.tfoot { border-top: 1px solid var(--rule); padding: 30px 0; background: var(--bg-2); }
.tfoot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.tfoot-links { display: flex; gap: 20px; }
.tfoot-links a { color: var(--ink-3); }
.tfoot-links a:hover { color: var(--amber); text-decoration: none; }

/* ---------------------------- RESPONSIVE ---------------------------- */
@media (max-width: 880px) {
  .livecards.is-multi { grid-template-columns: 1fr; }
  .tmods-grid { grid-template-columns: 1fr; }
  .tsteps { grid-template-columns: 1fr; }
  .tabout-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .tnav-links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--rule);
    padding: 8px 24px 18px; display: none;
  }
  .tnav-links.open { display: flex; }
  .tnav-links a { padding: 13px 0; border-bottom: 1px solid var(--rule); }
  .tcta { text-align: center; margin-top: 12px; }
  .tburger { display: inline-flex; align-items: center; justify-content: center; }

  .livecard { grid-template-columns: 1fr; }
  .livecard-side { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); padding-top: 16px; text-align: left; display: flex; align-items: baseline; gap: 12px; }
  .lc-label { margin-top: 0; }
  .lc-activity { grid-template-columns: 1fr; gap: 14px; }
  .tschedule li { grid-template-columns: 1fr; gap: 2px; }
}
