/* Fanalytics Dashboard Layout System */

/* Page wrapper */
.fa-app-page { min-height: 100vh; padding: 0 0 64px; }

/* 3-column dashboard grid */
.fa-dashboard-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media(min-width:1024px) {
  .fa-dashboard-grid {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(240px, 300px);
    align-items: start;
  }
}
@media(min-width:768px) and (max-width:1023px) {
  .fa-dashboard-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }
}

/* Rails */
.fa-left-rail { display: flex; flex-direction: column; gap: 16px; }
.fa-right-rail { display: flex; flex-direction: column; gap: 16px; }
@media(min-width:1024px) {
  .fa-left-rail { position: sticky; top: 80px; }
  .fa-right-rail { position: sticky; top: 80px; }
}

/* Main content */
.fa-main-content { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* Section cards */
.fa-section-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px;
}
.fa-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fa-card-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.fa-card-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--teal, #00C2CB);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}
.fa-card-action {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal, #00C2CB);
  text-decoration: none;
}

/* Empty states */
.fa-empty-state {
  padding: 20px 16px;
  text-align: center;
}
.fa-empty-state p {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 8px;
}
.fa-empty-state .fa-empty-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal, #00C2CB);
  text-decoration: none;
}

/* Status badges */
.fa-status-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  display: inline-block;
}
.fa-status-badge--live { background: rgba(239,68,68,0.15); color: #ef4444; }
.fa-status-badge--active { background: rgba(34,197,94,0.12); color: #22c55e; }
.fa-status-badge--tracking { background: rgba(34,197,94,0.12); color: #22c55e; }
.fa-status-badge--limited { background: rgba(139,92,246,0.10); color: #8b5cf6; }
.fa-status-badge--pending { background: rgba(251,146,60,0.10); color: #fb923c; }
.fa-status-badge--soon { background: rgba(255,193,7,0.10); color: #ffc107; }

/* Compact match list */
.fa-compact-list { list-style: none; margin: 0; padding: 0; }
.fa-compact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.fa-compact-list li:last-child { border-bottom: none; }
.fa-compact-list a {
  color: inherit;
  text-decoration: none;
}
.fa-compact-list a:hover { color: var(--teal, #00C2CB); }

/* Data stat row */
.fa-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 12px;
}
.fa-stat-label { color: rgba(255,255,255,0.5); }
.fa-stat-value { color: #fff; font-weight: 700; }

/* Quick nav links */
.fa-quick-nav { list-style: none; margin: 0; padding: 0; }
.fa-quick-nav li { margin-bottom: 4px; }
.fa-quick-nav a {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s;
}
.fa-quick-nav a:hover {
  background: rgba(255,255,255,0.04);
  color: var(--teal, #00C2CB);
}

/* Tabs (horizontal scroll on mobile) */
.fa-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.fa-tabs::-webkit-scrollbar { display: none; }
.fa-tab {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.fa-tab:hover { color: rgba(255,255,255,0.8); }
.fa-tab.is-active {
  color: var(--teal, #00C2CB);
  border-bottom-color: var(--teal, #00C2CB);
}

/* Mobile order adjustments */
@media(max-width:1023px) {
  .fa-left-rail { order: 2; }
  .fa-main-content { order: 1; }
  .fa-right-rail { order: 3; }
}
