/* Emoji Picker — Amber Glow Dark */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #F59E0B;
  --primary-dim: rgba(245,158,11,0.12);
  --secondary: #FBBF24;
  --accent: #EF4444;
  --bg: #1A1400;
  --bg-card: #221C08;
  --border: rgba(245,158,11,0.10);
  --text: #F5E6C8;
  --text-dim: #C4A870;
  --text-muted: #6B5A30;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, sans-serif;
  --transition: 0.2s ease;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }

.header { border-bottom: 1px solid var(--border); background: rgba(34,28,8,0.95); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.header-inner { max-width: 600px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; }
.header-left { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.2rem; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--primary-dim); border-radius: var(--radius-sm); }
.header h1 { font-size: 1.05rem; font-weight: 700; }
.subtitle { font-size: 0.72rem; color: var(--text-dim); }

.main { max-width: 600px; margin: 0 auto; padding: 16px 20px; }

.search-bar { margin-bottom: 8px; }
.search-input { width: 100%; padding: 10px 14px; font-family: var(--font); font-size: 0.82rem; color: var(--text); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); outline: none; }

.cats-bar { display: flex; gap: 4px; padding: 6px 0; margin-bottom: 8px; overflow-x: auto; }
.cat-btn { padding: 5px 10px; font-size: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; transition: all var(--transition); flex-shrink: 0; }
.cat-btn.active { background: var(--primary-dim); border-color: var(--primary); }

.section-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.panel-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.count { font-size: 0.62rem; color: var(--text-muted); }

.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; padding: 8px; }
.emoji-cell { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; border-radius: 6px; cursor: pointer; transition: all var(--transition); position: relative; }
.emoji-cell:hover { background: var(--primary-dim); transform: scale(1.15); }

.tooltip { position: fixed; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-align: center; z-index: 100; box-shadow: 0 8px 32px rgba(0,0,0,0.5); pointer-events: none; }
.tooltip-emoji { font-size: 2.5rem; margin-bottom: 4px; }
.tooltip-name { font-size: 0.72rem; font-weight: 600; margin-bottom: 4px; }
.tooltip-codes { font-size: 0.58rem; color: var(--text-muted); }

.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 200; }
.toast { padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 4px 24px rgba(0,0,0,0.5); font-size: 0.82rem; animation: toastIn 0.3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
