/* Unwatermarker.io — styles */
:root {
  --bg: #0f1420;
  --surface: #1a2132;
  --surface-2: #222b40;
  --text: #e8ecf4;
  --muted: #9aa5b8;
  --accent: #4f9cff;
  --accent-2: #8b5cf6;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --border: #2d3a54;
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.site-header {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
}

.site-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.site-header .dot { color: var(--accent); }

.tagline {
  color: var(--muted);
  margin-top: 0.4rem;
  font-size: 1rem;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

.ad-slot {
  max-width: 900px;
  margin: 1.25rem auto;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  overflow: hidden;
}
.ad-slot { display: block; text-align: center; padding-top: 0.6rem; min-height: 150px; }
.ad-slot > span { display: block; margin-bottom: 0.5rem; }

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.mode-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tab {
  flex: 1;
  padding: 0.7rem 1rem;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
}

.pane label { display: block; margin-bottom: 0.4rem; font-weight: 600; }

textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  resize: vertical;
  margin-bottom: 0.9rem;
}

textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }

.controls-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
  align-items: center;
}

.controls-row label { font-weight: 500; color: var(--muted); font-size: 0.9rem; }
.controls-row select, .controls-row input {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  margin-left: 0.4rem;
}
.controls-row input[type="number"] { width: 90px; }

.button-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }

button {
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
button.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79,156,255,0.35); }

button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
button.ghost:hover { color: var(--text); border-color: var(--accent); }

.results { margin-top: 1.25rem; }

.score-wrap {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.score-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.5px; }

.score-bar {
  height: 14px;
  background: var(--bg);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
#score-fill {
  height: 100%;
  width: 0%;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--good), var(--warn), var(--bad));
  transition: width 0.6s ease;
}
.score-value { font-size: 1.6rem; font-weight: 800; }

.scan-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.6rem;
}

.detail-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
}
.detail-item strong { color: var(--accent); }

.footnote { font-size: 0.78rem; color: var(--muted); margin-top: 0.75rem; }

.how-it-works {
  margin-top: 1.5rem;
  background: var(--surface-2);
  border-left: 3px solid var(--accent-2);
  border-radius: 0 8px 8px 0;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.how-it-works h3 { color: var(--text); margin-bottom: 0.4rem; font-size: 1rem; }
.how-it-works h2 { color: var(--text); margin-bottom: 0.4rem; font-size: 1.1rem; }
.how-it-works em { color: var(--text); }
.privacy-note { color: var(--muted); font-size: 0.86rem; margin: 0.6rem 0 1rem; }
.status { min-height: 1.6em; margin-top: 0.8rem; font-size: 0.9rem; }
.status.error { color: var(--bad); }
button:disabled { cursor: wait; opacity: 0.6; }
button:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.membership { margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: 12px; }
.membership p { color: var(--muted); margin: 0.6rem 0 1rem; }
.membership .membership-price { color: var(--text); font-weight: 700; }
.membership input[type="email"] { min-width: 220px; }
a { color: var(--accent); text-underline-offset: 3px; }
.guide { max-width: 740px; margin: 0 auto; }
.guide h1 { font-size: clamp(1.6rem,4vw,2.3rem); line-height: 1.25; margin-bottom: 1.2rem; }
.guide h2 { font-size: 1.3rem; margin: 1.7rem 0 0.7rem; }
.guide p { margin-bottom: 1rem; }
.example { background: var(--surface); border-left: 3px solid var(--accent); padding: 1rem; margin: 1rem 0; }
.example h3 { font-size: 1rem; margin-bottom: 0.4rem; }

#clean-output { margin-bottom: 0.8rem; }

.stats-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.stat-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.stat-chip strong { color: var(--good); }

.faq { margin-top: 2.5rem; }
.faq h2 { margin-bottom: 1rem; font-size: 1.4rem; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.7rem;
}
details summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 0.6rem; color: var(--muted); font-size: 0.92rem; }
details a { color: var(--accent); }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
}

.hidden { display: none !important; }

@media (max-width: 600px) {
  .site-header h1 { font-size: 1.6rem; }
  .tool-card { padding: 1rem; }
  .tab { font-size: 0.85rem; padding: 0.6rem 0.5rem; }
}
