/* =============================================
   HRz PITSTOP – CSS Base, Variables & Typography
   Adapted from the editorial "Rogue Ride" design
   ============================================= */

:root {
  --ink: #0d0e10;
  --charcoal: #17191c;
  --steel: #272a2e;
  --paper: #f0efea;
  --mute: #a5a6a6;
  --red: #e13b31;
  --red2: #ff5045;
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.2);
  --gold: #ffb703;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.25);
  --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  line-height: .87;
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
}

h1 { font-size: clamp(68px, 8.4vw, 126px); letter-spacing: -2.5px; }
h1 em, h2 em { font-style: normal; color: var(--red); }

::selection { background: var(--red); color: #fff; }

*:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---- Global Buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  padding: 15px 20px;
  cursor: pointer;
  transition: .2s;
}
.button span { font-size: 22px; line-height: 10px; }

.button-red { background: var(--red); color: white; }
.button-red:hover { background: var(--red2); transform: translateY(-2px); }

.button-outline { border-color: #7f8080; color: #fff; }
.button-outline:hover { border-color: var(--red); color: var(--red); }

.accent-button {
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Barlow Condensed';
  text-transform: uppercase;
  letter-spacing: .5px;
}
.accent-button:hover { background: var(--red2); transform: translateY(-2px); }

.secondary-button {
  background: var(--charcoal);
  border: 1px solid var(--border);
  color: #fff;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  transition: all .15s;
}
.secondary-button:hover { background: var(--steel); border-color: var(--border-hover); }

.text-link-btn {
  color: var(--red2);
  font-weight: 600;
  background: none;
  border: none;
}
.text-link-btn:hover { text-decoration: underline; }

/* ---- Typography Elements ---- */
.eyebrow {
  font-family: 'Barlow Condensed';
  text-transform: uppercase;
  letter-spacing: 2.1px;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 15px;
}
.red { color: var(--red2); }

.text-link {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .7px;
  border-bottom: 1px solid #aaa;
  padding-bottom: 8px;
}
.text-link span { color: var(--red); font-size: 18px; margin-left: 10px; }

/* ---- Toast Notification ---- */
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--paper);
  color: #151619;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(90px);
  opacity: 0;
  transition: .3s;
  z-index: 100;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* Existing toast-container (for backward compat with utils.js) */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-message {
  background: var(--charcoal);
  border: 1px solid var(--red);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}
.toast-message.show { opacity: 1; transform: translateY(0); }
.toast-success { border-color: var(--green); }
.toast-error { border-color: #ef4444; }

/* ---- Star Rating ---- */
.rating-stars { color: var(--gold); font-size: 14px; }
.rating-num { color: #ffffff; margin-left: 4px; }
.star-icon.full { color: var(--gold); }
.star-icon.half { color: var(--gold); opacity: .6; }
.star-icon.empty { color: #555; }
