/* --------------------------------------------------
   NEON EMOJI LAB — BLUE-IDEA.NET
   Full Neon CSS Theme (Blue + Purple)
-------------------------------------------------- */

:root {
  --bg1: #050716;
  --bg2: #090b2a;
  --accent1: #4b8bff;
  --accent2: #b44bff;
  --accent3: #35ffd8;
  --text-main: #f5f7ff;
  --text-muted: #9aa0c6;
  --card-bg: rgba(10, 14, 40, 0.85);
  --danger: #ff4b7a;
  --radius-lg: 18px;
  --radius-md: 12px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.28s ease-out;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 0%, #1b1f4a 0, transparent 55%),
    radial-gradient(circle at 90% 100%, #3b0f5f 0, transparent 55%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

/* Animated grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: soft-light;
  opacity: 0.35;
  pointer-events: none;
}

/* MAIN CONTAINER */
.app-shell {
  width: 100%;
  max-width: 1200px;
  background: radial-gradient(circle at top left, rgba(75,139,255,0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(180,75,255,0.18), transparent 55%),
              var(--card-bg);
  border-radius: 26px;
  border: 1px solid rgba(120, 160, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 24px 60px rgba(0,0,0,0.85),
    0 0 40px rgba(75,139,255,0.35);
  backdrop-filter: blur(18px);
  padding: 22px 24px 20px;
  position: relative;
  overflow: hidden;
}

/* Neon ring */
.app-shell::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px solid rgba(53,255,216,0.4);
  box-shadow: 0 0 40px rgba(53,255,216,0.6);
  top: -120px;
  right: -80px;
  opacity: 0.35;
  filter: blur(0.2px);
  pointer-events: none;
}

/* HEADER */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.app-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-title {
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent3), transparent 60%);
  box-shadow: 0 0 16px rgba(53,255,216,0.9);
}

.app-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.app-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(120,160,255,0.5);
  background: radial-gradient(circle at top, rgba(75,139,255,0.25), transparent 70%);
  color: var(--text-main);
}

.theme-toggle {
  cursor: pointer;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(120,160,255,0.6);
  background: rgba(5,8,32,0.9);
  color: var(--text-muted);
}

/* LAYOUT */
.app-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .app-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* PANELS */
.panel {
  background: radial-gradient(circle at top left, rgba(75,139,255,0.12), transparent 60%),
              rgba(3, 6, 24, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(120,160,255,0.35);
  padding: 14px 14px 12px;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(75,139,255,0.18),
    transparent 40%,
    transparent 60%,
    rgba(180,75,255,0.18));
  opacity: 0;
  transition: opacity var(--transition-med);
  pointer-events: none;
}

.panel:hover::before {
  opacity: 0.6;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.panel-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* TOOL BLOCKS */
.tool-block {
  margin-bottom: 20px;
}

.tool-title {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--accent3);
  text-shadow: 0 0 8px rgba(53,255,216,0.6);
}

/* INPUTS */
.text-input {
  width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120,160,255,0.6);
  background:
    radial-gradient(circle at top left, rgba(75,139,255,0.25), transparent 60%),
    rgba(5, 8, 32, 0.95);
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.7);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.text-input:focus {
  border-color: var(--accent3);
  box-shadow: 0 0 14px rgba(53,255,216,0.7);
  transform: translateY(-1px);
}

/* CATEGORY ROW */
.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.category-row button {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120,160,255,0.6);
  background: rgba(5,8,32,0.9);
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.8rem;
  transition: 0.2s;
}

.category-row button:hover {
  border-color: var(--accent2);
  box-shadow: 0 0 12px rgba(180,75,255,0.7);
}

/* EMOJI GRID */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.emoji-grid div {
  font-size: 32px;
  cursor: pointer;
  text-align: center;
  padding: 6px;
  border-radius: 12px;
  transition: 0.2s;
}

.emoji-grid div:hover {
  background: rgba(75,139,255,0.25);
  box-shadow: 0 0 12px rgba(75,139,255,0.7);
  transform: translateY(-2px);
}

/* BUILDER DISPLAY */
.builder-display {
  min-height: 60px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(120,160,255,0.5);
  background: rgba(3,6,24,0.85);
  font-size: 48px;
  margin-bottom: 10px;
  text-align: center;
}

/* BUTTONS */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.btn {
  border-radius: 999px;
  border: 1px solid rgba(120,160,255,0.7);
  padding: 7px 14px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background:
    radial-gradient(circle at top, rgba(75,139,255,0.35), transparent 65%),
    linear-gradient(135deg, rgba(5,8,32,0.95), rgba(12,16,48,0.95));
  color: var(--text-main);
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  border-color: var(--accent2);
  box-shadow: 0 0 16px rgba(180,75,255,0.7);
  transform: translateY(-1px);
}

.btn-primary {
  border-color: var(--accent3);
  box-shadow: 0 0 14px rgba(53,255,216,0.7);
}

.btn-primary:hover {
  box-shadow: 0 0 22px rgba(53,255,216,0.9);
}

/* OUTPUT AREA */
#output-area {
  width: 100%;
  min-height: 180px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(120,160,255,0.6);
  background: rgba(3,6,24,0.96);
  color: var(--text-main);
  font-size: 0.9rem;
  resize: vertical;
  white-space: pre-wrap;
}

/* HTML PREVIEW */
.html-preview {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(120,160,255,0.5);
  background: rgba(3,6,24,0.85);
  min-height: 80px;
  font-size: 1.8rem;
  text-align: center;
}

/* FOOTER */
.footer {
  text-align: center;
  margin-top: 14px;
  font-size: 0.75rem;
  color: #9aa0c6;
}
