/* /var/www/html/assets/css/category.css : 카테고리 목록 페이지(/ko/image/, /ko/web/, /ko/random/) 전용 스타일.
   홈(home.css)과 같은 파스텔 포인트 컨셉. body에 category-page + 카테고리 클래스
   (cat-image / cat-web / cat-random)를 붙여 사용한다. 다른 페이지에는 영향 없음.
   팔레트는 home.css와 동일 값 (변경 시 두 파일을 함께 맞출 것). */

.category-page {
  --mint: #8fdcbc;
  --mint-soft: #e2f6ec;
  --sky: #93cbf2;
  --sky-soft: #e0eefb;
  --lavender: #b9aef2;
  --lavender-soft: #eae6fb;
  --lemon: #f2d478;
  --lemon-soft: #faf0d2;
  --peach: #f7b48c;
  --peach-soft: #fde7d8;
}

/* 페이지별 포인트 색 */
.category-page.cat-image   { --cat: var(--mint);     --cat-soft: var(--mint-soft);     --cat-hl: rgba(143, 220, 188, 0.45); }
.category-page.cat-web     { --cat: var(--sky);      --cat-soft: var(--sky-soft);      --cat-hl: rgba(147, 203, 242, 0.45); }
.category-page.cat-random  { --cat: var(--lavender); --cat-soft: var(--lavender-soft); --cat-hl: rgba(185, 174, 242, 0.45); }
.category-page.cat-text    { --cat: var(--lemon);    --cat-soft: var(--lemon-soft);    --cat-hl: rgba(242, 212, 120, 0.45); }
.category-page.cat-network { --cat: var(--peach);    --cat-soft: var(--peach-soft);    --cat-hl: rgba(247, 180, 140, 0.45); }

/* ---------- 제목 영역 ---------- */

.category-page .section-title h1::before {
  content: "\2726";           /* ✦ 홈과 같은 장식 */
  margin-right: 9px;
  color: var(--cat);
}

/* h1 강조어: 홈과 같은 파스텔 형광펜 밑줄 */
.category-page .section-title h1 .hl {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--cat-hl) 62%);
  border-radius: 4px;
  padding: 0 2px;
}

/* ---------- 도구 카드 ---------- */

.category-page .tool-card {
  border-radius: 20px;
}

/* 아이콘 타일: 카테고리 색 파스텔 배경 */
.category-page .tool-card .tool-icon {
  border-color: rgba(0, 0, 0, 0.08);
  background: linear-gradient(160deg, #ffffff, var(--cat-soft));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 10px rgba(0, 0, 0, 0.08);
}

.category-page .tool-card:hover,
.category-page .tool-card:focus {
  border-color: var(--cat);
}

/* 구슬 레이스 아이콘 (핀볼 드롭 모양): 구슬 하나 + 핀 두 개 */
.icon-marble::before {
  width: 15px;
  height: 15px;
  left: 8px;
  bottom: 8px;
  border-radius: 50%;
  background: #141414;
}
.icon-marble::after {
  width: 6px;
  height: 6px;
  top: 9px;
  right: 10px;
  border-radius: 50%;
  background: #141414;
  box-shadow: -11px 3px 0 #141414;
}

/* 주사위 아이콘: 둥근 사각형 + 점 두 개 */
.icon-dice::before {
  width: 26px;
  height: 26px;
  left: 8px;
  top: 8px;
  border: 3px solid #141414;
  border-radius: 7px;
  background: transparent;
}
.icon-dice::after {
  width: 5px;
  height: 5px;
  left: 14px;
  top: 14px;
  border-radius: 50%;
  background: #141414;
  box-shadow: 8px 8px 0 #141414;
}

/* 동전 아이콘: 원 + 안쪽 원 */
.icon-coin::before {
  width: 28px;
  height: 28px;
  left: 7px;
  top: 7px;
  border: 3px solid #141414;
  border-radius: 50%;
  background: transparent;
}
.icon-coin::after {
  width: 12px;
  height: 12px;
  left: 15px;
  top: 15px;
  border: 2px solid #141414;
  border-radius: 50%;
  background: transparent;
}

/* 오늘의 운세 아이콘: 별 (clip-path) */
.icon-fortune::before {
  width: 26px;
  height: 26px;
  left: 8px;
  top: 8px;
  background: #141414;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* 로또 아이콘: 공(원) + 안쪽 점들 */
.icon-lotto::before {
  width: 28px;
  height: 28px;
  left: 7px;
  top: 7px;
  border: 3px solid #141414;
  border-radius: 50%;
  background: transparent;
}
.icon-lotto::after {
  width: 5px;
  height: 5px;
  left: 13px;
  top: 13px;
  border-radius: 50%;
  background: #141414;
  box-shadow: 8px 5px 0 #141414, -1px 9px 0 #141414;
}

/* ---------- 준비 중 안내 패널 (도구가 아직 없는 카테고리) ---------- */

.category-page .cat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 28px 34px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  background:
    radial-gradient(140% 130px at 50% 0%, var(--cat-soft), transparent 72%),
    linear-gradient(165deg, #fcfcfa 0%, #f1f1ec 100%);
  color: var(--text-dark);
  text-align: center;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 16px 30px rgba(0, 0, 0, 0.22);
}

.category-page .cat-empty img {
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.18));
  animation: cat-empty-float 3.6s ease-in-out infinite;
}

@keyframes cat-empty-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .category-page .cat-empty img {
    animation: none;
  }
}

.category-page .cat-empty h2 {
  margin: 16px 0 0;
  font-size: 1.25rem;
}

.category-page .cat-empty p {
  margin: 10px 0 0;
  color: #55554f;
  line-height: 1.6;
}

.category-page .cat-empty-link {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--cat);
  color: #1d1d1a;
  font-weight: 700;
  font-size: 0.92rem;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.category-page .cat-empty-link:hover,
.category-page .cat-empty-link:focus {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
