/* Scoped CSS for Game of Thrones Universe Database */
.gtud-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;
}

.gtud-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.gtud-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: #831843;
  background-color: #fce7f3;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.gtud-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}

.gtud-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
}

/* Tabs */
.gtud-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.75rem;
  overflow-x: auto;
}

.gtud-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;
}

.gtud-tab:hover {
  color: #0f172a;
}

.gtud-tab-active {
  color: #be185d;
  border-bottom-color: #be185d;
}

/* Views */
.gtud-view {
  display: none;
}

.gtud-view-active {
  display: block;
}

/* Cards */
.gtud-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);
}

.gtud-search-row {
  margin-bottom: 1rem;
}

.gtud-search-group {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .gtud-search-group {
    flex-direction: column;
  }
}

.gtud-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.375rem;
}

.gtud-input, .gtud-select {
  padding: 0.625rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  background-color: #ffffff;
  color: #0f172a;
}

.gtud-input {
  flex: 1;
}

.gtud-input:focus, .gtud-select:focus {
  outline: none;
  border-color: #be185d;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.15);
}

.gtud-select-w-auto {
  width: auto;
  min-width: 200px;
}

.gtud-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.gtud-stats-text {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* Houses Grid */
.gtud-houses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.gtud-house-card {
  position: relative;
  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;
}

.gtud-house-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.gtud-house-sigil {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.gtud-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.gtud-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.25rem;
  text-transform: uppercase;
}

.gtud-badge-north {
  background-color: #e2e8f0;
  color: #334155;
}

.gtud-badge-valyria {
  background-color: #fee2e2;
  color: #b91c1c;
}

.gtud-badge-west {
  background-color: #fef3c7;
  color: #b45309;
}

.gtud-badge-reach {
  background-color: #dcfce7;
  color: #15803d;
}

.gtud-badge-iron {
  background-color: #f1f5f9;
  color: #475569;
}

.gtud-badge-dorne {
  background-color: #ffedd5;
  color: #c2410c;
}

.gtud-badge-vale {
  background-color: #e0f2fe;
  color: #0369a1;
}

.gtud-sigil-text {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 600;
}

.gtud-house-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

.gtud-house-words {
  font-size: 0.9375rem;
  font-style: italic;
  font-weight: 700;
  color: #be185d;
  margin: 0 0 0.75rem;
}

.gtud-house-desc {
  font-size: 0.875rem;
  color: #475569;
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

.gtud-house-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: auto;
}

/* Valyrian blades */
.gtud-blades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gtud-blade-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.gtud-blade-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #be185d;
  margin-bottom: 0.25rem;
}

.gtud-blade-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.gtud-blade-owner {
  font-size: 0.8125rem;
  color: #334155;
  margin: 0 0 0.5rem;
}

.gtud-blade-desc {
  font-size: 0.875rem;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}

/* Quiz */
.gtud-quiz-body {
  max-width: 680px;
  margin: 0 auto;
}

.gtud-question-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.gtud-q-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.gtud-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.gtud-option {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #334155;
  cursor: pointer;
}

.gtud-option input {
  margin-top: 0.2rem;
  accent-color: #be185d;
}

.gtud-quiz-result {
  background-color: #0f172a;
  color: #ffffff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
  border: 2px solid #be185d;
}

.gtud-result-badge {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #f43f5e;
  margin-bottom: 0.5rem;
}

.gtud-res-motto {
  font-size: 1.125rem;
  font-style: italic;
  color: #cbd5e1;
  margin: 0 0 0.75rem;
}

.gtud-res-desc {
  font-size: 0.9375rem;
  color: #94a3b8;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Buttons */
.gtud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #be185d;
  border: 1px solid #be185d;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.gtud-btn:hover {
  background-color: #9d174d;
}

.gtud-btn-block {
  width: 100%;
}

.gtud-section-heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.gtud-section-desc {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0 0 1.25rem;
}

.gtud-muted-notice {
  color: #94a3b8;
  font-style: italic;
}

/* Ad slots */
.gtud-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;
}

.gtud-mt-4 { margin-top: 1.5rem; }
.gtud-mb-4 { margin-bottom: 1.5rem; }
