
/* Full width mode */
.emoji-search-v2-root{
width:100vw;
max-width:100vw;
margin-left:calc(50% - 50vw);
position:relative;
isolation:isolate;
}
body.admin-bar .emoji-search-v2-root{min-height:calc(100vh - 32px);}
.emoji-search-v2-root *{box-sizing:border-box;}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0f1221;
  --bg2: #151935;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.14);
  --text: #f7f8ff;
  --muted: rgba(247, 248, 255, 0.7);
  --accent: #8b5cf6;
  --accent2: #22c55e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.35), transparent 30%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.22), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg2));
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.background-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.background-blobs span {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.28;
  animation: float 12s ease-in-out infinite;
}

.background-blobs span:nth-child(1) {
  background: #8b5cf6;
  top: 5%;
  left: -60px;
}

.background-blobs span:nth-child(2) {
  background: #22c55e;
  top: 15%;
  right: -80px;
  animation-delay: 2s;
}

.background-blobs span:nth-child(3) {
  background: #f97316;
  bottom: 5%;
  left: 30%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.app {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #e9ddff;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.subtext {
  color: var(--muted);
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.7;
}

.search-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 18px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 10px 12px;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
}

.search-box input::placeholder {
  color: rgba(247, 248, 255, 0.45);
}

.search-box button {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.search-box button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), #ec4899);
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.25);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.stat-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.stat-card span {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.stat-card p {
  color: var(--muted);
}

.section-header {
  margin: 18px 0 14px;
}

.section-header h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.section-header p {
  color: var(--muted);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.emoji-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.emoji-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
}

.emoji-large {
  font-size: 3rem;
  line-height: 1;
}

.emoji-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 8px;
}

.emoji-keywords {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

.emoji-meta {
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(247, 248, 255, 0.8);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.no-results h3 {
  color: var(--text);
  margin-bottom: 8px;
}

.hidden {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 18, 33, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 10;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app {
    width: min(100% - 16px, 1200px);
    padding-top: 12px;
  }

  .hero,
  .search-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .emoji-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .emoji-card {
    min-height: 150px;
  }

  .hero h1 {
    font-size: 2rem;
  }
}