/* --------------------------------------------------------------
   styles.css – Enhanced version (copy-paste over the old file)
   -------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Animated gradient background */
html {
  height: 100%;
}
body {
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(-45deg, #2a0d0d, #3b1b1d, #774146, #a9777b);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  color: #e0e1dd;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
@keyframes gradientShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* --------------------------------------------------------------
   Glass container
   -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 860px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.02) 100%);
  pointer-events: none;
}

/* --------------------------------------------------------------
   Typography
   -------------------------------------------------------------- */
header { text-align: center; margin-bottom: 2rem; }
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: .4rem;
  background: linear-gradient(90deg, #00d4ff, #00ff9d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
p {
  font-size: 1.02rem;
  opacity: .88;
  line-height: 1.5;
}

/* --------------------------------------------------------------
   Form controls
   -------------------------------------------------------------- */
main { display: flex; flex-direction: column; gap: 1.4rem; }

#input {
  width: 100%;
  padding: 1.1rem 1.3rem;
  font-size: 1.12rem;
  line-height: 1.4;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  transition: all .25s ease;
  resize: vertical;
}
#input::placeholder {
  color: rgba(255,255,255,.55);
}
#input:focus {
  outline: none;
  background: rgba(255,255,255,.18);
  box-shadow: 0 0 0 3px rgba(0,212,255,.3);
}

/* --------------------------------------------------------------
   Decode button
   -------------------------------------------------------------- */
#decodeBtn {
  align-self: center;
  min-width: 160px;
  padding: .9rem 2.2rem;
  font-size: 1.08rem;
  font-weight: 600;
  background: linear-gradient(135deg, #00d4ff, #00b0d4);
  color: #0d1b2a;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 15px rgba(0,212,255,.4);
}
#decodeBtn:hover {
  background: linear-gradient(135deg, #00ffcc, #00b8e6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,212,255,.55);
}
#decodeBtn:active {
  transform: translateY(-1px);
}

/* --------------------------------------------------------------
   Output area
   -------------------------------------------------------------- */
.output {
  margin-top: .8rem;
  padding: 1.3rem;
  background: rgba(0,0,0,.22);
  border-radius: 12px;
  font-size: 1.65rem;
  font-weight: 600;
  text-align: center;
  min-height: 68px;
  word-break: break-all;
  line-height: 1.4;
  transition: background .25s;
}
.output:empty::after { content: "(no output yet)"; opacity: .5; }

/* --------------------------------------------------------------
   Example buttons
   -------------------------------------------------------------- */
.examples {
  margin-top: 1.8rem;
  text-align: center;
}
.examples h3 {
  margin-bottom: .9rem;
  font-size: 1.08rem;
  opacity: .9;
}
.example-btn {
  margin: 0 .4rem .6rem;
  padding: .55rem 1.1rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  font-size: .92rem;
  cursor: pointer;
  transition: all .22s ease;
}
.example-btn:hover {
  background: rgba(71, 2, 54, 0.048);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------
   Footer
   -------------------------------------------------------------- */
footer {
  margin-top: 2.2rem;
  text-align: center;
  font-size: .86rem;
  opacity: .72;
}

/* --------------------------------------------------------------
   Responsive tweaks
   -------------------------------------------------------------- */
@media (max-width: 600px) {
  .container { padding: 1.8rem; border-radius: 16px; }
  h1 { font-size: 2rem; }
  #input { padding: .9rem; font-size: 1rem; }
  #decodeBtn { padding: .75rem 1.8rem; font-size: 1rem; }
  .output { font-size: 1.45rem; padding: 1rem; }
  .example-btn { display: block; width: 100%; margin: .5rem 0; }
}

/* Optional: load Inter font for extra polish */
@import url('https://rsms.me/inter/inter.css');