/* application.css */
/* All site styles live here */

/* 1. RESET & CORE - Kills the white border & sets defaults */
* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
}

/* 2. VARIABLES - The GTA Color Palette */
:root {
  --gta-yellow: #F0C028; /* Pricedown Yellow */
  --gta-orange: #F48024;
  --gta-red: #C02028;    /* Wasted Red */
  --discord-blurple: #5865F2;
  --dark-bg: #000000;
  --card-bg: #1a1a1a;
  --section-bg: #111;
}

/* 3. LAYOUT UTILITIES */
.rl-landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* 4. TOPBAR */
.rl-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  width: 100%;
  border-bottom: 1px solid #222;
}

.rl-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rl-logo {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  border: 2px solid var(--gta-yellow);
}

.rl-title {
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: #fff;
}

.rl-subtitle {
  font-size: 0.85rem;
  color: var(--gta-yellow);
  font-weight: 600;
  letter-spacing: 1px;
}

/* 5. HERO SECTION */
.rl-hero {
  padding: 5rem 0;
  background: radial-gradient(circle at top right, #2a1010, #000000 70%);
  border-bottom: 4px solid var(--gta-yellow);
}

/* ADMIN / CONTENT PANEL */
.rl-heroCard {
  max-width: 900px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
}

.highlight {
  color: var(--gta-yellow);
}

.rl-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #aaa;
  margin-bottom: 2rem;
  max-width: 600px;
}

.rl-lead strong {
  color: var(--gta-yellow);
}

/* 6. GIVEAWAY BANNER (New) */
.rl-giveaway {
  background: var(--gta-red);
  color: white;
  padding: 3rem 0;
  text-align: center;
  background-image: linear-gradient(45deg, #C02028 25%, #a01018 25%, #a01018 50%, #C02028 50%, #C02028 75%, #a01018 75%, #a01018 100%);
  background-size: 40px 40px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.rl-giveaway h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
  font-style: italic;
  font-weight: 900;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.rl-giveaway p {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
  opacity: 0.95;
  letter-spacing: 1px;
}

/* 7. SCHEDULE SECTION (New) */
.rl-schedule {
  padding: 5rem 0;
  background: var(--section-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.section-header p {
  color: #888;
  font-size: 1.1rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.schedule-card {
  background: var(--card-bg);
  border: 1px solid #333;
  padding: 2rem;
  border-radius: 4px;
  position: relative;
  transition: transform 0.2s;
}

.schedule-card:hover {
  transform: translateY(-5px);
  border-color: #444;
}

.schedule-card.legacy {
  border-top: 4px solid var(--gta-orange);
}

.schedule-card.enhanced {
  border-top: 4px solid var(--gta-yellow);
}

.schedule-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #333;
}

.event-row:last-child {
  border-bottom: none;
}

.day {
  font-weight: bold;
  color: #fff;
}

.activity {
  color: #aaa;
  text-align: right;
}

/* 8. NEWSLETTER SECTION (New) */
.rl-newsletter {
  padding: 5rem 0;
  background: #000;
  border-top: 1px solid #222;
  text-align: center;
}

.newsletter-box {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-box h2 {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-top: 2rem;
}

/* 9. INPUTS */
.rl-input {
  flex: 1;
  padding: 1rem;
  background: #1a1a1a;
  border: 1px solid #333;
  color: white;
  font-size: 1rem;
  border-radius: 2px;
}

.rl-input:focus {
  border-color: var(--gta-yellow);
  outline: none;
}

/* Make form inputs consistent when used inside admin cards */
.rl-input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.35);
  color: #fff;
  height: 44px;
}
textarea.rl-input { height: auto; }

/* 10. BUTTONS */
.rl-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.rl-ctaBig {
  background-color: var(--gta-yellow);
  color: #000;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.rl-ctaBig:hover {
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(240, 192, 40, 0.3);
}

.rl-ctaSecondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #444;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.rl-ctaSecondary:hover {
  border-color: var(--gta-yellow);
  color: var(--gta-yellow);
}

.rl-ctaSecondary.is-active {
  color: var(--gta-yellow);
  border-color: rgba(240, 192, 40, 0.8);
  box-shadow: 0 0 0 1px rgba(240, 192, 40, 0.25) inset;
}

/* 11. ADMIN NAV (SCOPED) */
/* IMPORTANT: These rules apply ONLY to the admin header to avoid breaking the public Crew Login button */
.rl-topbarAdmin {
  align-items: flex-start;
}

.rl-adminHeader {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* keep admin menu on one line; scroll instead of wrapping */
.rl-adminNav {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
}

.rl-adminNav::-webkit-scrollbar {
  height: 6px;
}
.rl-adminNav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
}

/* Ensure admin links don't revert to default blue */
.rl-topbarAdmin .rl-adminNav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.rl-topbarAdmin .rl-adminNav a:hover {
  color: var(--gta-yellow);
}

/* Logout link – slightly dangerous action */
.rl-logout:hover {
  border-color: var(--gta-red);
  color: var(--gta-red);
}

/* 12. CARDS / GRID */
.rl-h1 { font-size: 44px; letter-spacing: 1px; margin: 0 0 8px 0; }

.rl-rowHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.rl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .rl-grid { grid-template-columns: 1fr; }
}

.rl-providerCard {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 16px;
}

.rl-providerTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.rl-providerName { font-size: 18px; font-weight: 800; letter-spacing: 0.5px; }

.rl-providerBody { display: flex; flex-direction: column; gap: 10px; }

.rl-providerActions { display:flex; gap: 10px; margin-top: 6px; }

.rl-badgeGood, .rl-badgeOff {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.rl-badgeGood { background: rgba(0,255,120,0.15); border: 1px solid rgba(0,255,120,0.35); }
.rl-badgeOff  { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }

.rl-kv { display:grid; grid-template-columns: 110px 1fr; gap: 10px; }
.rl-k  { color: rgba(255,255,255,0.65); font-weight: 700; }
.rl-v  { color: rgba(255,255,255,0.95); overflow-wrap:anywhere; }

/* 13. FORMS */
.rl-formCompact {
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-top: 16px;
}

.rl-field label {
  display:block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  opacity: 0.9;
  text-transform: uppercase;
}

/* 14. FLASH MESSAGES */
.rl-notice, .rl-alert {
  margin: 12px 0 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.55);
}

.rl-notice { border-color: rgba(0,255,120,0.35); }
.rl-alert  { border-color: rgba(255,50,50,0.35); }

/* 15. FOOTER */
.rl-footer {
  padding: 3rem 0;
  border-top: 1px solid #222;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .schedule-grid { grid-template-columns: 1fr; }
  .input-group { flex-direction: column; }
  .rl-hero { padding: 3rem 0; }
  .rl-ctaBig, .rl-ctaSecondary { width: 100%; }
}

.rl-divider { border: none; border-top: 1px solid rgba(255,255,255,0.12); margin: 18px 0; }

.rl-footerRow { display:flex; justify-content: space-between; align-items:center; gap: 12px; }

.rl-muted { opacity: 0.75; }
/* Member dashboard: 2-column layout */
.rl-dashboardGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px; /* fixed sidebar width */
  gap: 22px;
  align-items: start;
}
/* Important: prevents long text from overflowing into sidebar */
.rl-dashboardGrid > * {
  min-width: 0;
}

