/* ===== Reset & Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0b0e14;
  --panel: #131726;
  --panel-alt: #1a1f33;
  --accent: #ff5c57;
  --accent-soft: rgba(255, 92, 87, 0.15);
  --text: #f5f7fa;
  --muted: #9aa0b3;
  --border: rgba(255,255,255,0.06);
  --radius: 14px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #141933, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 950px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* ===== Header ===== */
header {
  text-align: center;
}

header h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ff5c57, #ff9f8f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  margin-top: 0.35rem;
  font-size: 1rem;
  color: var(--muted);
}

/* ===== Paste Card ===== */
.paste-card {
  background: linear-gradient(
    180deg,
    var(--panel),
    var(--panel-alt)
  );
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

/* ===== Textarea / Paste View ===== */
textarea {
  width: 100%;
  min-height: 340px;
  background: #0f1324;
  color: #e8ebf2;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}

textarea::placeholder {
  color: #6b7285;
}

textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #0d1020;
}

/* Read-only paste view */
textarea[readonly] {
  background: #0b0f1f;
  cursor: default;
}

/* ===== Buttons ===== */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

button,
a.secondary {
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  border: none;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

/* Primary */
button {
  background: linear-gradient(135deg, #ff5c57, #ff7a6d);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,92,87,0.35);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255,92,87,0.45);
}

button:active {
  transform: translateY(0);
}

/* Secondary */
a.secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

a.secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* ===== Result ===== */
#result {
  margin-top: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-all;
  color: #4ade80;
}

/* ===== Footer ===== */
footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  body {
    padding: 1.25rem;
  }

  textarea {
    min-height: 240px;
  }

  .buttons {
    flex-direction: column;
  }
}
