/* SimCzech Aircraft Database Browser — v34 */

.sc-aircraft-db {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

.sc-aircraft-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 2rem;
}
.sc-aircraft-header h1 {
  color: #d4a843;
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}
.sc-aircraft-header p {
  color: #94a3b8;
  margin: 0.3rem 0;
}
.sc-aircraft-source a {
  color: #38bdf8;
  text-decoration: underline;
}

/* Filters */
.sc-aircraft-filters {
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
}
.sc-aircraft-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}
.sc-aircraft-filter {
  flex: 1;
  min-width: 140px;
}
.sc-aircraft-filter label {
  display: block;
  color: #94a3b8;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}
.sc-aircraft-unit-toggle {
  color: #94a3b8;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.sc-aircraft-count {
  color: #d4a843;
  font-weight: 700;
  margin-left: auto;
  font-size: 0.9rem;
}

/* Table */
.sc-aircraft-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
}
.sc-aircraft-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.sc-aircraft-table thead th {
  background: rgba(15, 23, 42, 0.8);
  color: #d4a843;
  padding: 0.6rem 0.5rem;
  text-align: left;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  border-bottom: 2px solid rgba(212, 168, 67, 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
}
.sc-aircraft-table thead th:hover {
  color: #f59e0b;
}
.sc-aircraft-table thead th.sc-sort-asc::after {
  content: ' ▲';
  font-size: 0.7rem;
}
.sc-aircraft-table thead th.sc-sort-desc::after {
  content: ' ▼';
  font-size: 0.7rem;
}
.sc-aircraft-table tbody tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  cursor: pointer;
  transition: background 0.15s;
}
.sc-aircraft-table tbody tr:hover {
  background: rgba(212, 168, 67, 0.08);
}
.sc-aircraft-table td {
  padding: 0.45rem 0.5rem;
  color: #e2e8f0;
}
.sc-td-icao {
  font-weight: 700;
  color: #38bdf8 !important;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.sc-col-num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

/* Detail panel */
.sc-aircraft-detail {
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
  position: relative;
}
.sc-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.sc-detail-section h3 {
  color: #d4a843;
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  border-bottom: 1px solid rgba(212, 168, 67, 0.2);
  padding-bottom: 0.3rem;
}
.sc-detail-table {
  width: 100%;
  border-collapse: collapse;
}
.sc-detail-table td {
  padding: 0.25rem 0.4rem;
  color: #e2e8f0;
  font-size: 0.85rem;
}
.sc-detail-label {
  color: #94a3b8;
  white-space: nowrap;
  width: 40%;
}
.sc-detail-value {
  text-align: right;
}
.sc-detail-remarks {
  color: #64748b;
  font-size: 0.8rem;
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* Glass effect (consistent with site theme) */
.sc-glass {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 1rem;
}

/* Mobile */
@media (max-width: 768px) {
  .sc-aircraft-filter-row {
    flex-direction: column;
  }
  .sc-aircraft-filter {
    min-width: 100%;
  }
  .sc-detail-grid {
    grid-template-columns: 1fr;
  }
  .sc-aircraft-table {
    font-size: 0.75rem;
  }
  .sc-aircraft-table td,
  .sc-aircraft-table th {
    padding: 0.3rem;
  }
}
