/* mPwdGen — deep green theme, qrcraft-style layout */
:root {
  --bg: #ffffff;
  --text: #14261b;
  --muted: #5b6b60;
  --primary: #032e15;
  --primary-dark: #021f0e;
  --accent: #0f766e;
  --accent-light: #7bf1a8;
  --border: #d9e5dd;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --max-width: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: #f7fbf8; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 1.25rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.logo span { color: var(--accent); }
.site-nav a { margin-left: 18px; color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }

/* Hero */
.hero { background: linear-gradient(180deg, #e6f7ec 0%, #ffffff 100%); padding: 56px 0 40px; text-align: center; }
.hero h1 { font-size: 2.2rem; margin: 0 0 12px; color: var(--primary); }
.hero-sub { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* SEO paragraph */
.seo-p { color: #3d4a42; max-width: 820px; line-height: 1.75; margin: 0 0 32px; }

/* Tools grid */
.tools-section { padding: 40px 0 64px; }
.tools-section h2 { margin-bottom: 20px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tool-card {
  display: block; padding: 20px; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-card .tool-icon { font-size: 1.6rem; }
.tool-card h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Tool page */
.tool-page { padding: 24px 0 64px; max-width: 760px; }
.breadcrumb { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.tool-page h1 { font-size: 1.9rem; margin: 0 0 4px; color: var(--primary); }
.tool-subtitle { color: var(--muted); margin: 0 0 24px; }

.tool-widget {
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin-bottom: 32px; background: #f7fbf8;
}
.tool-inputs label { display: block; font-weight: 600; margin: 12px 0 6px; font-size: 0.95rem; }
.tool-inputs input[type=text], .tool-inputs input[type=number], .tool-inputs textarea, .tool-inputs select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 1rem; font-family: inherit;
}
.tool-inputs input:focus, .tool-inputs textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 10px 0; }
.row label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; }
.pw-output {
  width: 100%; padding: 12px 14px; font-family: ui-monospace, Consolas, monospace;
  font-size: 1.15rem; letter-spacing: 1px; background: #032e15; color: #7bf1a8;
  border-radius: 8px; border: none; margin: 8px 0;
}
.strength-bar { height: 6px; background: #d9e5dd; border-radius: 3px; overflow: hidden; margin: 8px 0 4px; }
.strength-fill { height: 100%; background: #ef4444; transition: width 0.2s, background 0.2s; }
.strength-label { font-size: 0.85rem; color: var(--muted); }

.btn {
  display: inline-block; padding: 10px 22px; border: none; border-radius: 8px;
  font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0d6560; }
.btn-ghost { background: #fff; color: var(--primary); border: 1px solid var(--border); }

.how-to, .faq { margin-bottom: 32px; }
.how-to h2, .faq h2 { font-size: 1.3rem; color: var(--primary); }
details { border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin-bottom: 8px; background: #fff; }
summary { cursor: pointer; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #f7fbf8; padding: 24px 0; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.9rem; }
.footer-inner nav a { color: var(--muted); text-decoration: none; margin-left: 14px; }
.footer-inner nav a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 1.7rem; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
