/* 이모티콘·특수문자 도구 */
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --pink: #db2777;
  --pink2: #be185d;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif; font-size: 14px; }

.wrap { max-width: 100%; padding: 0 0 60px; }

/* ── 헤더 ── */
.top { padding: 20px 0 16px; }
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  width: 48px; height: 48px; flex-shrink: 0;
  background: linear-gradient(135deg, #db2777, #7c3aed);
  border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 22px;
}
h1 { font-size: 22px; font-weight: 700; }
.sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── 탭 ── */
.tab-row { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 18px; border-radius: 8px; border: 1.5px solid var(--line);
  background: var(--bg); cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--muted); transition: all .12s;
}
.tab-btn.active { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ── 카드 ── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }

.panel { display: none; }
.panel.active { display: block; }

/* ── 검색바 ── */
.search-row { display: flex; gap: 8px; margin-bottom: 14px; }
.search-input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14px; outline: none; transition: border-color .12s;
}
.search-input:focus { border-color: var(--pink); }

/* ── 카테고리 필터 ── */
.cat-filter { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.cat-chip {
  padding: 4px 12px; border-radius: 20px; border: 1.5px solid var(--line);
  background: var(--bg); cursor: pointer; font-size: 12px; font-weight: 600;
  color: var(--muted); transition: all .12s;
}
.cat-chip.active { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ── 이모지 그리드 ── */
.emoji-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 4px; max-height: 380px; overflow-y: auto;
}
.emoji-cell {
  width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 24px; border-radius: 8px; cursor: pointer; transition: all .12s;
  border: 1px solid transparent; position: relative;
}
.emoji-cell:hover { background: #fdf2f8; border-color: #fbcfe8; transform: scale(1.15); }
.emoji-cell.copied { background: #fdf2f8; border-color: var(--pink); }

/* ── 복사 알림 ── */
.copy-toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: #1e293b; color: #fff; padding: 10px 20px; border-radius: 20px;
  font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .2s;
  pointer-events: none; z-index: 9999;
}
.copy-toast.show { opacity: 1; }

/* ── 최근 복사 ── */
.recent-row { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; }
.recent-cell {
  font-size: 24px; cursor: pointer; padding: 4px 8px; border-radius: 6px;
  transition: background .12s;
}
.recent-cell:hover { background: #fdf2f8; }

/* ── 특수문자 그리드 ── */
.special-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 5px;
}
.special-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 4px; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; transition: all .12s; gap: 2px;
}
.special-cell:hover { border-color: var(--pink); background: #fdf2f8; }
.sc-char { font-size: 18px; font-weight: 600; }
.sc-name { font-size: 9px; color: var(--muted); text-align: center; line-height: 1.2; }

/* ── 텍스트 스타일러 ── */
.styler-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; outline: none; transition: border-color .12s; margin-bottom: 14px;
}
.styler-input:focus { border-color: var(--pink); }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.style-item {
  padding: 12px 14px; background: #fdf2f8; border: 1px solid #fbcfe8;
  border-radius: 9px; cursor: pointer; transition: all .12s;
  display: flex; justify-content: space-between; align-items: center;
}
.style-item:hover { border-color: var(--pink); background: #fce7f3; }
.si-text { font-size: 15px; }
.si-label { font-size: 11px; color: var(--muted); }

/* ── 사용 안내 섹션 공통 ── */
.guide-section {
  margin-top: 24px; background: rgba(246,248,255,.6);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.guide-section h2 { font-size: 15px; font-weight: 800; margin: 0 0 10px; color: var(--ink); }
.guide-section h2:not(:first-child) { margin-top: 18px; }
.guide-steps, .guide-features, .guide-usecase {
  margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.8;
}
.guide-steps li, .guide-features li, .guide-usecase li { margin-bottom: 4px; }
.guide-steps strong, .guide-features strong { color: var(--ink); }
.guide-privacy {
  margin-top: 16px; background: #eff6ff; border: 1px solid rgba(37,99,235,.22);
  border-radius: 12px; padding: 12px 14px; font-size: 12px; color: #1e40af; line-height: 1.55;
}
