/* ================================================
   RAVEPASS BRAND - matches the mobile app (RavePassApp/lib/theme.dart)
   Loaded only by Pages/Shared/_Layout.cshtml, after site.css.
   ================================================ */

:root {
  --rp-bg: #1F212F;
  --rp-bg-2: #1A1C28;
  --rp-card: #273933;
  --rp-card-2: #2F453E;
  --rp-text: #F4F1EA;
  --rp-muted: #B0B4B2;
  --rp-muted-2: #8D938F;
  --rp-lime: #9FC259;
  --rp-lime-2: #B3D374;
  --rp-error: #E05656;
  --rp-line: rgba(244, 241, 234, 0.12);
  --rp-line-strong: rgba(244, 241, 234, 0.22);

  /* Remap site.css tokens so existing components pick up the brand */
  --bg-primary: var(--rp-bg);
  --bg-secondary: var(--rp-bg-2);
  --bg-tertiary: var(--rp-card);
  --bg-card: var(--rp-card);
  --bg-card-hover: var(--rp-card-2);

  --accent-primary: var(--rp-lime);
  --accent-secondary: var(--rp-lime);
  --accent-muted: #7A9A3F;
  --accent-glow: rgba(159, 194, 89, 0.15);
  --accent-purple: var(--rp-lime);

  --text-primary: var(--rp-text);
  --text-secondary: var(--rp-muted);
  --text-muted: var(--rp-muted-2);
  --text-inverse: var(--rp-bg);

  --border-subtle: var(--rp-line);
  --border-medium: rgba(244, 241, 234, 0.16);
  --border-strong: var(--rp-line-strong);

  --gradient-primary: linear-gradient(135deg, #9FC259 0%, #86AB45 100%);
  --gradient-dark: linear-gradient(180deg, var(--rp-bg) 0%, var(--rp-bg-2) 100%);
  --shadow-glow: 0 0 40px rgba(159, 194, 89, 0.12);

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

body {
  background-color: var(--rp-bg);
  color: var(--rp-text);
}

::selection {
  background: var(--rp-lime);
  color: var(--rp-bg);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

a { color: var(--rp-lime); }
a:hover { color: var(--rp-lime-2); }

/* ---------- Buttons (app: off-white fill, dark label, 8px corners) ---------- */

.rp-btn,
.btn-primary,
.btn-outline-primary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  min-height: 48px;
}

.rp-btn-sm {
  min-height: 38px;
  font-size: 0.95rem;
}

.rp-btn-primary,
.btn-primary {
  background: var(--rp-text);
  color: var(--rp-bg);
  border: 1.5px solid var(--rp-text);
  box-shadow: none;
}

.rp-btn-primary:hover,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: #FFFFFF !important;
  border-color: #FFFFFF !important;
  color: var(--rp-bg) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.rp-btn-secondary,
.rp-btn-outline,
.btn-outline-primary {
  background: transparent;
  color: var(--rp-text);
  border: 1.5px solid var(--rp-text);
  box-shadow: none;
}

.rp-btn-secondary:hover,
.rp-btn-outline:hover,
.btn-outline-primary:hover {
  background: rgba(244, 241, 234, 0.08);
  border-color: var(--rp-text);
  color: var(--rp-text);
  box-shadow: none;
}

.rp-btn-ghost {
  background: rgba(244, 241, 234, 0.06);
  color: var(--rp-text);
}

/* ---------- Cards & forms ---------- */

.rp-card,
.rp-feature,
.rp-event-card,
.rp-content-card {
  background: var(--rp-card);
  border-color: transparent;
  border-radius: 12px;
}

.rp-card:hover,
.rp-event-card:hover {
  border-color: var(--rp-line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.rp-event-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.rp-event-date-badge {
  background: rgba(31, 33, 47, 0.9);
  border-color: var(--rp-line);
}

.rp-event-date-day {
  font-family: var(--font-display);
  color: var(--rp-lime);
}

.rp-event-category,
.rp-badge {
  background: var(--rp-lime);
  color: var(--rp-bg);
  border: none;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.form-control,
.form-select {
  background-color: var(--rp-card);
  border: 1.5px solid transparent;
  border-radius: 8px;
  color: var(--rp-text);
}

.form-control::placeholder {
  color: var(--rp-muted-2);
}

.form-control:focus,
.form-select:focus {
  background-color: var(--rp-card);
  border-color: var(--rp-text);
  box-shadow: none;
  color: var(--rp-text);
}

.form-label {
  color: var(--rp-muted);
}

.form-check-input {
  background-color: var(--rp-card);
  border-color: var(--rp-line-strong);
}

.form-check-input:checked {
  background-color: var(--rp-lime);
  border-color: var(--rp-lime);
}

/* ---------- Navbar ---------- */

.navbar {
  background: rgba(31, 33, 47, 0.85) !important;
  border-bottom: 1px solid var(--rp-line) !important;
  box-shadow: none;
}

.navbar-brand img {
  height: 30px;
}

.nav-link {
  color: var(--rp-muted) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.navbar .rp-btn {
  white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-nav {
    gap: 20px !important;
  }

  .nav-link {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }
}

.nav-link:hover,
.nav-link:focus {
  color: var(--rp-text) !important;
}

.dropdown-menu {
  background: var(--rp-card);
  border: 1px solid var(--rp-line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.dropdown-item {
  color: var(--rp-muted);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--rp-card-2);
  color: var(--rp-text);
}

.badge.bg-danger {
  background: var(--rp-lime) !important;
  color: var(--rp-bg);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--rp-bg);
    border-top: 1px solid var(--rp-line);
    border-radius: 0 0 12px 12px;
    padding: 12px 20px 20px;
  }

  .navbar-nav {
    gap: 4px !important;
    align-items: flex-start !important;
  }

  .navbar-nav .nav-link {
    color: var(--rp-text) !important;
    font-size: 1.35rem;
    padding: 10px 0;
  }
}

/* ---------- Login flyout ---------- */

.login-flyout-panel {
  background: var(--rp-bg);
  border-left-color: var(--rp-line);
}

.login-flyout-header h3 {
  font-size: 1.9rem;
}

.login-flyout-close {
  background: var(--rp-card);
  border-color: transparent;
}

.door-scanner-btn {
  background: var(--rp-card);
  border: 1px solid var(--rp-line);
  border-radius: 12px;
}

.door-scanner-btn:hover {
  background: var(--rp-card-2);
  border-color: var(--rp-lime);
  box-shadow: none;
}

.door-scanner-icon {
  background: var(--rp-lime);
  color: var(--rp-bg);
  border-radius: 8px;
}

.door-scanner-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */

.rp-footer,
.footer {
  background: var(--rp-card);
}

.rp-footer-brand img {
  height: 34px;
  width: auto;
}

.rp-footer-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--rp-lime);
}

.rp-footer-links a {
  color: var(--rp-muted);
}

.rp-footer-links a:hover {
  color: var(--rp-text);
}

.rp-footer-socials a {
  background: rgba(244, 241, 234, 0.06);
  border-color: transparent;
  border-radius: 50%;
  color: var(--rp-text);
}

.rp-footer-socials a:hover {
  background: var(--rp-lime);
  border-color: var(--rp-lime);
  color: var(--rp-bg);
}

/* ---------- Plain page header (hero with the image removed) ---------- */

section.rp-plain-hero {
  height: auto;
  min-height: 0;
  background: var(--rp-bg);
  padding: 72px 0 24px;
}

/* Beats the layout rule that pulls first-child heroes up behind the navbar */
main > section.rp-plain-hero.rp-plain-hero:first-child {
  margin-top: 0;
  padding-top: 72px;
}

section.rp-plain-hero [class$="-hero-content"] {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

section.rp-plain-hero [class$="-hero-title-box"] {
  background: transparent;
  display: block;
  padding: 0;
}

section.rp-plain-hero [class$="-hero-title-box"] h1 {
  color: var(--rp-text);
  font-size: clamp(3rem, 7vw, 5rem);
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

section.rp-plain-hero [class$="-hero-title-box"] p {
  color: var(--rp-muted);
  font-size: 1.15rem;
}

@media (max-width: 768px) {
  section.rp-plain-hero {
    height: auto;
    min-height: 0;
    padding: 40px 0 12px;
  }

  main > section.rp-plain-hero.rp-plain-hero:first-child {
    padding-top: 40px;
  }

  section.rp-plain-hero [class$="-hero-content"] {
    padding: 0 24px;
  }
}

/* ---------- Brand logo tiles (dark artwork stays readable on green cards) ---------- */

main .rp-brand-card .rp-brand-logo:has(> img) {
  background: var(--rp-text);
  border-radius: 12px;
  padding: 14px;
  box-sizing: border-box;
}

main .rp-brand-card .rp-brand-logo img {
  border-radius: 6px;
}

main .rp-brand-about-image > img {
  background: var(--rp-text);
  padding: 24px;
  object-fit: contain;
  border-radius: 12px;
  box-sizing: border-box;
}

/* ---------- Discover block (site.css defines it for a light band) ---------- */

.rp-discover-title {
  color: var(--rp-text);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0.02em;
}

.rp-discover-feature {
  border-left-color: rgba(244, 241, 234, 0.18);
}

.rp-discover-feature:hover {
  border-left-color: var(--rp-lime);
}

.rp-discover-feature::before {
  background: rgba(244, 241, 234, 0.3);
  border-color: var(--rp-card);
}

.rp-discover-feature:hover::before {
  background: var(--rp-lime);
}

.rp-discover-feature-icon {
  background: var(--rp-text);
  color: var(--rp-bg);
  border-radius: 8px;
}

.rp-discover-feature-text h3 {
  color: var(--rp-text);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.rp-discover-feature-text p {
  color: var(--rp-muted);
}

.rp-discover-img {
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* ---------- Alerts ---------- */

.alert-danger {
  background: rgba(224, 86, 86, 0.15);
  color: #F2A0A0;
}

.alert-success,
.alert-info {
  background: rgba(159, 194, 89, 0.14);
  color: var(--rp-lime-2);
}

/* ---------- Scrollbar ---------- */

::-webkit-scrollbar-track { background: var(--rp-bg); }
::-webkit-scrollbar-thumb { background: var(--rp-card); }
::-webkit-scrollbar-thumb:hover { background: var(--rp-card-2); }

/* ---------- Cookie banner ---------- */

.rp-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--rp-card);
  border-top: 1px solid var(--rp-line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  padding: 1rem 1.5rem;
}

.rp-cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rp-cookie p {
  flex: 1;
  min-width: 280px;
  margin: 0;
  color: var(--rp-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.rp-cookie p i {
  color: var(--rp-lime);
  margin-right: 8px;
}

.rp-cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
