/*
Theme Name: LoadXperts Loadboard
Theme URI: https://loadxperts.com
Author: LoadXperts
Author URI: https://loadxperts.com
Description: A professional transportation load board theme for WordPress, inspired by DAT.com. Features load posting, searching, filtering, broker ratings, and carrier management.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: loadxperts
Tags: transportation, logistics, loadboard, trucking, freight
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --bg-card-hover: #1f2a40;
  --bg-input: #0f1623;
  --accent: #00e5a0;
  --accent-dim: #00c98c;
  --accent-glow: rgba(0, 229, 160, 0.15);
  --accent-glow-strong: rgba(0, 229, 160, 0.3);
  --warning: #f59e0b;
  --danger: #ef4444;
  --success: #22c55e;
  --info: #3b82f6;
  --text-primary: #e8ecf4;
  --text-secondary: #8892a4;
  --text-muted: #5a6478;
  --border: #1e2a3e;
  --border-accent: #2a3a52;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 30px rgba(0, 229, 160, 0.08);
  --transition: 0.2s ease;
  --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dim); }

img { max-width: 100%; height: auto; }

/* ============================================
   AMBIENT BACKGROUND
   ============================================ */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,160,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -300px;
  left: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,100,255,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* ============================================
   TOP NAVIGATION
   ============================================ */
.fp-topnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.fp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.fp-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-mono);
}
.fp-logo span { color: var(--accent); }

.fp-nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
}
.fp-nav-links li a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.fp-nav-links li a:hover,
.fp-nav-links li.current-menu-item a,
.fp-nav-links li.current_page_item a {
  color: var(--text-primary);
  background: var(--accent-glow);
}
.fp-nav-links li.current-menu-item a::after,
.fp-nav-links li.current_page_item a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.fp-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fp-nav-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}
.fp-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.fp-nav-btn .dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

.fp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0088ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--bg-primary);
  cursor: pointer;
}

.fp-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* ============================================
   STATS BAR
   ============================================ */
.fp-stats-bar {
  display: flex;
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.fp-stat-item {
  flex: 1;
  padding: 16px 24px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fp-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 500;
}
.fp-stat-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
}
.fp-stat-value.green { color: var(--accent); }
.fp-stat-value.yellow { color: var(--warning); }
.fp-stat-change {
  font-size: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}
.fp-stat-change.down { color: var(--danger); }

/* ============================================
   MAIN LAYOUT
   ============================================ */
.fp-main {
  display: flex;
  min-height: calc(100vh - 64px);
  position: relative;
  z-index: 1;
}

/* ============================================
   SIDEBAR / SEARCH PANEL
   ============================================ */
.fp-sidebar {
  width: 360px;
  min-width: 360px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  max-height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
}

.fp-sidebar-title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fp-sidebar-title svg { color: var(--accent); }

/* ============================================
   FORM FIELDS
   ============================================ */
.fp-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fp-field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fp-field-row {
  display: flex;
  gap: 8px;
}
.fp-input-wrap {
  position: relative;
  flex: 1;
}
.fp-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.fp-input,
.fp-select,
input[type="text"].fp-input,
input[type="number"].fp-input,
input[type="date"].fp-input,
select.fp-select,
textarea.fp-textarea {
  width: 100%;
  padding: 10px 12px 10px 36px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.fp-select {
  padding-left: 12px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238892a4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.fp-input::placeholder,
.fp-textarea::placeholder { color: var(--text-muted); }
.fp-input:focus,
.fp-select:focus,
.fp-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.fp-textarea {
  padding-left: 12px;
  min-height: 80px;
  resize: vertical;
}
.no-icon { padding-left: 12px !important; }

/* Radius slider */
.fp-radius-slider {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fp-radius-slider input[type="range"] {
  flex: 1;
  padding: 0;
  border: none;
  background: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}
.fp-radius-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-glow-strong);
}
.fp-radius-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  min-width: 48px;
  text-align: right;
}

/* Equipment tags */
.fp-equipment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fp-eq-tag {
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-primary);
}
.fp-eq-tag:hover { border-color: var(--accent); color: var(--text-primary); }
.fp-eq-tag.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

