/* migration.html styles */

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #252a53;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer {
  margin-top: auto;
}

.main-content {
  padding: 100px 20px 40px 20px;
  flex-grow: 1;
}

#content-tab2:not(.hidden) {
  display: flex;
  width: 100%;
  height: auto;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.region-tabs {
  display: flex;
  position: sticky;
  top: 80px;
  z-index: 10;
  background: white;
  margin: 20px 0;
}

.region-tabs button {
  flex: 1;
  cursor: pointer;
  color: #252a53;
  background-color: white;
  font-weight: 700;
  font-size: 14px;
  padding: 0.5rem 1rem;
  border: 3px solid #252a53;
  transition: background-color 0.2s ease-in-out;
}

.region-tabs button:not(:last-child) {
  margin-right: 2px;
}

.region-tabs button:hover,
.region-tabs button.active {
  background-color: #252a53;
  color: white;
}

.hidden {
  display: none !important;
}

/* Perspectives specific styles */
.perspectives-container {
  display: flex;
  width: 100%;
  gap: 0;
}

.perspectives-main {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.perspectives-sidebar {
  width: 340px;
  background: white;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  padding: 20px;
  flex-shrink: 0;
  order: -1;
}

.instructions-panel {
  background: white;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 0;
  flex-shrink: 0;
}

.instruction-text {
  font-size: 12px;
  line-height: 1.6;
  color: #555;
}

.instruction-text p {
  margin: 0 0 12px 0;
}

.instruction-text p:last-child {
  margin-bottom: 0;
}

.instruction-text strong {
  color: #252a53;
  font-weight: 600;
}

.perspectives-filters {
  margin-bottom: 20px;
}

.filter-section {
  margin-bottom: 15px;
}

.filter-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #252a53;
}

.main-topic-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.main-topic-button {
  background: #eee;
  border: 1px solid #252a53;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 12px;
  text-align: center;
  color: #252a53;
  transition: all 0.3s ease;
  border-radius: 4px;
  font-weight: 400;
}

.main-topic-button:hover {
  transform: translateY(-2px);
  background-color: #f5f5f5;
}

.main-topic-button.active {
  background: #252a53;
  color: white;
  font-weight: 600;
}

.topic-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
  min-height: 40px;
  transition: all 0.3s ease;
}

.topic-groups.hidden {
  opacity: 0.3;
  pointer-events: none;
}

.topic-group-button {
  background: #f8f9fa;
  border: 1px solid #ccc;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 11px;
  text-align: center;
  color: #666;
  transition: all 0.3s ease;
  border-radius: 4px;
  font-weight: 400;
  position: relative;
}

.topic-group-button:hover {
  background-color: #e9ecef;
  border-color: #999;
}

.topic-group-button.active {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
  font-weight: 500;
}

.topic-group-button.related {
  background: #e8f4f8;
  border-color: #252a53;
  color: #252a53;
}

.topic-group-button.related:hover {
  background-color: #d1ecf1;
}

.topic-group-button.related.active {
  background: #252a53;
  color: white;
  border-color: #252a53;
}

.topic-group-button.dimmed {
  opacity: 0.4;
  cursor: not-allowed;
}

.topic-connection-info {
  font-size: 11px;
  color: #666;
  font-style: italic;
  margin-bottom: 8px;
  min-height: 0;
  display: none;
}

.dropdown-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.dropdown-filter {
  display: flex;
  flex-direction: column;
}

.dropdown-filter label {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #252a53;
}

.dropdown-filter select {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
  color: #333;
  background-color: white;
}

.dropdown-filter select:focus {
  outline: none;
  border-color: #252a53;
}

.perspectives-count {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  font-weight: 500;
}

.perspectives-quotes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.quote-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quote-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: #252a53;
}

.quote-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.quote-card-tag {
  background: #252a53;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
}

.quote-card-content {
  font-size: 13px;
  line-height: 1.4;
  color: #333;
  font-style: italic;
}

.quote-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.quote-modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  width: 80%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.quote-modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.quote-modal-close:hover {
  color: #252a53;
  background-color: #f5f5f5;
}

.quote-modal-title {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 700;
  color: #252a53;
  margin-bottom: 15px;
  padding-right: 40px;
}

.quote-modal-quote {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
  font-style: italic;
  padding: 15px;
  background: #f8f9fa;
  border-left: 4px solid #252a53;
}

.quote-modal-additional {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}

.quote-modal-meta {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.quote-modal-meta-item {
  margin-bottom: 8px;
  font-size: 13px;
}

.quote-modal-meta-label {
  font-weight: 600;
  color: #252a53;
  display: inline-block;
  min-width: 120px;
}

.no-quotes-message {
  font-size: 12px;
}

.highlight-text {
  background: linear-gradient(120deg, rgba(172, 87, 55, 0.1) 0%, transparent 100%);
  padding: 0.125rem 0.25rem;
  border-radius: 0.1875rem;
  font-weight: 500;
}
