
/* =========================================================
   VioScans / Violet Shared Stylesheet
   - Supports: Violet.php, Violets_Uniques.php, Violets_Tools.php, about_Violet.php
   - Includes BOTH header patterns: .vs-* (hamburger) and .sm-* (classic)
   - Consolidated (no duplicate :root/body/wrap blocks)
   ========================================================= */

/* -------------------------
   Theme Variables
--------------------------*/
:root{
  --bg:#f6f7f9;
  --card:#fff;
  --ink:#111827;
  --muted:#4b5563;
  --line:#e5e7eb;

  --orange:#ff7a18;

  /* Violet theme */
  --violet:#7c3aed;
  --violet-dark:#5b21b6;
  --violet-soft:rgba(124,58,237,.12);
  --violet-soft-2:rgba(124,58,237,.07);

  /* Fog theme (for grey callouts) */
  --fog:#6b7280;
  --fog-dark:#374151;
  --fog-soft:rgba(107,114,128,.12);

  /* Status */
  --good:#16a34a;
  --good-soft:rgba(22,163,74,.12);
  --bad:#ef4444;
  --bad-soft:rgba(239,68,68,.12);

  /* Optional “extras” used by some layouts */
  --violet2:#a78bfa;
  --violetDeep:#4c1d95;
  --violetGlow:rgba(124,58,237,.30);
}

/* -------------------------
   Base + Sticky Footer
--------------------------*/
*{ box-sizing:border-box; min-width:0; }
html, body{ height:100%; margin:0; max-width:100%; overflow-x:hidden; }

