/**
 * Shared sidebar styles for pages with date/station filters
 * Used by: shows.html, headlines.html
 */

/* Sidebar layout */
.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.filter-section {
  margin-bottom: 1.5rem;
}

.filter-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.filter-section select,
.filter-section input[type="date"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: white;
}

/* Override for date-nav component inside filter-section */
.filter-section .date-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.filter-section .date-nav input[type="date"] {
  width: auto;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
}

/* Station list */
.station-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.station-list li {
  border-bottom: 1px solid #e8e8e8;
}

.station-list li:last-child {
  border-bottom: none;
}

.station-item {
  display: block;
  padding: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-radius: 6px;
  cursor: pointer;
}

.station-item:hover {
  background: #f5f5f5;
}

.station-item.active {
  background: #e8f4ff;
  border-left: 3px solid var(--accent);
}

.station-name {
  font-weight: 600;
  display: block;
}

.item-count {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Date navigation component */
.date-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.date-nav button,
.date-nav .date-nav-btn {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.date-nav button:hover,
.date-nav .date-nav-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.date-nav button.today-btn,
.date-nav .date-nav-btn.today-btn {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.date-nav button.today-btn:hover,
.date-nav .date-nav-btn.today-btn:hover {
  background: #0052a3;
}

.date-nav input[type="date"],
.date-nav .date-nav-input {
  padding: 0.4rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* Date badge in titles */
.date-badge {
  font-size: 0.9rem;
  background: #f0f0f0;
  color: #555;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
}

/* Status badges */
.status-badge {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.status-badge.in-progress {
  background: #fff3e0;
  color: #e65100;
}

.status-badge.complete,
.status-badge.completed {
  background: #e6f7e6;
  color: #2d7a2d;
}

/* Live indicator */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #e65100;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #e65100;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Last updated text */
.last-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Common empty/loading states */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: #666;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

/* Responsive - sidebar becomes non-sticky on mobile */
@media (max-width: 768px) {
  .sidebar {
    position: static;
  }
}