.fp-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.fp-btn {
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.fp-btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 4px 16px rgba(0, 229, 160, 0.2);
}
.fp-btn-primary:hover {
  background: var(--accent-dim);
  color: var(--bg-primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 229, 160, 0.3);
}
.fp-btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.fp-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.fp-btn-danger {
  background: rgba(239,68,68,0.1);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
}
.fp-btn-danger:hover {
  background: var(--danger);
  color: #fff;
}
.fp-btn-group { display: flex; gap: 8px; }
.fp-btn-block { width: 100%; }

/* ============================================
   CONTENT AREA
   ============================================ */
.fp-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.fp-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.fp-content-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}
.fp-load-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: 12px;
}

.fp-view-toggle {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.fp-view-toggle button {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}
.fp-view-toggle button.active {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ============================================
   LOAD TABLE
   ============================================ */
.fp-load-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}
.fp-load-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 8px 14px;
  text-align: left;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 2;
}
.fp-load-table thead th:first-child { padding-left: 18px; }
.fp-load-table tbody tr {
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
}
.fp-load-table tbody tr:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}
.fp-load-table td {
  padding: 14px;
  font-size: 14px;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  vertical-align: middle;
}
.fp-load-table td:first-child {
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding-left: 18px;
}
.fp-load-table td:last-child {
  border-right: 1px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.fp-load-table tbody tr:hover td {
  border-color: var(--border-accent);
}
.fp-load-table tbody tr:hover td:first-child {
  border-left: 2px solid var(--accent);
}

/* Table cell styles */
.fp-route-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fp-route-origin { font-weight: 600; color: var(--text-primary); }
.fp-route-dest { font-weight: 400; color: var(--text-secondary); font-size: 13px; }
.fp-route-arrow { font-size: 10px; color: var(--accent); margin: 1px 0; }

.fp-equip-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
}
.fp-equip-badge.van {
  background: rgba(0, 136, 255, 0.1);
  color: #4da6ff;
  border: 1px solid rgba(0, 136, 255, 0.2);
}
.fp-equip-badge.flatbed {
  background: rgba(245, 158, 11, 0.1);
  color: #f5b74a;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.fp-equip-badge.reefer {
  background: rgba(99, 102, 241, 0.1);
  color: #8b8df7;
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.fp-equip-badge.ltl {
  background: rgba(236, 72, 153, 0.1);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.2);
}
.fp-equip-badge.stepdeck {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.fp-rate-cell {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
}
.fp-rate-per-mile {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}
.fp-miles-cell { font-family: var(--font-mono); color: var(--text-secondary); }
.fp-weight-cell { color: var(--text-secondary); font-size: 13px; }

.fp-age-fresh { color: var(--accent); font-size: 13px; font-weight: 500; }
.fp-age-moderate { color: var(--warning); font-size: 13px; font-weight: 500; }
.fp-age-old { color: var(--text-muted); font-size: 13px; }

.fp-broker-cell { display: flex; flex-direction: column; gap: 2px; }
.fp-broker-name { font-weight: 500; font-size: 13px; }
.fp-broker-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); }
.fp-broker-stars { color: var(--warning); font-size: 11px; letter-spacing: 1px; }

.fp-action-btn {
  padding: 6px 14px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.fp-action-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ============================================
   DETAIL PANEL
   ============================================ */
.fp-detail-panel {
  display: none;
  width: 380px;
  min-width: 380px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  padding: 24px;
  overflow-y: auto;
  max-height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
}
.fp-detail-panel.show {
  display: block;
  animation: fpSlideIn 0.2s ease;
}
@keyframes fpSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.fp-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.fp-detail-route {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.fp-detail-route .arrow { color: var(--accent); margin: 0 6px; font-size: 14px; }
.fp-detail-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.fp-detail-section { margin-bottom: 20px; }
.fp-detail-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.fp-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fp-detail-item { display: flex; flex-direction: column; gap: 3px; }
.fp-detail-item-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fp-detail-item-value { font-size: 14px; font-weight: 500; }
.fp-detail-rate {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}
.fp-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

/* Map placeholder */
.fp-map-placeholder {
  height: 160px;
  background: var(--bg-input);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.fp-map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--border) 1px, transparent 1px),
    linear-gradient(var(--border) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
}

/* ============================================
   MODAL
   ============================================ */
.fp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.fp-modal-overlay.show { display: flex; }
.fp-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 560px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  animation: fpModalIn 0.25s ease;
}
@keyframes fpModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.fp-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.fp-modal-header h3 { font-size: 18px; font-weight: 600; }
.fp-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 18px;
  line-height: 1;
}
.fp-modal-close:hover { border-color: var(--danger); color: var(--danger); }
.fp-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fp-modal-grid .full { grid-column: 1 / -1; }
.fp-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: flex-end;
}

