:root {
  color-scheme: light;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background: #f4f6fb;
  color: #1d1f2b;
}

.hero {
  background: linear-gradient(120deg, #1e2a78, #3f51b5);
  color: #fff;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 36rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.app {
  padding-bottom: 2rem;
}

.status {
  min-height: 1.5rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.card-panel {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.card-frame {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.cardImage {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

.text-panel {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.panel-actions {
  display: flex;
  gap: 0.75rem;
}

.panel-body {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
  overflow: auto;
}

.search-panel {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.search-form {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 520px;
}

.footer {
  margin-top: 2rem;
  padding: 1.5rem 0 2.5rem;
  color: #6b7280;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form {
    flex-direction: column;
  }
}
