/* style.css */
/* ────────────────────────────────────────────────────────── */
/* 1) “다른 도구 더 보기” 버튼 스타일                       */
/* ────────────────────────────────────────────────────────── */
.home-button {
  position: fixed;
  top: 12px; left: 0; right: 0;
  margin: auto; width: fit-content;
  padding: 14px 24px;
  background-color: #0066cc; color: #fff;
  text-decoration: none; border-radius: 10px;
  font-weight: 600; font-size: 1.3em;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  overflow: hidden; transition: .3s;
  z-index: 999;
}
.home-button:hover {
  background-color: #004999;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}
.home-button::before {
  content: ""; position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%; background: rgba(255,255,255,0.4);
  transform: skewX(-30deg); animation: shine 3s infinite;
}
@keyframes shine {
  0% { left: -75%; } 50% { left: 125%; } 100% { left: -75%; }
}
@media (max-width: 600px) {
  .home-button { font-size: 1.1em; padding: 10px 16px; top: 10px; }
}

/* ────────────────────────────────────────────────────────── */
/* 2) 페이지 전체 스타일                                    */
/* ────────────────────────────────────────────────────────── */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  /* 버튼 높이만큼 패딩 상단에 추가 */
  padding: 5rem 1rem 2rem;
  background: #f9f9f9; color: #333;
  max-width: 800px; margin-inline: auto;
}
header { text-align: center; margin-bottom: 2rem; }
header h1 { font-size: 1.8rem; margin-bottom: .3rem; }
header p { color: #666; margin: 0; }
textarea {
  width: 100%; height: 160px;
  padding: 1rem; font-size: 1rem;
  resize: vertical; margin-bottom: 1rem;
  border: 1px solid #ccc; border-radius: 8px;
}
.controls, .sort-buttons, .toggle-buttons {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.controls button, .sort-buttons button, .toggle-buttons button {
  padding: .6rem 1.2rem; font-size: .95rem;
  border: none; border-radius: 6px; cursor: pointer;
  background-color: #0077cc; color: #fff;
}
.controls button:hover, .sort-buttons button:hover, .toggle-buttons button:hover {
  background-color: #005fa3;
}
.sort-buttons button, .toggle-buttons button {
  background: #fff; color: #0077cc; border: 1px solid #0077cc;
}
.sort-buttons button:hover, .toggle-buttons button:hover {
  background: #e6f2ff;
}
.stats {
  margin-bottom: 1rem; background: #fff;
  border: 1px solid #ddd; border-radius: 8px;
  padding: 1rem;
}
.stats span { display: inline-block; margin-right: 1rem; font-weight: bold; }
.results ul { list-style: none; padding: 0; }
.results li {
  background: #fff; margin-bottom: .5rem;
  padding: .7rem 1rem; border: 1px solid #ddd;
  border-radius: 6px;
}
.footer { text-align: center; font-size: .9rem; margin-top: 3rem; color: #888; }
.note {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}