/* Sidebar column */
.rl-sideColumn {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Make the main hero card not feel oversized next to a narrow sidebar */
.rl-dashboardGrid .rl-heroCard {
  max-width: none; /* override the 900px cap inside the grid */
}

/* Wrap huge welcome text nicely */
.rl-dashboardGrid h1 {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Optional: tighten the massive h1 just on dashboard so it doesn't dominate */
.rl-dashboardGrid h1 {
  font-size: 3rem;
}

@media (max-width: 900px) {
  .rl-dashboardGrid {
    grid-template-columns: 1fr;
  }
}
/* Right side column stays neat */
.rl-sideColumn {
  display: flex;
  flex-direction: column;
}

/* Simple list style inside cards */
.rl-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.rl-listItem {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.35);
}

.rl-listTitle {
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 14px;
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
  .rl-dashboardGrid {
    grid-template-columns: 1fr;
  }
}
.rl-providerTop {
  gap: 10px;
}

.rl-page {
  padding: 2rem 0;
}

.rl-sectionHeader {
  margin-bottom: 2rem;
}

.rl-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.rl-card.highlight {
  border-color: #ffd400;
  background: #151200;
}

.rl-cardTitle {
  margin-bottom: 1rem;
  color: #ffd400;
}

.rl-subHeader {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #aaa;
  text-transform: uppercase;
}

.rl-priceList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rl-priceList li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #222;
  align-items: center;
}

.rl-priceList li:last-child {
  border-bottom: none;
}

.rl-priceList.compact li {
  padding: 0.45rem 0;
}

.rl-buyBtn {
  background: #222;
  color: #fff;
  border: 1px solid #333;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}

.rl-buyBtn:hover {
  background: #333;
}

.rl-buyBtn.primary {
  background: #ffd400;
  color: #000;
  border-color: #ffd400;
}

.rl-buyBtn.primary:hover {
  background: #ffdf33;
}

.rl-adminTableWrap { overflow-x: auto; }

.rl-adminTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.rl-adminTable th, .rl-adminTable td {
  border-bottom: 1px solid #222;
  padding: 0.65rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.rl-adminTable thead th {
  color: #ffd400;
  font-weight: 700;
  border-bottom: 1px solid #333;
}

.rl-actionsCol { white-space: nowrap; }
.rl-adminTable tr.is-disabled { opacity: 0.55; }

.rl-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid #333;
  background: #1a1a1a;
}

.rl-pill.ok { border-color: #2a7; }
.rl-pill.off { border-color: #777; }

.rl-buyBtn.danger {
  border-color: #a33;
}
.rl-buyBtn.danger:hover {
  background: #3a1111;
}

.rl-formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rl-formGrid .span2 { grid-column: span 2; }

.rl-form input[type="text"],
.rl-form input[type="number"]{
  width: 100%;
  background: #0e0e0e;
  border: 1px solid #222;
  color: #fff;
  border-radius: 8px;
  padding: 0.6rem 0.65rem;
  margin-top: 0.35rem;
}

.rl-form label {
  color: #ddd;
  font-weight: 600;
}

@media (max-width: 800px) {
  .rl-formGrid { grid-template-columns: 1fr; }
  .rl-formGrid .span2 { grid-column: span 1; }
}
.rl-topbarInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rl-topbarActions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rl-topbarActions form { margin: 0; } /* keeps Logout button aligned */
.rl-dashboardGrid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.rl-sideColumn {
  min-width: 320px;
}

@media (max-width: 980px) {
  .rl-dashboardGrid {
    grid-template-columns: 1fr;
  }
  .rl-sideColumn {
    min-width: 0;
  }
}
