/* Lopettia pastebin — dark only, brand-aligned palette. */

:root {
  --bg:        #0B1120;
  --panel:    #182440;
  --border:   rgba(255,255,255,0.08);
  --text:     #F2F0EB;
  --muted:    rgba(242,240,235,0.65);
  --dim:      rgba(242,240,235,0.40);
  --coral:    #F38281;
  --peach:    #F7B285;
  --gold:     #FCE28A;
  --mint:     #5EEAD4;
  --danger:   #fb7185;
  --r-sm:     8px;
  --r-md:     14px;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --font-ui:   "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
a { color: var(--coral); }
a:hover { color: var(--peach); }
button { font: inherit; cursor: pointer; }
code { font-family: var(--font-mono); font-size: 0.9em; }

main {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 .dot { color: var(--coral); }
.tagline {
  color: var(--muted);
  max-width: 36rem;
  font-size: 0.95rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.panel.hidden { display: none; }

textarea {
  width: 100%;
  min-height: 22rem;
  resize: vertical;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  tab-size: 2;
  outline: none;
  transition: border-color 120ms ease;
}
textarea:focus { border-color: var(--coral); }
textarea[readonly] { background: rgba(0,0,0,0.35); }

.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
}
.field {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.field.checkbox { user-select: none; cursor: pointer; }
.field input[type="checkbox"] {
  appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  border: 1.5px solid var(--dim);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: all 120ms ease;
}
.field input[type="checkbox"]:checked {
  background: var(--coral);
  border-color: var(--coral);
}
.field input[type="checkbox"]:checked::after {
  content: "";
  width: 0.32rem;
  height: 0.6rem;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
select, input[type="text"] {
  font: inherit;
  color: var(--text);
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.45rem 0.7rem;
  outline: none;
}
select:focus, input[type="text"]:focus { border-color: var(--coral); }

.counter {
  font-family: var(--font-mono);
  color: var(--dim);
  font-size: 0.85rem;
  margin-left: auto;  /* shoves the button to the right while counter floats just before it */
}

.btn-primary, .btn-secondary, .btn-link {
  border: 0;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}
.btn-primary {
  background: var(--coral);
  color: var(--bg);
  padding: 0.65rem 1.2rem;
  box-shadow: 0 4px 14px rgba(243,130,129,0.22);
}
.btn-primary:hover:not(:disabled) {
  background: var(--peach);
  transform: translateY(-1px);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  padding: 0.55rem 1rem;
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); }
.btn-link {
  background: transparent;
  color: var(--coral);
  padding: 0.4rem 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-link:hover { color: var(--peach); }

.spinner {
  width: 0.95rem; height: 0.95rem;
  border: 2px solid rgba(11,17,32,0.35);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.share {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.share input[type="text"] {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.meta { color: var(--muted); font-size: 0.9rem; }
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* tiny "copied" flash on the copy button */
.btn-secondary.flash { background: var(--mint); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