/* ============================================
   LIVE DOT
   ============================================ */
@keyframes fpPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.fp-live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: fpPulse 2s infinite;
  display: inline-block;
}

/* ============================================
   PAGINATION
   ============================================ */
.fp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
  padding: 16px 0;
}
.fp-pagination a,
.fp-pagination span {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
}
.fp-pagination a:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.fp-pagination .current {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  font-weight: 700;
}

/* ============================================
   FLASH MESSAGES / NOTICES
   ============================================ */
.fp-notice {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fp-notice-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}
.fp-notice-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}
.fp-notice-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--info);
}

/* ============================================
   SINGLE LOAD PAGE
   ============================================ */
.fp-single-load {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 24px;
}
.fp-single-load-header {
  margin-bottom: 32px;
}
.fp-single-load-route {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.fp-single-load-route .arrow { color: var(--accent); }
.fp-single-load-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 14px;
}
.fp-single-load-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.fp-single-load-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.fp-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 32px 24px;
  margin-top: 60px;
}
.fp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.fp-footer-brand .fp-logo { margin-bottom: 12px; }
.fp-footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.fp-footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.fp-footer-col ul { list-style: none; }
.fp-footer-col ul li { margin-bottom: 8px; }
.fp-footer-col ul li a { color: var(--text-muted); font-size: 14px; }
.fp-footer-col ul li a:hover { color: var(--accent); }
.fp-footer-bottom {
  text-align: center;
  padding-top: 24px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .fp-sidebar { width: 300px; min-width: 300px; }
  .fp-detail-panel { width: 320px; min-width: 320px; }
  .fp-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  .fp-main { flex-direction: column; }
  .fp-sidebar {
    width: 100%;
    min-width: auto;
    max-height: none;
    position: relative;
    top: auto;
  }
  .fp-detail-panel { display: none !important; }
  .fp-content { max-height: none; }
  .fp-single-load-body { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .fp-topnav { padding: 0 16px; }
  .fp-nav-links { display: none; }
  .fp-mobile-toggle { display: block; }
  .fp-stats-bar { flex-wrap: wrap; }
  .fp-stat-item { min-width: 50%; }
  .fp-content { padding: 16px; }
  .fp-sidebar { padding: 16px; }
  .fp-load-table { font-size: 13px; }
  .fp-load-table .hide-mobile { display: none; }
  .fp-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .fp-modal { padding: 20px; }
  .fp-modal-grid { grid-template-columns: 1fr; }
}

/* ============================================
   WORDPRESS SPECIFIC OVERRIDES
   ============================================ */
.wp-block-group,
.entry-content { color: var(--text-primary); }
.entry-content a { color: var(--accent); }
.entry-content h1,
.entry-content h2,
.entry-content h3 { color: var(--text-primary); margin-bottom: 16px; }
.entry-content p { color: var(--text-secondary); margin-bottom: 16px; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
}

/* WordPress admin bar adjustment */
body.admin-bar .fp-topnav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .fp-topnav { top: 46px; }
}

/* ============================================
   UPDATED NAV STYLES — V2
   ============================================ */
.fp-topnav.scrolled {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.fp-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.fp-btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
}

/* Mobile nav */
.fp-nav-links.open {
  display: flex !important;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  gap: 4px;
}

.fp-nav-links.open li a {
  display: block;
  padding: 12px 16px;
  border-radius: 6px;
}

.fp-nav-links.open li a:hover {
  background: rgba(255,255,255,0.03);
}
