/* One Time Secret — arogo.net theme (matches the main site style.css; self-contained so it works at arogo.net/ots and ots.arogo.net). Loaded after Bootstrap. */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/jetbrains-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-500.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/jetbrains-mono-700.woff2) format('woff2'); }

:root {
  --bg: #0B1220;
  --bg-2: #0F1830;
  --panel: #111B2E;
  --text: #E7ECF3;
  --text-muted: #8B96AC;
  --green: #4ADE80;
  --amber: #F5C451;
  --blue: #62B6F5;
  --red: #F16057;
  --border: #1E2A44;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  box-shadow: none;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- Nav (mirrors main site) ---------- */
.nav { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(11,18,32,0.92); backdrop-filter: blur(8px); z-index: 50; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.brand-badge {
  background: var(--green);
  color: #0B1220;
  width: 32px; height: 32px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.nav-links { display: flex; gap: 2.1rem; list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.nav-links a { text-decoration: none; color: var(--text-muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
@media (max-width: 640px) {
  .nav-links { gap: 1.1rem; font-size: 0.82rem; }
}

/* ---------- Page ---------- */
.page { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.6rem; }
.page-title { font-weight: 700; line-height: 1.15; margin: 0 0 0.5rem; font-size: clamp(1.4rem, 3.5vw, 2rem); }
.page-sub { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 1.5rem; }

.form-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  max-width: 860px;
  margin: 0 auto;
}
.form-card.narrow { max-width: 560px; text-align: center; }
.form-card fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.alert-banner {
  background: rgba(241,96,87,0.1);
  border: 1px solid var(--red);
  color: var(--text);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 1.25rem auto 0;
  max-width: 860px;
  font-size: 0.92rem;
}
.alert-banner.warn { background: rgba(245,196,81,0.1); border-color: var(--amber); }

/* ---------- Form controls (dark overrides on Bootstrap) ---------- */
.form-card .form-control, .form-card .form-select, .form-card textarea {
  background-color: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.95rem;
}
.form-card .form-control:focus, .form-card .form-select:focus, .form-card textarea:focus {
  background-color: var(--bg-2);
  color: var(--text);
  border-color: var(--green);
  box-shadow: none;
}
.form-card .form-control[readonly] { background-color: var(--bg-2); opacity: 1; }
.form-card .form-control::placeholder { color: var(--text-muted); opacity: 0.8; }
.form-card .form-select {
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238B96AC' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}
.secret-text { width: 100%; min-height: 200px; resize: vertical; padding: 12px 16px; }
/* White input surfaces so it is obvious where to type / paste */
.form-card .secret-text, .form-card .secret-text:focus,
.form-card .form-control[readonly], .form-card input.form-control {
  background-color: #FFFFFF;
  color: #0B1220;
  border: 2px solid #C9D2E3;
}
.form-card .secret-text:focus, .form-card input.form-control:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,196,81,0.35);
}
.form-card .secret-text::placeholder { color: #6B7690; opacity: 1; }
.field { margin: 0 0 1.25rem; }
.field-label { display: block; font-weight: 500; margin-bottom: 0.4rem; }
.hint { color: var(--text-muted); font-size: 0.82rem; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.72rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  line-height: 1.2;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.btn-primary, .btn-primary:focus, .btn-primary:active {
  background: var(--amber);
  color: #0B1220;
  border-color: transparent;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  box-shadow: 0 0 0 1px rgba(245,196,81,0.5), 0 6px 18px rgba(245,196,81,0.25);
}
.btn-primary:hover { background: #FFD66B; color: #0B1220; opacity: 1; }
.btn-ghost, .btn-ghost:focus {
  background: var(--blue);
  border-color: transparent;
  color: #0B1220;
  font-weight: 700;
}
.btn-ghost:hover { background: #8CCBFA; border-color: transparent; color: #0B1220; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
.btn-danger-ghost { background: transparent; border-color: var(--border); color: var(--red); }
.btn-danger-ghost:hover { border-color: var(--red); color: var(--red); background: transparent; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}
.actions .template-pick { width: auto; flex: 0 1 280px; min-width: 200px; }
.actions-center { justify-content: center; }

/* ---------- File list ---------- */
.file-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.file-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px;
  padding: 0.55rem 0.8rem; font-size: 0.88rem;
}
.file-list .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file-list .file-size { color: var(--text-muted); margin-left: 0.4rem; }
.badge-blocked { background: var(--red); color: #0B1220; border-radius: 4px; padding: 0.1rem 0.4rem; font-size: 0.72rem; margin-left: 0.4rem; }
.file-total { margin-top: 0.6rem; font-size: 0.85rem; }
.text-danger { color: var(--red) !important; }

/* ---------- Link / secret output ---------- */
.copy-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-top: 0.75rem; }
.copy-row .form-control { flex: 1 1 320px; }
.copy-status { color: var(--green); font-size: 0.82rem; min-height: 1.2em; }
.attachments { margin-top: 1.5rem; }
.attachments h2 { font-size: 1rem; margin: 0 0 0.6rem; }
.attachments .file-list a { text-decoration: none; color: var(--blue); }
.attachments .file-list a:hover { color: var(--text); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 2.25rem 0; margin-top: 2rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
