/* style.css - shared styling for kepubify tool pages.
   Dark, dimensional, premium. Blue primary + gold accent on the trust strip. */

:root {
  --bg:        #0c0e13;
  --bg2:       #10131b;
  --panel:     #161b25;
  --panel2:    #1c2230;
  --border:    #28303f;
  --border2:   #323c4e;
  --ink:       #eef1f7;
  --muted:     #98a2b4;
  --faint:     #5d6678;
  --accent:    #5b8dff;
  --accent2:   #84a8ff;
  --accent-dim:rgba(91,141,255,.14);
  --gold:      #e8b15a;
  --gold2:     #f2c777;
  --gold-dim:  rgba(232,177,90,.12);
  --ok:        #45ca78;
  --err:       #f3675f;
  --radius:    18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 50% -15%, rgba(91,141,255,.12), transparent 62%),
    radial-gradient(800px 500px at 85% 8%, rgba(232,177,90,.05), transparent 55%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- header / nav ---- */
.site-head {
  max-width: 780px; margin: 0 auto;
  padding: 22px 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 1px;
  font-weight: 800; font-size: 1.4rem; letter-spacing: -.025em;
  text-decoration: none; color: var(--ink);
}
.brand .k { color: var(--accent2); }
.brand .dot { color: var(--gold); font-weight: 800; }
nav.top { display: flex; gap: 6px; }
nav.top a {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 8px 14px; border-radius: 10px; transition: background .15s, color .15s;
}
nav.top a:hover { color: var(--ink); background: var(--panel); }
nav.top a.active {
  color: var(--accent2);
  background: var(--accent-dim);
  box-shadow: inset 0 0 0 1px rgba(91,141,255,.22);
}

/* ---- main ---- */
.wrap { max-width: 780px; margin: 0 auto; padding: 44px 20px 64px; }

h1 {
  font-size: 2.2rem; line-height: 1.12; margin: 0 0 12px;
  letter-spacing: -.03em; font-weight: 800;
  text-wrap: balance;   /* avoid orphan words on wrap */
}
h1 .arrow {
  color: var(--accent); font-weight: 400;
  text-shadow: 0 0 18px rgba(91,141,255,.5);
}
.sub { color: var(--muted); margin: 0 0 34px; font-size: 1.07rem; max-width: 58ch; }

/* ---- drop zone (the hero) ---- */
.drop {
  position: relative;
  border: 1.5px dashed var(--border2);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(91,141,255,.08), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--bg2));
  padding: 58px 28px; text-align: center; cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
  box-shadow: 0 12px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.03);
}
.drop:hover { border-color: #3c4a66; box-shadow: 0 16px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04); }
.drop[data-drag="1"] {
  border-color: var(--accent);
  background: radial-gradient(120% 140% at 50% 0%, rgba(91,141,255,.18), transparent 60%), linear-gradient(180deg, #1a2235, #131a28);
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(91,141,255,.18), inset 0 1px 0 rgba(255,255,255,.05);
}
.drop .icon {
  width: 58px; height: 58px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(91,141,255,.30), rgba(91,141,255,.10));
  box-shadow: 0 6px 20px rgba(91,141,255,.25), inset 0 1px 0 rgba(255,255,255,.18);
  color: #cfe0ff;
}
.drop .icon svg { width: 28px; height: 28px; filter: drop-shadow(0 2px 6px rgba(91,141,255,.4)); }
.drop .big { font-size: 1.16rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.drop .big strong { color: var(--accent2); }
.drop .hint { color: var(--muted); font-size: .92rem; margin-top: 9px; }
.drop code {
  background: var(--panel2); border: 1px solid var(--border);
  padding: 1px 7px; border-radius: 6px; font-size: .86em; color: var(--ink);
}

/* ---- status ---- */
.status { margin: 22px 2px; min-height: 1.5em; font-size: .96rem; font-weight: 500; }
.status[data-kind="ok"]    { color: var(--ok); }
.status[data-kind="error"] { color: var(--err); }
.status[data-kind="busy"]  { color: var(--accent2); }

/* ---- privacy strip (gold accent) ---- */
.privacy {
  margin-top: 30px; padding: 17px 19px;
  background:
    linear-gradient(180deg, var(--gold-dim), transparent),
    var(--panel);
  border: 1px solid rgba(232,177,90,.22);
  border-radius: 14px; color: var(--muted); font-size: .93rem;
  display: flex; gap: 13px; align-items: flex-start;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.privacy .lock {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; margin-top: 1px;
  background: linear-gradient(160deg, rgba(232,177,90,.32), rgba(232,177,90,.12));
  box-shadow: 0 4px 14px rgba(232,177,90,.22), inset 0 1px 0 rgba(255,255,255,.2);
  color: #ffe6b0;
}
.privacy .lock svg { width: 17px; height: 17px; }
.privacy b { color: var(--gold2); font-weight: 700; }

/* ---- feature row ---- */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 30px; }
.features .f {
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--border); border-radius: 14px;
  padding: 17px; font-size: .9rem; color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.features .f b { display: block; color: var(--ink); font-size: .97rem; margin-bottom: 4px; font-weight: 700; }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---- SEO content ---- */
.seo { margin-top: 54px; color: var(--muted); }
.seo h2 { color: var(--ink); font-size: 1.28rem; margin: 30px 0 8px; letter-spacing: -.015em; }
.seo p { margin: 0 0 14px; }

/* ---- article / guide pages ---- */
.article { max-width: 720px; }
.article h1 { font-size: 1.9rem; margin-bottom: 6px; }
.article .lead { color: var(--muted); font-size: 1.08rem; margin: 0 0 28px; }
.article h2 { color: var(--ink); font-size: 1.35rem; margin: 34px 0 10px; letter-spacing: -.015em; }
.article h3 { color: var(--ink); font-size: 1.08rem; margin: 22px 0 6px; }
.article p { margin: 0 0 15px; color: #c4ccda; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; color: #c4ccda; }
.article li { margin: 6px 0; }
.article a { color: var(--accent2); text-decoration: none; }
.article a:hover { text-decoration: underline; }
.article code {
  background: var(--panel2); border: 1px solid var(--border);
  padding: 1px 7px; border-radius: 6px; font-size: .88em; color: var(--ink);
}
.article .cta {
  display: inline-block; margin: 6px 0 22px; padding: 11px 20px;
  background: linear-gradient(160deg, var(--accent), #4a7ce8); color: #fff;
  border-radius: 11px; font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 20px rgba(91,141,255,.3);
}
.article .cta:hover { text-decoration: none; filter: brightness(1.07); }
.article .note {
  background: var(--panel); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: 10px;
  padding: 13px 16px; margin: 18px 0; color: var(--muted); font-size: .94rem;
}

/* ---- footer ---- */
.site-foot {
  max-width: 780px; margin: 44px auto 0; padding: 30px 20px 52px;
  border-top: 1px solid var(--border);
  color: var(--faint); font-size: .86rem;
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
}
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--accent2); }

input[type=file] { display: none; }

/* ---- ad slots ----
   Reserved containers for AdSense units. The real <ins class="adsbygoogle">
   snippet goes inside each .ad-slot once the account is approved. Until then
   they collapse to nothing (no empty boxes shown to users). */
.ad-slot {
  margin: 28px auto;
  text-align: center;
  min-height: 0;            /* no reserved gap while empty */
  overflow: hidden;
}
.ad-slot:empty { display: none; }   /* show nothing until an ad fills it */
.ad-slot ins { display: block; }