body{
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.5;

  /* sticky footer */
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* subtle background aura at top (used by Violet main scanner page) */
body::before{
  content:"";
  position:fixed;
  inset:-20% -20% auto -20%;
  height:360px;
  background:
    radial-gradient(closest-side at 20% 20%, rgba(124,58,237,.20), transparent 55%),
    radial-gradient(closest-side at 80% 0%, rgba(255,122,24,.18), transparent 55%),
    linear-gradient(to bottom, rgba(124,58,237,.08), transparent 70%);
  pointer-events:none;
  z-index:-1;
}

a{ color:inherit; text-decoration:none; }

/* Let the main content grow and push footer down */
.wrap{
  flex:1 0 auto;
  margin:0 auto;
}

/* -------------------------
   Classic SM Header/Footer (About page pattern)
--------------------------*/
.sm-header{ background:var(--orange); color:#fff; }
.sm-header-inner{
  max-width:1400px;
  margin:0 auto;
  padding:14px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.sm-brand-link{ display:flex; gap:10px; align-items:baseline; color:#fff; }
.sm-logo{ font-weight:900; letter-spacing:.08em; }
.sm-brand-text{ font-weight:700; opacity:.95; }
.sm-tagline{ margin-left:auto; font-weight:700; opacity:.95; }

.sm-footer{ background:var(--orange); color:#fff; margin-top:16px; }
.sm-footer-inner{
  max-width:1400px;
  margin:0 auto;
  padding:12px 14px;
  text-align:center;
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:center;
}
.sm-footer-link{ color:#fff; text-decoration:underline; font-weight:800; }

/* -------------------------
   VioScans Header + Hamburger (.vs-*)
--------------------------*/
.vs-header{ background:var(--orange); color:#fff; }
.vs-header-inner{
  max-width:1400px;
  margin:0 auto;
  padding:12px 14px;
  display:flex;
  align-items:center;
  gap:12px;
  position:relative;
}
.vs-brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:#fff; }
.vs-orb{
  width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;
  background:radial-gradient(circle at 30% 30%, #c084fc, var(--violet) 65%, var(--violet-dark));
  box-shadow:0 4px 12px rgba(0,0,0,.35);
  font-size:20px;
}
.vs-brand-text{ display:flex; flex-direction:column; line-height:1.05; }
.vs-logo{ font-weight:900; letter-spacing:.08em; font-size:16px; }
.vs-sub{ font-size:11px; opacity:.88; font-weight:700; }

.vs-nav{ margin-left:auto; display:flex; gap:10px; align-items:center; }
.vs-link{
  color:#fff;
  text-decoration:none;
  font-weight:900;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
}
.vs-link:hover{ filter:brightness(1.05); }
.vs-link.is-active{
  background:rgba(255,255,255,.22);
  border-color:rgba(255,255,255,.35);
}

.vs-burger{
  margin-left:auto;
  width:44px;height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.10);
  display:none;
  cursor:pointer;
}
.vs-burger span{
  display:block;width:20px;height:2px;background:#fff;
  margin:5px auto;border-radius:2px;
}
.vs-nav-backdrop{
  position:fixed; inset:0;
  background:rgba(15,23,42,.45);
  z-index:999;
}
.vs-no-scroll{ overflow:hidden; }

@media (max-width: 820px){
  .vs-burger{ display:block; }
  .vs-nav{
    position:fixed; left:12px; right:12px; top:70px;
    display:none;
    flex-direction:column;
    gap:8px;
    padding:12px;
    border-radius:14px;
    background:#fff;
    color:var(--ink);
    border:1px solid var(--line);
    box-shadow:0 16px 50px rgba(0,0,0,.18);
    z-index:1000;
  }
  .vs-nav.open{ display:flex; }
  .vs-link{
    color:var(--ink);
    background:rgba(124,58,237,.10);
    border-color:rgba(124,58,237,.22);
  }
  .vs-link.is-active{
    background:rgba(124,58,237,.18);
    border-color:rgba(124,58,237,.35);
  }
}

/* -------------------------
   Shared Layout + Cards (About + Uniques)
--------------------------*/
.wrap{ max-width:1200px; padding:20px; } /* About/Uniques width */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  margin-bottom:16px;
  overflow:hidden;
}
.hd{
  padding:14px;
  background:var(--violet-soft);
  border-bottom:1px solid var(--line);
  font-weight:900;
}


/* --- Violet.php card header typography (fix oversized h2/p) --- */
.hd h2{
  margin:0;
  font-size:18px;           /* keeps “Paste your text” size nice */
  letter-spacing:.2px;
  line-height:1.2;
}

.hd p{
  margin:8px 0 0;
  color:var(--muted);
  font-size:14px;           /* fixes the too-large paragraph */
  font-weight:700;          /* matches your original look */
  line-height:1.45;
  max-width:95ch;
}

/* Keep code inside that header paragraph from looking heavy */
.hd p code{
  font-size:13px;
  font-weight:700;
}


.bd{ padding:18px; }

h1{ margin:0 0 6px 0; font-size:26px; }
.sub{ color:var(--muted); font-weight:700; }

.violet{ color:var(--violet-dark); font-weight:900; }

.monster{ font-size:48px; margin-right:12px; }

ul{ margin-top:8px; }
li{ margin:6px 0; }

code{
  background:#f3f4f6;
  padding:2px 6px;
  border-radius:6px;
  border:1px solid var(--line);
  font-family:monospace;
}

pre{
  background:#0b1020;
  color:#e5e7eb;
  padding:14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  overflow:auto;
  margin:12px 0 0 0;
}
pre code{ background:transparent; border:none; padding:0; color:inherit; }

/* Buttons (your Violet buttons + variants) */
.btn{
  display:inline-block;
  margin-top:10px;
  background:var(--violet);
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  font-weight:900;
  text-decoration:none;
  border:0;
  cursor:pointer;
}
.btn:hover{ filter:brightness(1.05); }
.btn:active{ transform:translateY(1px); }
.btn.secondary{ background:var(--violet-dark); }

/* Callouts */
.callout{
  background:var(--violet-soft);
  border:1px solid rgba(124,58,237,.25);
  border-radius:12px;
  padding:14px;
  margin-top:12px;
}
.callout_grey{
  background:var(--fog-soft);
  border:1px solid rgba(124,58,237,.25);
  border-radius:12px;
  padding:14px;
  margin-top:12px;
}

/* About-page hero badge (kept exactly) */
.violet-badge{
  position:relative;
  width:52px;
  height:52px;
  margin-right:14px;
  flex:0 0 auto;
}
.violet-orb{
  position:absolute;
  inset:0;
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%, #c084fc, #7c3aed 65%, #5b21b6);
  box-shadow:
    0 0 0 2px rgba(124,58,237,.25),
    0 8px 20px rgba(124,58,237,.35);
}
.violet-face{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-size:26px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.35));
}
.violet-hero{ display:flex; align-items:flex-start; }
.violet-hero__content p{ margin:10px 0; }
.small{ font-size:13px; color:var(--muted); font-weight:700; }

/* -------------------------
   Violet Main Scanner Page (grid layout + pills + line highlights)
   (kept from your working block)
--------------------------*/
.page-title{max-width:1400px;margin:0 auto;padding:14px 14px 0}
.page-title h1{margin:0;font-size:22px;letter-spacing:.2px}
.page-title .sub{
  margin:6px 0 0;
  color:var(--muted);
  font-weight:800;
  background: rgba(124,58,237,.06);
  border:1px solid rgba(124,58,237,.12);
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  margin-bottom:6px;
}

.grid{display:grid;grid-template-columns:1.55fr 1fr;gap:14px;align-items:start}

textarea{
  width:100%;
  min-height:220px; /* Uniques/About default */
  resize:vertical;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size:14px;
  outline:none;
  background:#fff;
}
textarea:focus{
  border-color: rgba(255,122,24,.65);
  box-shadow: 0 0 0 4px rgba(255,122,24,.18);
}

/* Scanner page uses bigger textarea: keep support */
textarea.big, .big textarea{ min-height:320px; font-size:13px; }

.btnrow{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:10px}
.btn.orange{background:var(--orange);border-color:var(--orange);color:#fff}
.btn.orange:hover{filter:saturate(1.03)}
.btn.violet{background:var(--violet);border-color:var(--violet);color:#fff}
.btn.violet:hover{filter:saturate(1.05) brightness(1.02)}

.pillwrap{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.pill{
  display:inline-flex;align-items:center;gap:10px;
  border:1px solid rgba(124,58,237,.18);
  border-radius:999px;
  background:#fff;
  padding:7px 10px;
}
.pill .ch{
  background: linear-gradient(180deg, rgba(124,58,237,.20), rgba(124,58,237,.10));
  color: var(--violet);
  font-weight:900;
  padding:2px 8px;
  border-radius:999px;
  box-shadow:
    inset 0 0 0 1px rgba(124,58,237,.30),
    0 0 0 3px rgba(124,58,237,.08);
}
.pill .meta{color:var(--muted);font-weight:800;font-size:12px}

.mono{
  font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:13px;border:1px solid var(--line);
  border-radius:10px;padding:10px;background:#fff;
  overflow-wrap:anywhere
}

.linebox{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.linehdr{
  display:flex;justify-content:space-between;gap:10px;align-items:center;
  padding:10px 12px;background:#fff7f0;border-bottom:1px solid var(--line)
}
.linehdr .ln{font-weight:900}
.linehdr .hint{color:var(--muted);font-size:12px;font-weight:800}
.linetxt{
  padding:10px 12px;
  white-space:pre-wrap;
  word-break:break-word;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size:13px;
  line-height:1.45;
}

/* Violet highlight */
.spc{
  background: linear-gradient(180deg, rgba(124,58,237,.18), rgba(124,58,237,.10));
  color: var(--violet);
  font-weight:900;
  padding:0 4px;
  border-radius:7px;
  box-shadow:
    inset 0 0 0 1px rgba(124,58,237,.30),
    0 1px 0 rgba(255,255,255,.65);
}

.smallnote{color:var(--muted);font-weight:800;font-size:12px}

/* Violet strip helpers */
.violet-strip{
  border:1px solid rgba(124,58,237,.25);
  background: linear-gradient(90deg, rgba(124,58,237,.12), rgba(124,58,237,.06));
  border-radius:12px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.violet-strip .subtxt{ margin-left:auto; }
.violet-word{
  color:var(--violet);
  font-weight:900;
  text-shadow: 0 0 12px rgba(124,58,237,.18);
}

/* Meet Violet button */
.violet-about{
  margin-top:6px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:12px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed 60%, #5b21b6);
  border:none;
  font-weight:900;
  text-decoration:none;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  transition:.15s ease;
}
.violet-about,
.violet-about *{ color:#fff !important; }
.violet-about:hover{
  transform:translateY(-1px);
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}
.violet-about .sub{ font-size:12px; opacity:.92; font-weight:800; }

/* -------------------------
   Tools page: Collapsibles
--------------------------*/
details{
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
  margin:10px 0;
}
details[open]{ box-shadow:0 6px 18px rgba(17,24,39,.06); }
summary{
  cursor:pointer;
  list-style:none;
  font-weight:900;
  color:var(--violet-dark);
  display:flex;
  align-items:center;
  gap:10px;
}
summary::-webkit-details-marker{display:none}
.chev{
  width:10px;height:10px;
  border-right:3px solid var(--violet);
  border-bottom:3px solid var(--violet);
  transform:rotate(-45deg);
  transition:transform .15s ease;
  margin-left:auto;
}
details[open] .chev{ transform:rotate(45deg); }
.hr{ height:1px; background:var(--line); margin:14px 0; }

/* -------------------------
   Uniques page: Controls + Table + Congrats + Typography
--------------------------*/
.controls{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px;
  padding:12px;
  border-radius:12px;
  background:var(--violet-soft-2);
  border:1px solid rgba(124,58,237,.20);
  align-items:center;
}
.control-group{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
label{ font-weight:800; color:var(--ink); }
select{
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px 10px;
  background:#fff;
  font-weight:800;
}
select:focus{
  outline:none;
  border-color:rgba(124,58,237,.55);
  box-shadow:0 0 0 4px rgba(124,58,237,.12);
}
.chk{ display:flex; gap:10px; align-items:flex-start; }
.chk input{ transform:translateY(2px); }
.chk strong{ font-weight:900; }
.hint{ display:block; color:var(--muted); font-weight:700; font-size:12px; margin-top:2px; }

table{
  border-collapse:collapse;
  width:100%;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
}
th, td{
  border-bottom:1px solid var(--line);
  padding:10px 10px;
  text-align:left;
  vertical-align:top;
  font-size:14px;
}
th{
  background:rgba(124,58,237,.08);
  font-weight:900;
}
tr:last-child td{ border-bottom:0; }

.char-cell{ font-size:18px; font-weight:900; }
.bad-row{ background:var(--bad-soft); }
.good-row{ background:#fff; }

.codepill{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#f3f4f6;
  font-family:monospace;
  font-weight:400;
  font-size:14px;
}

.count-cell{ font-weight:900; font-size:14px; }
.desc-cell{ font-weight:400; font-size:14px; }
.friendly-cell{ font-weight:400; font-size:14px; font-style:italic; color:var(--muted); }

.congrats{
  margin-top:14px;
  padding:14px;
  border-radius:12px;
  background:var(--good-soft);
  border:1px solid rgba(22,163,74,.25);
}
.congrats h3{
  margin:0 0 6px 0;
  font-size:18px;
  color:var(--good);
}
.congrats p{ margin:0; color:var(--ink); font-weight:800; }

.meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin-top:10px;
}
.meta-row .pill{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:900;
}
.meta-row .pill b{ color:var(--violet-dark); }

/* --- Demon Violet Button --- */
.demon{
  font-size:50px;
  text-decoration:none;
}

.demon:hover{
}

.demon:active{
}

/* -------------------------
   Responsive + Print
--------------------------*/
@media (max-width: 980px){
  .grid{ grid-template-columns:1fr; }
  .btnrow{ justify-content:flex-start; }
}
@media (max-width: 560px){
  .wrap{ padding:12px 10px 24px; }
  .btn{ flex:1 1 auto; }
  textarea{ min-height:260px; }
  .linehdr .hint{ display:none; }
}
@media print{
  body{ background:#fff; }
  .wrap{ max-width:100%; padding:0; }
  .btnrow{ display:none !important; }
  .card,.callout,.linebox{ break-inside:avoid; box-shadow:none; }
  a{ color:#000; text-decoration:underline; }
}

/* =========================================================
   Clean / Normalize Panel (Violet)
   Append-only block – keeps existing header/nav styles intact
   ========================================================= */

.clean-panel{ padding:14px 14px 12px; }

.clean-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.clean-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.clean-grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px 12px;
}

.clean-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background: var(--violet-soft-2);
}

.clean-field select{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:800;
}

.clean-field .lbl{ font-weight:900; color:var(--ink); }
.clean-field .hint{ font-size:12.5px; color:var(--muted); }

.clean-check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background: var(--violet-soft-2);
}

.clean-check input{ margin-top:3px; transform:scale(1.05); }
.clean-check .lbl{ display:block; font-weight:900; color:var(--ink); line-height:1.1; }
.clean-check .hint{ display:block; margin-top:4px; font-size:12.5px; color:var(--muted); line-height:1.25; }

.clean-check.warn{
  background: rgba(255,122,24,.10);
  border-color: rgba(255,122,24,.25);
}

.clean-stats{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
}

.clean-stats .stat{
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  background:#fff;
}

.clean-stats .k{ font-size:12px; color:var(--muted); font-weight:800; }
.clean-stats .v{ font-size:22px; font-weight:950; color:var(--violet-dark); line-height:1.1; margin-top:2px; }
.clean-stats .t{ font-size:12px; color:var(--muted); font-weight:800; margin-top:2px; }

.cleaned-out{
  width:100%;
  margin-top:12px;
  min-height:180px;
  border-radius:14px;
  border:1px solid rgba(124,58,237,.25);
  background: rgba(124,58,237,.04);
  padding:12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:13px;
  line-height:1.4;
}

.cleaned-out:focus{
  outline:none;
  box-shadow: 0 0 0 4px rgba(124,58,237,.18);
  border-color: rgba(124,58,237,.45);
}

@media (max-width: 900px){
  .clean-top{ flex-direction:column; align-items:stretch; }
  .clean-actions{ justify-content:flex-start; }
  .clean-grid{ grid-template-columns: 1fr; }
  .clean-stats{ grid-template-columns: 1fr; }
}
