/* ============================================================
   theme-colorpickee.css
   Re-skins imgxcolor to match colorpickee.com's layout, palette
   and typography. Loaded AFTER style.css + layout-patch.css (and
   after this page's own inline <style> block), so it wins the
   cascade without needing to touch the shared header/footer JS
   or the base stylesheet used by the rest of the site.
   Roll this file out to other pages the same way once approved.
   ============================================================ */

/* ---- Fonts: Sora (display) / Inter (body) / JetBrains Mono (mono) ---- */

/* ---- Design tokens - override every theme state so the look is
   consistent regardless of the saved dark/light toggle ---- */
:root,
:root[data-theme="dark"],
:root[data-theme="light"],
[data-theme="dark"],
[data-theme="light"] {
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Sora', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  --bg: #FFFFFF;
  --bg2: #FFFFFF;
  --bg3: #F7F7F8;
  --border: #E6E6E9;
  --border-hover: #111111;
  --text: #111111;
  --text-muted: #5B5B63;
  --text-dim: #96959E;

  --accent: #FF6A1A;      /* brand orange */
  --accent2: #FF8A3D;     /* lighter orange */
  --accent3: #0EA5A0;     /* teal */
  --accent-glow: #FFE8D9;

  --success: #0EA5A0;
  --warning: #D9502F;

  --radius: 11px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(27,23,38,.05);
  --shadow-lift: 0 20px 44px -16px rgba(27,23,38,.24);
  --header-bg: rgba(255,255,255,.92);
  --checker-a: #F8F6FC;
  --checker-b: #FFFFFF;
  --noise-opacity: 0;
}

/* Kill the dark-mode grain texture - colorpickee's canvas is flat white */
body::before { content: none; display: none; }

body { font-family: var(--font-sans); }

h1, h2, h3,
.page-header h1,
.logo,
.panel-title,
.upload-label,
.tool-card h3,
.hero h1 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* ============ HEADER / NAV ============ */
header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.logo { font-weight: 700; color: var(--text); }
.logo span { color: var(--accent); }
.logo-icon { border-radius: 8px; }

nav a { font-family: var(--font-sans); font-weight: 500; color: var(--text-muted); }
nav a:hover { background: none; color: var(--text); }
nav a.active { background: none; color: var(--accent); font-weight: 600; }

.nav-badge { background: var(--accent); font-family: var(--font-mono); }

.theme-toggle { display: none; } /* colorpickee has no dark mode - keep this page consistent */

/* ============ BREADCRUMB ============ */
.breadcrumb { font-family: var(--font-mono); color: var(--text-dim); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ============ PAGE HEADER ============ */
.page-wrap { position: relative; }
.page-header {
  display: block !important;
  margin-bottom: 1.25rem !important;
}
.page-header h1 {
  display: block;
  font-size: 1.15rem !important;
  white-space: normal !important;
  color: var(--text);
  margin-bottom: 4px;
}
.page-header p {
  display: block;
  font-family: var(--font-sans);
  font-size: .8rem !important;
  color: var(--text-muted);
  max-width: 560px;
}

/* ============ BUTTONS ============ */
.btn {
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { box-shadow: none; }
.btn-primary:hover:not(:disabled) {
  background: #E85A0E;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -14px rgba(255,106,26,.5);
}
.btn-secondary { background: var(--bg3); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.btn-ghost:hover { color: var(--text); background: var(--bg3); }

/* ============ UPLOAD ZONE / PREVIEW ============ */
.upload-zone {
  background: var(--bg3);
  border: 1.6px dashed var(--border);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.upload-icon {
  background: #fff;
  border: 1px solid var(--border);
}
.upload-zone:hover .upload-icon { border-color: var(--accent); background: var(--accent-glow); }
.upload-sub { font-family: var(--font-mono); }

.upload-hint { color: var(--text-dim); }
/* The wrapping column (.converter-layout > div:first-child) is already a
   flex column. Only one of upload-zone / preview-area is ever visible at
   a time (the other is display:none), so giving both order:1 and the
   hint order:2 makes the hint always land right below whichever one is
   currently showing - no more jumping between "above" and "below". */
.upload-zone   { order: 1; }
.preview-area  { order: 1; }
.upload-hint   { order: 2; }

.converter-layout { margin-bottom: 2.5rem; }

/* "← New image" reads as plain, disconnected text without a boundary - give it the same outlined-pill treatment as other secondary buttons */
#reset-btn.btn-ghost {
  border: 1px solid var(--border);
  padding: .45rem .9rem;
  margin-bottom: .1rem;
}
#reset-btn.btn-ghost:hover { border-color: var(--text); }

.preview-comparison, .panel {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.preview-meta { background: var(--bg3); }

/* ============ SIDEBAR / PANELS ============ */
.panel-title { color: var(--text-dim); }
label.field-label { color: var(--text-muted); font-family: var(--font-sans); }
select {
  font-family: var(--font-sans);
  background: var(--bg3);
  border: 1px solid var(--border);
}
select:focus, select:hover { border-color: var(--accent); }

.info-box { background: var(--bg3); border: 1px solid var(--border); }
.info-box strong { color: var(--text); }
.divider { background: var(--border); }

/* ============ STATUS / PROGRESS ============ */
.status.success { background: var(--accent3, #0EA5A0); background: rgba(14,165,160,.1); color: var(--success); border-color: rgba(14,165,160,.25); }
.status.error   { background: rgba(217,80,47,.1); color: var(--warning); border-color: rgba(217,80,47,.25); }
.status.loading { background: var(--accent-glow); color: var(--accent); border-color: rgba(255,106,26,.2); }
.progress-fill  { background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* ============ SEO SECTION / FAQ ============ */
.seo-section h2,
.seo-faq h2 {
  font-family: var(--font-display);
  color: var(--text);
}
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.faq-item summary { font-family: var(--font-sans); color: var(--text); }
.faq-item summary::after { color: var(--text-dim); }

/* ============ EYEBROW / SECTION HEAD ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}
.section-head { max-width: 640px; margin: 0 auto 24px; text-align: center; }
.section-head h2 { font-size: clamp(20px, 2.6vw, 26px); margin: 14px 0 10px; color: var(--text); }
.section-head p { color: var(--text-muted); font-size: 14px; }

/* ============ HOW IT WORKS / STEPS ============ */
.steps-grid { gap: 1rem; }
.step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.4rem;
  position: relative;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent) !important;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .85rem;
}
.step h3 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--text);
}
.step p { font-size: .82rem; color: var(--text-muted); line-height: 1.65; }

/* ============ RELATED TOOLS ============ */
.related {
  margin: 0 0 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--bg2);
  transition: border-color .15s ease, transform .15s ease;
  text-decoration: none;
}
.related-card:hover { border-color: var(--text); transform: translateY(-2px); }
.related-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  color: var(--text);
}
.related-icon svg { width: 16px; height: 16px; }
.related-card span:last-child { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--text); }

@media (max-width: 860px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
footer { border-top: 1px solid var(--border); }
.footer-brand p, .footer-col ul a { font-family: var(--font-sans); }
.footer-col h4 { font-family: var(--font-mono); font-weight: 600; letter-spacing: .06em; color: var(--text-dim); }
.footer-col ul a { color: var(--text-muted); }
.footer-col ul a:hover { color: var(--text); }
.footer-bottom { font-family: var(--font-mono); color: var(--text-dim); border-top: 1px solid var(--border); }

