/* Scoped CSS for Star Trek Universe Database */
.stud-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  line-height: 1.5;
}

.stud-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.stud-hero-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b45309;
  background-color: #fef3c7;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.stud-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}

.stud-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
}

/* Tabs */
.stud-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.75rem;
  overflow-x: auto;
}

.stud-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.stud-tab:hover {
  color: #0f172a;
}

.stud-tab-active {
  color: #d97706;
  border-bottom-color: #d97706;
}

/* Views */
.stud-view {
  display: none;
}

.stud-view-active {
  display: block;
}

/* Card */
.stud-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stud-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stud-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.375rem;
}

.stud-input, .stud-select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  background-color: #ffffff;
  color: #0f172a;
}

.stud-input:focus, .stud-select:focus {
  outline: none;
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* Category chips */
.stud-category-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stud-chip {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.stud-chip:hover {
  background-color: #fef3c7;
  color: #92400e;
}

.stud-chip-active {
  background-color: #d97706;
  color: #ffffff;
  border-color: #d97706;
}

.stud-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.stud-stats-text {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* Archives Grid */
.stud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.stud-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stud-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stud-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.stud-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.25rem;
  text-transform: uppercase;
}

.stud-badge-char {
  background-color: #fee2e2;
  color: #b91c1c;
}

.stud-badge-ship {
  background-color: #e0f2fe;
  color: #0369a1;
}

.stud-badge-spec {
  background-color: #fef3c7;
  color: #b45309;
}

.stud-badge-tech {
  background-color: #f3e8ff;
  color: #7e22ce;
}

.stud-meta-tag {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 600;
}

.stud-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

.stud-card-role {
  font-size: 0.8125rem;
  color: #d97706;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.stud-card-desc {
  font-size: 0.875rem;
  color: #475569;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.stud-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: auto;
}

/* Calculator layout */
.stud-calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .stud-calc-layout {
    grid-template-columns: 1fr;
  }
}

.stud-form-group {
  margin-bottom: 1.25rem;
}

.stud-result-box {
  background-color: #0f172a;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  color: #ffffff;
  border: 2px solid #d97706;
}

.stud-res-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
}

.stud-res-big {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: monospace;
  color: #fbbf24;
  margin-bottom: 0.5rem;
}

.stud-res-note {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
}

.stud-section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.stud-section-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 1.25rem;
}

.stud-muted-notice {
  color: #94a3b8;
  font-style: italic;
}

/* Ad slots */
.stud-ad-slot {
  min-height: 280px;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  color: #94a3b8;
  font-size: 0.875rem;
}

.stud-mt-4 { margin-top: 1.5rem; }
.stud-mb-4 { margin-bottom: 1.5rem; }

.stud-search-box {
  width: 100%;
}

