/* ==========================================================================
   FleetLeaks Vessel Spotlight — Light Theme
   Extends vessel-single.css classes, adds spotlight-specific components.
   ========================================================================== */

/* ---------- Spotlight Label Bar ---------- */
.fls-spotlight-label {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem 1.25rem;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: .75rem;
  margin-bottom: 2rem;
}
.fls-spotlight-label-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .95rem;
  font-weight: 600;
  color: #4338ca;
}
.fls-spotlight-icon {
  font-size: 1.2rem;
}
.fls-spotlight-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding-top: .5rem;
  border-top: 1px solid #c7d2fe;
}
.fls-spotlight-stat {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .8rem;
  color: #4338ca;
  padding: .2rem .55rem;
  background: rgba(255,255,255,.6);
  border: 1px solid #c7d2fe;
  border-radius: .35rem;
  white-space: nowrap;
}
.fls-spotlight-stat strong {
  font-weight: 700;
  color: #312e81;
}
.fls-spotlight-stat--muted {
  background: transparent;
  border-color: transparent;
  color: #6366f1;
  font-style: italic;
  font-size: .75rem;
}

/* Activity profile summary inside label */
.fls-spotlight-summary {
  padding-top: .75rem;
  border-top: 1px solid #c7d2fe;
}
.fls-spotlight-summary p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.65;
  color: #374151;
}

/* ---------- Sidebar Calendar ---------- */
.fls-calendar {
  padding: .25rem 0;
}
.fls-cal-header {
  text-align: center;
  font-weight: 700;
  font-size: .85rem;
  color: #111827;
  padding-bottom: .5rem;
}
.fls-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.fls-cal-dow {
  font-size: .65rem;
  font-weight: 700;
  color: #9ca3af;
  padding: .25rem 0;
  text-transform: uppercase;
}
.fls-cal-day {
  font-size: .75rem;
  padding: .3rem .1rem;
  border-radius: .25rem;
  color: #6b7280;
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
}
.fls-cal-empty {
  visibility: hidden;
}
.fls-cal-has {
  background: #eef2ff;
  color: #4338ca;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #c7d2fe;
}
.fls-cal-has:hover {
  background: #c7d2fe;
  color: #312e81;
}
.fls-cal-current {
  background: #4338ca;
  color: #fff;
  font-weight: 700;
  border-radius: .25rem;
}

/* ---------- Badges ---------- */
.fls-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}
.fls-badge--red {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.fls-badge--green {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.fls-badge--amber {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* ---------- Activity Metrics Strip ---------- */
.fls-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 600px) {
  .fls-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
.fls-metric {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: .6rem;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.fls-metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}
.fls-metric-label {
  font-size: .75rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ---------- STS Partner Grid ---------- */
.fls-partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .75rem;
  margin-bottom: 2rem;
}
.fls-partner-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  overflow: hidden;
  transition: box-shadow .15s;
}
.fls-partner-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.fls-partner-photo {
  position: relative;
}
.fls-partner-photo img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.fls-partner-info {
  padding: 1rem;
}
.fls-partner-name {
  font-weight: 700;
  color: #111827;
  margin-bottom: .5rem;
  font-size: 1rem;
}
.fls-partner-former {
  font-size: .8rem;
  color: #6b7280;
  font-style: italic;
  margin-bottom: .5rem;
}
.fls-partner-stats {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: #374151;
}

/* ---------- Disclaimer / Data Note ---------- */
.fl-data-note {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.fl-data-note p {
  margin: 0 0 .75rem;
  font-size: .9rem;
  color: #6b7280;
  line-height: 1.6;
}
.fl-data-note p:last-child {
  margin-bottom: 0;
}

/* ---------- Archive List (sidebar) ---------- */
.fls-archive-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  max-height: 400px;
  overflow-y: auto;
}
.fls-archive-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .5rem .65rem;
  border-radius: .4rem;
  text-decoration: none;
  font-size: .85rem;
  color: #111827;
  border: 1px solid transparent;
  transition: all .15s;
}
.fls-archive-item:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}
.fls-archive-item--current {
  background: #eef2ff;
  border-color: #818cf8;
  font-weight: 700;
}
.fls-archive-date {
  font-family: monospace;
  font-size: .8rem;
  color: #6b7280;
  white-space: nowrap;
}
.fls-archive-name {
  flex: 1;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

/* ---------- Table wrap ---------- */
.fls-table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

/* ---------- Map Container ---------- */
#fls-track-map {
  background: #f3f4f6;
}
#fls-track-map .leaflet-control-attribution {
  font-size: 10px;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 900px) {
  .fls-spotlight-label {
    font-size: .85rem;
    padding: .75rem 1rem;
  }
}
