/* PDF to PowerPoint - hub theme, mobile-first */

:root {
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #1a2333;
  --muted: #5b6b85;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --border: #e2e8f2;
  --success: #15803d;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(20, 40, 90, 0.07);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

.site-header { background: linear-gradient(135deg, #1d4ed8, #7c3aed); color: #fff; padding: 40px 0 34px; text-align: center; }
.site-header h1 { margin: 6px 0 4px; font-size: 2rem; }
.tagline { opacity: .93; margin: 0 0 6px; }
.crumb { color: #dbeafe; text-decoration: none; font-size: .9rem; }
.crumb:hover { text-decoration: underline; }
.badges { margin-top: 12px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.badges span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); padding: 5px 13px; border-radius: 999px; font-size: .82rem; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin: 24px 0; }
.card h2 { margin: 0 0 12px; }

.dropzone { border: 2px dashed #93c5fd; border-radius: var(--radius); padding: 48px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: #eff6ff; }
.dz-icon { font-size: 3rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.options { margin-top: 20px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-bottom: 16px; }
.opt-row label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
select, input[type="range"] { font-size: 1rem; }
select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
#qWrap { flex-direction: row; align-items: center; }
#qVal { font-weight: 400; color: var(--muted); min-width: 44px; }

.btn { border: none; border-radius: 10px; padding: 11px 22px; font-size: .95rem; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.primary:disabled { background: #93c5fd; cursor: not-allowed; }
.btn.ghost { background: #eef2ff; color: var(--primary-dark); }

.status { min-height: 1.4em; font-size: .92rem; color: var(--muted); }
.progress { height: 10px; background: #eef2ff; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress #bar { height: 100%; width: 0; background: linear-gradient(90deg, #2563eb, #7c3aed); transition: width .2s; }

.results-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.results-head h2 { margin: 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 16px; }
.thumb { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.thumb img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: contain; background: #f1f5f9; }
.thumb .meta { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: .82rem; }
.thumb a { color: var(--primary-dark); font-weight: 600; text-decoration: none; }
.thumb a:hover { text-decoration: underline; }

.faq details { border-top: 1px solid var(--border); padding: 12px 0; }
.faq details:first-of-type { border-top: none; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--muted); margin: 8px 0 0; }

footer { text-align: center; padding: 24px 0 40px; color: #94a3b8; font-size: .85rem; }
@media (max-width: 600px) { .card { padding: 20px 16px; } .site-header h1 { font-size: 1.6rem; } }
