/* ============================================
   EnorOne — Tool Page Styles
============================================ */

.tool-page {
  min-height: calc(100vh - 64px);
  background: var(--bg);
  padding: 40px 24px 80px;
}

.tool-page-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span:last-child { color: var(--text); font-weight: 500; }

/* LAYOUT */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 800px) {
  .tool-layout { grid-template-columns: 1fr; }
}

/* TOOL HEADER */
.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.tool-header-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-l);
  border-radius: 14px;
  flex-shrink: 0;
}
.tool-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: -.02em;
}
.tool-header p {
  color: var(--muted);
  font-size: .875rem;
}

/* CALC CARD */
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

/* TABS */
.tab-group {
  display: flex;
  background: var(--bg);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 24px;
}
.tab {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.tab.active {
  background: var(--surface);
  color: var(--blue);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* FORM */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .15s;
}
.input-field:focus { border-color: var(--blue); background: var(--surface); }
.input-field::placeholder { color: #CBD5E1; }

.rate-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rate-btn {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  cursor: pointer;
  transition: all .15s;
}
.rate-btn:hover { border-color: var(--blue); color: var(--blue); }
.rate-btn.active { border-color: var(--blue); background: var(--blue-l); color: var(--blue); }

.calc-btn {
  width: 100%;
  padding: 14px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  margin-bottom: 20px;
}
.calc-btn:hover { background: var(--blue-h); transform: translateY(-1px); }
.calc-btn:active { transform: translateY(0); }

/* RESULTS */
.result-block {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg);
  font-size: .9rem;
}
.result-row span { color: var(--muted); }
.result-row strong { font-size: 1rem; font-weight: 700; color: var(--text); }
.result-row--total strong { font-size: 1.2rem; color: var(--blue); }
.highlight-blue { color: var(--green) !important; }

.copy-btn {
  width: 100%;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  margin-top: 16px;
  transition: background .15s, border-color .15s;
}
.copy-btn:hover { background: var(--blue-l); border-color: var(--blue); color: var(--blue); }

/* SIDEBAR */
.tool-sidebar { display: flex; flex-direction: column; gap: 16px; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.info-card h3 { font-size: .85rem; font-weight: 700; margin-bottom: 10px; }
.info-card p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.info-card p:last-child { margin-bottom: 0; }

.info-list { display: flex; flex-direction: column; gap: 6px; }
.info-list li {
  font-size: .82rem;
  color: var(--muted);
  padding-left: 8px;
  border-left: 2px solid var(--border);
}
.info-list li strong { color: var(--text); }

/* FONT GENERATOR SPECIFIC */
.font-output {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 4px;
}

.font-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .15s;
}
.font-item:hover { border-color: var(--blue); }
.font-item-text { font-size: 1.1rem; flex: 1; word-break: break-all; }
.font-item-copy {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  flex-shrink: 0;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.font-item-copy:hover { background: var(--blue-l); color: var(--blue); border-color: var(--blue); }

/* Word counter */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.stat-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.stat-box strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--blue); }
.stat-box span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* Password generator */
.password-display {
  background: var(--navy);
  color: #7DD3FC;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 20px;
  border-radius: 8px;
  word-break: break-all;
  margin-bottom: 12px;
  letter-spacing: .04em;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .88rem;
  color: var(--text);
}
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }

.range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.range-row input[type=range] {
  flex: 1;
  accent-color: var(--blue);
}
.range-val {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue);
}

/* ======= TOOL CONTENT SECTION (about / how-to / FAQ) ======= */
.tool-content {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 760px;
}
.tool-content h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}
.tool-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}
.tool-content p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.75;
  margin-bottom: 14px;
}
.tool-content ol,
.tool-content ul {
  padding-left: 22px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.85;
  margin-bottom: 16px;
}
.tool-content li strong { color: var(--text); }
.faq-item {
  border-bottom: 1px solid var(--bg);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
  margin-bottom: 6px;
}
.faq-q::before {
  content: "Q. ";
  color: var(--blue);
}
.faq-a {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}
