/* ============================================================================
   emoji-picker.css — Tool-spezifische Styles für EMOJI PICKER
   Geladen auf: tools/emoji-picker.php  (NACH main-vhc.css)
   ============================================================================ */

/* ── Coming Soon Page Styles ──────────────────────────────────────────────── */
body.tool-page main { flex:1; position:relative; z-index:1;
  display:flex; flex-direction:column; align-items:center;
  padding:36px 20px 52px; }

.cs-article { width:100%; max-width:820px; margin:0 auto;
  padding:20px 24px 50px; text-align:center; }

.cs-badge { display:inline-block; padding:10px 28px; margin-bottom:32px;
  background:rgba(123,47,255,0.12); border:1px solid rgba(123,47,255,0.6);
  color:#c0a8ff; font-family:'Orbitron',monospace; font-size:0.78rem;
  font-weight:700; letter-spacing:4px; text-transform:uppercase;
  border-radius:4px; box-shadow:0 0 24px rgba(123,47,255,0.3); }

.cs-icon-wrap { margin:0 auto 24px; width:180px; height:120px; }
.cs-icon { width:100%; height:100%; object-fit:contain;
  filter:drop-shadow(0 0 30px rgba(0,245,255,0.45)); }

.cs-title { font-family:'Orbitron',monospace;
  font-size:clamp(1.6rem,5vw,3rem); font-weight:900; letter-spacing:4px;
  color:#fff; text-shadow:0 0 40px rgba(0,245,255,0.5);
  margin:0 0 12px 0; line-height:1.1; }
.cs-title span { background:linear-gradient(90deg,var(--neon1),var(--neon4));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text; }

.cs-tagline { font-family:'Exo 2',sans-serif; font-size:1.05rem;
  color:var(--muted); letter-spacing:1.5px; margin:0 0 22px 0;
  text-transform:uppercase; }

.cs-line { width:200px; height:2px; margin:0 auto 40px;
  background:linear-gradient(90deg,transparent,var(--neon1),transparent); }

.cs-divider { width:120px; height:1px; margin:34px auto;
  background:linear-gradient(90deg,transparent,var(--border),transparent); }

.cs-h2 { font-family:'Orbitron',monospace; font-size:0.78rem;
  letter-spacing:5px; text-transform:uppercase; color:var(--neon1);
  margin:0 0 18px 0; }

.cs-text { font-family:'Exo 2',sans-serif; font-size:1rem; line-height:1.75;
  color:var(--text); margin:0 0 14px 0; text-align:left; }

.cs-list { font-family:'Exo 2',sans-serif; font-size:1rem; line-height:1.85;
  color:var(--text); list-style:none; padding:0; margin:0 0 16px 0;
  text-align:left; }
.cs-list li { padding-left:26px; position:relative; }
.cs-list li::before { content:'▸'; position:absolute; left:0;
  color:var(--neon1); }
.cs-list--check li::before { content:'✓'; color:var(--neon4); }

.cs-closing { margin-top:48px; padding-top:28px;
  border-top:1px solid var(--border); font-family:'Orbitron',monospace;
  font-size:0.72rem; letter-spacing:3px; color:var(--muted);
  text-transform:uppercase; }

/* ── EMOJI PICKER – Tool Styles ───────────────────────────────────────────── */

/* hidden-Attribut nicht durch display-Regeln überschreiben lassen */
[hidden] { display: none !important; }

/* Tool-spezifische Variablen (ergänzend zu main-vhc.css) */
#ep-wrap {
  --ep-bg2: #0a0f1e;
  --ep-bg3: #101828;
  --ep-bg4: #1a2035;
  --ep-border2: #2a3a5a;
  --ep-cell: 38px;
  --ep-radius: 6px;
  --ep-glow: 0 0 10px rgba(0, 229, 255, 0.3);

  width: 100%;
  max-width: 920px;
  padding: 0 0 2rem;
}

/* ── SEARCH ─────────────────────────────────────────────────────────────── */
#ep-controls {
  margin-bottom: 0.9rem;
}

#ep-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

#ep-search-icon {
  position: absolute;
  left: 13px;
  font-size: 1rem;
  pointer-events: none;
  user-select: none;
}

#ep-search {
  width: 100%;
  padding: 0.7rem 2.8rem 0.7rem 2.8rem;
  background: var(--ep-bg3);
  border: 1px solid var(--border);
  border-radius: var(--ep-radius);
  color: #dce8ff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#ep-search:focus {
  border-color: var(--neon1);
  box-shadow: var(--ep-glow);
}

