/* ── AMBIENT GLOW ── */
.genz-ambient {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.genz-ambient::before {
  content: '';
  position: absolute; top: -20%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,0,127,0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: genzDrift1 18s ease-in-out infinite alternate;
}
.genz-ambient::after {
  content: '';
  position: absolute; bottom: -20%; right: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,238,252,0.04) 0%, transparent 70%);
  border-radius: 50%;
  animation: genzDrift2 22s ease-in-out infinite alternate;
}
@keyframes genzDrift1 { from { transform: translate(0,0); } to { transform: translate(60px,40px); } }
@keyframes genzDrift2 { from { transform: translate(0,0); } to { transform: translate(-50px,-60px); } }

/* ── BODY & WRAPPER ── */
body {
  font-family: 'Space Grotesk', sans-serif;
  padding-top: 72px;
  min-height: 100vh;
}

.genz-wrap {
  width: 90%;
  max-width: 920px;
  margin: 2rem auto 4rem;
  position: relative;
  z-index: 1;
}

/* ── PAGE TITLE ── */
.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--on-surface, #f8f5fd);
  margin: 0 0 0.4rem;
}

.gradient-text {
  background: linear-gradient(90deg, #FF007F, #00eefc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255,0,127,0.3));
}

.genz-description {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(248,245,253,0.4);
  margin: 0 0 1.75rem;
}

/* ── TWO-PANEL LAYOUT ── */
.genz-section {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* ── PANELS ── */
.genz-panel {
  flex: 1;
  background: rgba(37,37,44,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.genz-panel-output {
  border-color: rgba(0,238,252,0.12);
}

.genz-panel-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(248,245,253,0.35);
}

/* ── TEXTAREA ── */
#input-text {
  width: 100%;
  min-height: 220px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  line-height: 1.65;
  resize: vertical;
  box-sizing: border-box;
  background: rgba(14,14,19,0.6);
  color: var(--on-surface, #f8f5fd);
  outline: none;
  transition: border-color 0.2s;
}
#input-text:focus { border-color: rgba(255,0,127,0.4); }
#input-text::placeholder { color: rgba(248,245,253,0.2); }

/* ── OUTPUT ── */
#output-text {
  min-height: 220px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(0,238,252,0.1);
  border-radius: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  line-height: 1.65;
  background: rgba(0,238,252,0.03);
  color: rgba(248,245,253,0.8);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
}

/* ── CONTROLS ── */
.genz-controls {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

#file-upload { display: none; }

.file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  color: rgba(248,245,253,0.55);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.file-label .material-symbols-outlined { font-size: 1rem; }
.file-label:hover { border-color: rgba(255,0,127,0.3); color: rgba(248,245,253,0.85); }

#translate-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #FF007F, #cc0066);
  border: none;
  border-radius: 9999px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(255,0,127,0.3);
}
#translate-btn .material-symbols-outlined { font-size: 1rem; }
#translate-btn:hover { transform: scale(1.02); box-shadow: 0 0 28px rgba(255,0,127,0.45); }
#translate-btn:active { transform: scale(0.98); }

/* ── SWAP BUTTON ── */
.genz-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 3.5rem;
  flex-shrink: 0;
}
#swap-btn {
  background: none;
  border: 1px solid rgba(248,245,253,0.15);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(248,245,253,0.4);
  transition: color 0.2s, border-color 0.2s, transform 0.3s;
}
#swap-btn:hover { color: rgba(248,245,253,0.9); border-color: rgba(248,245,253,0.4); }
#swap-btn.swapped { transform: rotate(180deg); color: #ff007f; border-color: #ff007f; }
#swap-btn .material-symbols-outlined { font-size: 1.4rem; }

/* ── DISCLAIMER ── */
.genz-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(248,245,253,0.04);
  border: 1px solid rgba(248,245,253,0.1);
  border-radius: 10px;
  color: rgba(248,245,253,0.45);
  font-size: 0.85rem;
  line-height: 1.5;
}
.genz-disclaimer .material-symbols-outlined { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.genz-disclaimer p { margin: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .genz-section { flex-direction: column; }
  .genz-arrow {
    padding-top: 0;
    transform: rotate(90deg);
    align-self: center;
  }
}
