/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5f7fa;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== Header ===== */
.header {
  text-align: center;
  padding: 32px 0 8px;
}

.app-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.app-subtitle {
  font-size: 1rem;
  color: #4a5568;
  margin-bottom: 8px;
}

.app-desc {
  font-size: 0.9rem;
  color: #718096;
}

/* ===== Search Section ===== */
.search-section {
  width: 100%;
}

.search-box {
  display: flex;
  gap: 8px;
  width: 100%;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: #3b82f6;
}

.search-button {
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.search-button:hover {
  background-color: #2563eb;
}

.search-button:active {
  background-color: #1d4ed8;
}

/* ===== Result Area ===== */
.result-area {
  width: 100%;
  min-height: 200px;
  background: #ffffff;
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}

.placeholder-text {
  font-size: 0.95rem;
  color: #a0aec0;
  line-height: 1.6;
}

/* loading 狀態 */
.result-area.loading .placeholder-text {
  color: #3b82f6;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 8px 0 24px;
  font-size: 0.78rem;
  color: #a0aec0;
  line-height: 1.8;
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .app-title {
    font-size: 1.4rem;
  }

  .search-box {
    flex-direction: column;
  }

  .search-button {
    width: 100%;
  }
}