* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #ffffff;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-header {
  text-align: center;
  padding: 40px 20px 20px;
  background-color: #ffffff;
}

.logo {
  width: 140px;
  height: auto;
  margin-bottom: 15px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
}

.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  background-color: #f3f4f6;
}

.card {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  max-width: 650px;
  width: 100%;
}

.description {
  margin-bottom: 25px;
  color: #4b5563;
  font-size: 1.05rem;
  text-align: center;
}

/* Input Styles */
.input-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

select {
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  background-color: white;
  cursor: pointer;
  color: #4b5563;
}

input[type="text"] {
  flex: 1;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  color: #4b5563;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus, input[type="text"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

button {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #2563eb;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover:not(:disabled) {
  background-color: #1d4ed8;
}

button:disabled {
  background-color: #93c5fd;
  cursor: not-allowed;
}

/* Results Area Styles */
.divider {
  border: 0;
  height: 1px;
  background: #e5e7eb;
  margin: 30px 0;
}

.result-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

#resultImage {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-title-group h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: #111;
}

.wiki-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.wiki-link:hover {
  text-decoration: underline;
}

.summary-text {
  margin-bottom: 2rem;
  color: #4b5563;
  line-height: 1.6;
}

.facts-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #111;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 0.5rem;
}

#factsList {
  list-style: none;
}

#factsList li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  font-size: 0.95rem;
}

#factsList li strong {
  width: 35%;
  color: #374151;
}

#factsList li span {
  width: 65%;
  color: #4b5563;
}

/* Utilities */
.hidden {
  display: none !important;
}

.text-muted {
  text-align: center;
  color: #6b7280;
  margin-top: 20px;
}

.text-error {
  text-align: center;
  color: #dc2626;
  margin-top: 20px;
  padding: 10px;
  background-color: #fee2e2;
  border-radius: 6px;
}

/* Footer */
.bottom-footer {
  text-align: center;
  padding: 30px 20px;
  background-color: #ffffff;
  font-size: 0.9rem;
  color: #6b7280;
}

.bottom-footer p {
  margin-bottom: 6px;
}

.footer-link {
  color: #2563eb;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}