#ep-search::placeholder {
  color: var(--muted);
}

#ep-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 7px;
  border-radius: 4px;
  transition: color 0.15s;
  line-height: 1;
}

#ep-clear:hover {
  color: var(--neon2, #ff0090);
}

/* ── CATEGORIES ──────────────────────────────────────────────────────────── */
#ep-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 0.8rem;
}

.ep-cat {
  padding: 0.32rem 0.85rem;
  background: var(--ep-bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}

.ep-cat:hover {
  border-color: var(--neon1);
  color: var(--neon1);
}

.ep-cat.active {
  background: var(--neon1);
  border-color: var(--neon1);
  color: #000;
  font-weight: 700;
}

/* ── STATUS ──────────────────────────────────────────────────────────────── */
#ep-status {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  min-height: 1.2em;
}

/* ── GRID ────────────────────────────────────────────────────────────────── */
#ep-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 0.8rem;
  min-height: 100px;
}

.ep-cell {
  width: var(--ep-cell);
  height: var(--ep-cell);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--ep-bg3);
  transition: transform 0.1s, background 0.1s, border-color 0.1s;
  user-select: none;
  line-height: 1;
  padding: 0;
  position: relative;
}

.ep-cell:hover {
  background: var(--ep-bg4);
  border-color: var(--ep-border2);
  transform: scale(1.25);
  z-index: 2;
}

.ep-cell.selected {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--neon1);
}

/* ── EMPTY ───────────────────────────────────────────────────────────────── */
#ep-empty {
  text-align: center;
  color: var(--muted);
  padding: 2.5rem;
  font-size: 0.9rem;
}

/* ── DETAIL PANEL ────────────────────────────────────────────────────────── */
#ep-detail {
  position: sticky;
  bottom: 0;
  background: var(--ep-bg2);
  border: 1px solid var(--ep-border2);
  border-radius: var(--ep-radius);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.6rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.6);
}

#ep-detail-preview {
  font-size: 2.8rem;
  line-height: 1;
  flex-shrink: 0;
  min-width: 3.2rem;
  text-align: center;
}

#ep-detail-data {
  flex: 1;
  min-width: 0;
}

#ep-detail-name {
  font-size: 0.9rem;
  color: #dce8ff;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ep-detail-codes {
  font-size: 0.76rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-bottom: 0.35rem;
}

.ep-code-label {
  color: var(--neon1);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

#ep-cp,
#ep-entity {
  font-family: 'Courier New', monospace;
  background: var(--ep-bg4);
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 0.76rem;
  color: var(--text);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

#ep-cp:hover,
#ep-entity:hover {
  background: var(--ep-bg3);
  color: var(--neon1);
  border-color: var(--ep-border2);
}

/* ── SKIN TONES ──────────────────────────────────────────────────────────── */
#ep-tones {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.ep-tone-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-right: 2px;
}

.ep-tone {
  width: 26px;
  height: 26px;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--ep-bg4);
  transition: all 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.ep-tone:hover {
  border-color: var(--ep-border2);
}

.ep-tone.active {
  border-color: var(--neon1);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}

.ep-tone-sw {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

.ep-tone-0 { background: #FFD700; }
.ep-tone-1 { background: #FFDBB4; }
.ep-tone-2 { background: #EDB98A; }
.ep-tone-3 { background: #D08B5B; }
.ep-tone-4 { background: #AE5D29; }
.ep-tone-5 { background: #614335; }

/* ── COPY BUTTON ─────────────────────────────────────────────────────────── */
#ep-copy {
  padding: 0.55rem 1.1rem;
  background: var(--neon1);
  border: none;
  border-radius: var(--ep-radius);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}

#ep-copy:hover {
  background: #fff;
  box-shadow: var(--ep-glow);
}

#ep-copy.copied {
  background: var(--neon4, #00cc55);
  color: #fff;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #ep-detail {
    flex-wrap: wrap;
  }

  #ep-detail-preview {
    font-size: 2.4rem;
  }

  #ep-wrap {
    --ep-cell: 34px;
  }
}

@media (max-width: 420px) {
  #ep-wrap {
    --ep-cell: 30px;
  }

  .ep-cat {
    font-size: 0.76rem;
    padding: 0.28rem 0.65rem;
  }
}
