/* AIRSPACE STANDOFF: Cockpit Squadron Flight Data Roster with Obsidian Depth */

.squadron-flight-data {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  background: var(--liquid-glass-bg);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.units-list {
  flex: 1 1 58%;
  min-height: 140px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}

.combat-score-log-box {
  flex: 0 1 42%;
  min-height: 90px;
  max-height: 220px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--glass-border);
  background: var(--glass-3d-well-bg);
  padding: 6px 8px;
  box-sizing: border-box;
  box-shadow: var(--glass-3d-well-shadow);
  overflow: hidden;
}

.score-log-container {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 2px;
}

.score-log-entry {
  font-size: 0.58rem;
  font-family: var(--font-dotdigital);
  color: var(--color-moon-mist);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 2px;
  line-height: 1.35;
}

.flight-card {
  background: var(--glass-3d-card-bg);
  border: 1px solid var(--glass-3d-card-border);
  border-top: 1px solid var(--liquid-glass-border-top);
  border-left: 3px solid var(--theme-primary);
  border-radius: var(--radius-card);
  padding: 7px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.12s ease, border-color 0.12s ease;
  flex-shrink: 0;
  box-shadow: var(--glass-3d-card-shadow);
}

.flight-card:hover {
  background: var(--liquid-glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  transform: translateY(-1px);
}

.flight-card.selected {
  border-color: var(--theme-accent);
  border-top-color: #ffffff;
  border-left: 3px solid var(--theme-accent);
  background: rgba(2, 132, 199, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 14px var(--theme-primary-dim);
}

.flight-card.team-red.selected {
  border-color: var(--color-red);
  border-top-color: #ffffff;
  border-left: 3px solid var(--color-red);
  background: rgba(244, 63, 94, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 14px rgba(244, 63, 94, 0.40);
}

.flight-card.destroyed {
  opacity: 0.25;
  border-color: var(--color-red);
  filter: grayscale(0.9);
  box-shadow: none;
}

.tcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.tcard-callsign {
  color: var(--theme-accent) !important;
  font-family: var(--font-untitled-sans);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 4px;
  text-shadow: 0 0 6px var(--theme-accent-glow);
}

.tcard-model {
  color: var(--color-moon-mist);
  font-size: 0.56rem;
  font-weight: 500;
}

.tcard-hp {
  font-size: 0.62rem;
  font-family: var(--font-dotdigital);
  color: var(--stat-tier-2);
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 245, 160, 0.4);
}

.tcard-hp-bar {
  width: 100%;
  height: 4px;
  background: var(--glass-3d-well-bg);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.tcard-hp-fill {
  height: 100%;
  transition: width 0.15s ease;
  box-shadow: 0 0 6px currentColor;
}

.tcard-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 6px;
  width: 100%;
  font-size: 0.58rem;
  font-family: var(--font-dotdigital);
  background: var(--glass-3d-well-bg);
  border: 1px solid var(--glass-3d-well-border);
  border-radius: var(--radius-badge);
  padding: 3px 6px;
  box-shadow: var(--glass-3d-well-shadow);
}

.tcard-metric-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-moon-mist);
}

.tcard-metric-cell span { font-size: 0.52rem; font-weight: 700; }
.tcard-metric-cell b { font-size: 0.58rem; font-weight: 700; }

@media (max-width: 1024px) {
  .units-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    align-content: start;
    flex: 1 1 auto;
  }
  .flight-card { padding: 5px 6px; gap: 3px; }
  .tcard-callsign { font-size: 0.62rem; }
  .tcard-model { font-size: 0.52rem; }
  .tcard-hp { font-size: 0.56rem; }
  .tcard-metrics { font-size: 0.54rem; padding: 2px 4px; gap: 2px 3px; }
  .tcard-metric-cell b { font-size: 0.54rem; }
}