/* ==========================================================================
   Prime Assist — Shared Tool Page Theme (tools/*)
   All tools on primeassistco.com/tools/* MUST use this chrome.
   ========================================================================== */

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --pill-dark: #28282a;
  --card-bg: #0d0d0d;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(255, 255, 255, 0.28);
  --accent-red: #CC0000;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", monospace;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background-color: var(--bg); }

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* --- Top bar --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .logo-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--pill-dark);
  display: grid;
  place-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.topbar .logo-btn img { width: 88%; height: 88%; object-fit: contain; display: block; }

.topbar .back-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.topbar .back-link:hover { color: var(--text); }

/* --- Tool hero --- */
.tool-hero {
  text-align: center;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 40px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-hero .kicker {
  color: var(--accent-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tool-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 18px;
}

.tool-hero .red-line { width: 64px; height: 4px; background: var(--accent-red); border-radius: 2px; margin: 0 auto 18px; }

.tool-hero .tagline { color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); max-width: 560px; margin: 0 auto; }

/* --- Tool body --- */
.tool-body {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 40px);
}

.panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 18px;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 400;
  margin-bottom: 16px;
}

.panel h2 .red-dot { color: var(--accent-red); }

/* --- Form controls --- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.02em; }

input[type="text"],
input[type="url"],
input[type="number"],
input[type="file"],
textarea,
select {
  width: 100%;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s ease;
}

input:focus, textarea:focus, select:focus { border-color: var(--accent-red); }

textarea { min-height: 120px; resize: vertical; }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-red { background: var(--accent-red); color: #fff; }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(204, 0, 0, 0.35); }
.btn-outline { background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); color: var(--text); }
.btn-outline:hover { border-color: var(--text); transform: translateY(-2px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* --- Output --- */
.output {
  background: #0a0a0a;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px;
  margin-top: 16px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: #d8d8d8;
  max-height: 420px;
  overflow: auto;
}

.status { font-size: 13px; color: var(--muted); margin-top: 10px; }
.status.ok { color: #4ade80; }
.status.err { color: #f87171; }

/* --- Footer --- */
.tool-footer { text-align: center; padding: 26px clamp(20px, 5vw, 40px); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.tool-footer .tagline { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }
