/* ================================================
   Dummy Text Generator — style.css
   Digital BigHit Tools · digitalbighit.com
   ================================================ */

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

:root {
  --bg: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --border-focus: #9ca3af;
  --text: #111827;
  --muted: #6b7280;
  --muted2: #9ca3af;
  --surface: #f3f4f6;
  --accent: #667eea;
  --accent2: #764ba2;
  --accent-bg: #ede9fe;
  --accent-border: #c4b5fd;
  --accent-text: #5b21b6;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #6ee7b7;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5,
nav, .nav-logo, .hero-badge,
.tab-btn, .btn-pri, .btn-sec,
.section-label, .stat-num,
.page-badge, .filter-pill {
  font-family: 'Poppins', sans-serif;
}

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
}
.nav-logo span {
  background: #111827;
  color: white;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link { font-size: 14px; color: var(--muted); text-decoration: none; font-family: 'Inter', sans-serif; }
.nav-link:hover { color: var(--text); }
.coffee-btn-nav {
  display: flex; align-items: center; gap: 6px;
  background: #FFDD00; color: #000;
  font-size: 13px; font-weight: 700;
  padding: 7px 14px; border-radius: 8px;
  text-decoration: none; font-family: 'Poppins', sans-serif;
  transition: transform 0.15s, box-shadow 0.15s;
}
.coffee-btn-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

/* ── HERO ── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 44px;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); color: #374151;
  font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.04em;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin-bottom: 14px;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
}
.hero h1 span {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 28px;
  font-family: 'Inter', sans-serif;
}
.hero-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 10px;
}
.hero-pill {
  background: var(--accent-bg);
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
  font-family: 'Poppins', sans-serif;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 24px 0;
  font-size: 13px;
  color: var(--muted2);
  font-family: 'Inter', sans-serif;
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--muted2); }

/* ── MAIN CONTAINER ── */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

/* ── TAB BAR ── */
.tab-bar {
  display: flex; gap: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.tab-btn {
  flex: 1; background: none; border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.tab-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.tab-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 2px 10px rgba(102,126,234,0.35);
}
.tab-btn:not(.active):hover { background: var(--accent-bg); color: var(--accent-text); }
.panel { display: none; }
.panel.active { display: block; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.card-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; font-family: 'Poppins', sans-serif; }
.card-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; font-family: 'Inter', sans-serif; line-height: 1.6; }

/* ── FORM CONTROLS ── */
.ctrl-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.ctrl { display: flex; flex-direction: column; gap: 5px; }
.ctrl label, .field-group label {
  font-size: 11px; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.05em; font-family: 'Poppins', sans-serif;
}
.ctrl select,
.ctrl input[type="number"],
.field-input {
  height: 40px; padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white); color: var(--text);
  font-size: 13px; font-family: 'Inter', sans-serif;
  width: 100%; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none; -webkit-appearance: none;
}
.ctrl select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.ctrl select:focus, .ctrl input:focus, .field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}
.field-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field-hint { font-size: 11px; color: var(--muted2); margin-top: 2px; line-height: 1.5; font-family: 'Inter', sans-serif; }
textarea.field-input {
  height: auto; min-height: 76px;
  padding: 10px 12px; resize: vertical; line-height: 1.6;
}
input[type="text"].field-input { height: 40px; }
::placeholder { color: var(--muted2); }

/* ── TOGGLES ── */
.opts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.toggle {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text);
  cursor: pointer; user-select: none;
  font-family: 'Inter', sans-serif;
}
.toggle input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* ── BUTTONS ── */
.btn-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.btn-pri {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; border: none;
  border-radius: var(--radius);
  padding: 0 22px; height: 40px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 10px rgba(102,126,234,0.3);
  transition: opacity 0.18s, transform 0.12s;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn-pri:hover { opacity: 0.88; }
.btn-pri:active { transform: scale(0.97); }
.btn-pri svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-sec {
  background: var(--white); color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px; height: 40px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: 'Poppins', sans-serif;
  transition: all 0.18s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-sec:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-sec.ok { color: var(--success); border-color: var(--success-border); background: var(--success-bg); }
.btn-sec svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ── STATS PILLS ── */
.stats-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.stat-pill {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 14px;
  font-size: 12px; color: var(--muted); box-shadow: var(--shadow-sm);
  font-family: 'Inter', sans-serif;
}
.stat-pill span { font-weight: 700; color: var(--text); }

/* ── OUTPUT BOX ── */
.outbox {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px; min-height: 180px;
  font-size: 14px; line-height: 1.9; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
  font-family: 'Inter', sans-serif; box-shadow: var(--shadow-sm);
}
.outbox.placeholder { color: var(--muted2); font-style: italic; }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 11px; font-weight: 700; color: var(--muted2);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 10px; font-family: 'Poppins', sans-serif;
}

/* ── PAGES GRID ── */
.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px; margin-bottom: 18px;
}
.page-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; cursor: pointer;
  background: var(--white); transition: all 0.18s;
  box-shadow: var(--shadow-sm);
}
.page-card:hover:not(.sel) { border-color: var(--accent-border); background: var(--accent-bg); }
.page-card.sel { border-color: var(--accent); background: var(--accent-bg); }
.pc-check {
  width: 14px; height: 14px; border-radius: 4px;
  border: 1.5px solid var(--border); margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
}
.page-card.sel .pc-check {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: var(--accent);
}
.page-card.sel .pc-check::after {
  content: ''; width: 7px; height: 5px;
  border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px); display: block;
}
.pc-name { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.3; font-family: 'Poppins', sans-serif; }
.page-card.sel .pc-name { color: var(--accent-text); }
.pc-desc { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.4; font-family: 'Inter', sans-serif; }

/* ── PAGE OUTPUT ── */
.page-output { margin-bottom: 24px; animation: fadeUp 0.25s ease both; }
@keyframes fadeUp { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: none; } }
.page-output-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.page-output-header h3 { font-size: 14px; font-weight: 700; color: var(--text); font-family: 'Poppins', sans-serif; }
.page-badge {
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-bg); color: var(--accent-text);
  font-weight: 600; border: 1px solid var(--accent-border);
  font-family: 'Poppins', sans-serif;
}
.section-block { margin-bottom: 10px; }
.section-block-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px;
}
.section-block-title {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  font-family: 'Poppins', sans-serif;
}
.section-block-content {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  font-size: 13px; line-height: 1.8; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
  font-family: 'Inter', sans-serif;
}

/* ── COPY SMALL ── */
.copy-small {
  background: transparent; border: 1px solid var(--border);
  border-radius: 6px; padding: 0 10px; height: 26px;
  font-size: 11px; font-weight: 500; color: var(--muted);
  cursor: pointer; font-family: 'Poppins', sans-serif;
  transition: all 0.15s; white-space: nowrap;
}
.copy-small:hover { border-color: var(--accent); color: var(--accent-text); }
.copy-small.ok { color: var(--success); border-color: var(--success-border); background: var(--success-bg); }

/* ── INFO / DIVIDER ── */
.info-box {
  background: var(--accent-bg); border: 1px solid var(--accent-border);
  border-radius: var(--radius); padding: 10px 16px;
  font-size: 12px; color: var(--accent-text);
  margin-bottom: 16px; font-weight: 600;
  font-family: 'Poppins', sans-serif;
}
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── FAQ / HOW TO SECTION ── */
.how-section {
  max-width: 920px; margin: 0 auto 60px; padding: 0 24px;
}
.how-section h2 {
  font-size: 22px; font-weight: 700; color: var(--text);
  font-family: 'Poppins', sans-serif; margin-bottom: 20px;
}
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.faq-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.faq-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; font-family: 'Poppins', sans-serif; }
.faq-card p { font-size: 13px; color: var(--muted); line-height: 1.65; font-family: 'Inter', sans-serif; }

/* ── FOOTER ── */
footer { background: #111827; padding: 40px 24px; text-align: center; }
.footer-logo { font-size: 20px; font-weight: 800; color: white; font-family: 'Poppins', sans-serif; margin-bottom: 8px; }
.footer-sub { font-size: 13px; color: #6b7280; font-family: 'Inter', sans-serif; margin-bottom: 20px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: #9ca3af; text-decoration: none; font-family: 'Inter', sans-serif; }
.footer-links a:hover { color: white; }
.footer-copy { font-size: 12px; color: #4b5563; font-family: 'Inter', sans-serif; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 0 16px; }
  .coffee-btn-nav { display: none; }
  .hero { padding: 36px 16px 28px; }
  .hero h1 { font-size: 28px; letter-spacing: -0.5px; }
  .container { padding: 20px 16px 48px; }
  .tab-btn { padding: 9px 10px; font-size: 12px; }
  .btn-row { gap: 6px; }
  .btn-pri, .btn-sec { font-size: 12px; padding: 0 14px; height: 38px; }
  .how-section { padding: 0 16px; }
}
