/**
 * BeeBot Tools — Shared Stylesheet
 *
 * Dark hacker terminal aesthetic used across every tool page.
 * Colour tokens:
 *   --green:  #00ff41  (primary text, accents)
 *   --amber:  #ffaa00  (labels, secondary accents)
 *   --bg:     #0a0a0a  (page background)
 *   --panel:  #111111  (input / output panels)
 *   --border: #222222  (default borders)
 *   --muted:  #555555  (subdued text)
 *   --error:  #ff4444  (error messages)
 */

/* ---- Fonts ---- */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-700.woff2') format('woff2');
}

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

/* ---- Base ---- */
body {
  background: #0a0a0a;
  color: #00ff41;
  font-family: 'JetBrains Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- CRT scanline overlay ---- */
.scanline {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 65, 0.03) 2px,
    rgba(0, 255, 65, 0.03) 4px
  );
  pointer-events: none;
  z-index: 999;
}

/* ---- CRT flicker (landing page only) ---- */
.flicker {
  animation: flicker 0.15s infinite;
}
@keyframes flicker {
  0%   { opacity: 0.97; }
  50%  { opacity: 1; }
  100% { opacity: 0.98; }
}

/* ---- Layout ---- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}
.container--narrow {
  max-width: 800px;
  padding: 40px 20px;
}

/* ---- Navigation ---- */
.nav {
  margin-bottom: 20px;
  font-size: 12px;
}
.nav a {
  color: #ffaa00;
  text-decoration: none;
}
.nav a:hover {
  color: #00ff41;
}

/* ---- Typography ---- */
h1 {
  font-size: 18px;
  margin-bottom: 5px;
}
.sub {
  color: #555;
  font-size: 11px;
  margin-bottom: 20px;
}
.label {
  color: #ffaa00;
  font-size: 11px;
  margin-bottom: 4px;
  margin-top: 15px;
}

/* ---- Buttons ---- */
.btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.btn {
  background: transparent;
  color: #00ff41;
  border: 1px solid #00ff41;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn:hover {
  background: rgba(0, 255, 65, 0.15);
}
.btn--amber {
  border-color: #ffaa00;
  color: #ffaa00;
}
.btn--amber:hover {
  background: rgba(255, 170, 0, 0.15);
}
.btn--active {
  background: rgba(0, 255, 65, 0.2);
}

/* Small inline copy button */
.btn-copy-sm {
  color: #ffaa00;
  cursor: pointer;
  font-size: 10px;
  border: 1px solid #ffaa00;
  padding: 2px 8px;
  background: none;
  font-family: inherit;
  flex-shrink: 0;
}
.btn-copy-sm:hover {
  background: rgba(255, 170, 0, 0.15);
}

/* ---- Form elements ---- */
textarea,
input[type="text"],
input[type="number"] {
  width: 100%;
  background: #111;
  color: #00ff41;
  border: 1px solid #222;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
textarea:focus,
input[type="text"]:focus,
input[type="number"]:focus {
  border-color: #00ff41;
}
textarea {
  resize: vertical;
  min-height: 150px;
}
input[type="range"] {
  accent-color: #00ff41;
}

/* ---- Panels / sections ---- */
.panel {
  background: #111;
  border: 1px solid #222;
  padding: 12px;
  margin-top: 10px;
  overflow: auto;
  font-size: 13px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.section {
  background: #111;
  border: 1px solid #222;
  padding: 15px;
  margin-bottom: 15px;
}
.section h2 {
  font-size: 14px;
  margin-bottom: 10px;
  color: #ffaa00;
}

/* ---- Error display ---- */
.error-box {
  color: #ff4444;
  font-size: 12px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #ff4444;
  display: none;           /* shown via JS */
}

/* ---- Info / muted text ---- */
.info {
  color: #555;
  font-size: 11px;
  margin-top: 5px;
}

/* ---- Result rows (epoch converter, etc.) ---- */
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #1a1a1a;
  font-size: 12px;
}
.result-row:last-child {
  border-bottom: none;
}
.result-row__label {
  color: #555;
}
.result-row__value {
  color: #00ff41;
}

/* ---- List items (UUID, password) ---- */
.list-panel {
  background: #111;
  border: 1px solid #222;
  padding: 12px;
  min-height: 60px;
  max-height: 500px;
  overflow-y: auto;
  margin-top: 10px;
}
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #1a1a1a;
  font-size: 13px;
  word-break: break-all;
}
.list-item:last-child {
  border-bottom: none;
}

/* ---- Landing page specific ---- */
.header {
  border: 1px solid #00ff41;
  padding: 20px;
  margin-bottom: 30px;
  position: relative;
}
.header::before {
  content: '[ BEEBOT TERMINAL v2.0 ]';
  position: absolute;
  top: -10px;
  left: 10px;
  background: #0a0a0a;
  padding: 0 8px;
  font-size: 12px;
  color: #00ff41;
}
.ascii-bee {
  color: #ffaa00;
  font-size: 40px;
  text-align: center;
  margin-bottom: 15px;
}
.tagline {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-bottom: 5px;
}
.prompt {
  color: #00ff41;
  margin-bottom: 20px;
  font-size: 13px;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #00ff41;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
}
@keyframes blink {
  50% { opacity: 0; }
}
.tools-header {
  color: #ffaa00;
  font-size: 13px;
  margin-bottom: 15px;
  border-bottom: 1px dashed #333;
  padding-bottom: 8px;
}
.tool-card {
  border: 1px solid #222;
  padding: 15px;
  margin-bottom: 10px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.tool-card:hover {
  border-color: #00ff41;
  background: rgba(0, 255, 65, 0.05);
}
.tool-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
}
.tool-name .icon {
  margin-right: 8px;
}
.tool-desc {
  font-size: 12px;
  color: #666;
}
.tool-status {
  float: right;
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid #00ff41;
  color: #00ff41;
}
.footer {
  margin-top: 40px;
  text-align: center;
  font-size: 11px;
  color: #333;
}
.footer a {
  color: #555;
  text-decoration: none;
}
.footer a:hover {
  color: #00ff41;
}

/* ---- SEO: Page description ---- */
.page-description {
  color: #888;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 12px;
  border-left: 2px solid #333;
}

/* ---- SEO: Related tools ---- */
.related-tools {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px dashed #222;
}
.related-tools h2 {
  font-size: 13px;
  color: #ffaa00;
  margin-bottom: 10px;
}
.related-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.related-tools-grid a {
  color: #00ff41;
  text-decoration: none;
  border: 1px solid #222;
  padding: 6px 12px;
  font-size: 11px;
  transition: all 0.2s;
}
.related-tools-grid a:hover {
  border-color: #00ff41;
  background: rgba(0, 255, 65, 0.05);
}

/* ---- SEO: FAQ section ---- */
.faq-section {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px dashed #222;
}
.faq-section h2 {
  font-size: 13px;
  color: #ffaa00;
  margin-bottom: 10px;
}
.faq-section details {
  border: 1px solid #222;
  margin-bottom: 6px;
  background: #111;
}
.faq-section summary {
  padding: 10px 12px;
  font-size: 12px;
  cursor: pointer;
  color: #00ff41;
  font-family: inherit;
  list-style: none;
}
.faq-section summary::before {
  content: '▸ ';
  color: #ffaa00;
}
.faq-section details[open] summary::before {
  content: '▾ ';
}
.faq-section summary::-webkit-details-marker {
  display: none;
}
.faq-section details p {
  padding: 8px 12px 12px;
  font-size: 11px;
  color: #888;
  line-height: 1.6;
}

/* ---- SEO: Tool description ---- */
.tool-intro {
  color: #888;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
  border-left: 2px solid #333;
  padding-left: 12px;
}

/* ---- SEO: FAQ section ---- */
.faq-section {
  margin-top: 30px;
  border-top: 1px dashed #333;
  padding-top: 15px;
}
.faq-section h2 {
  font-size: 13px;
  color: #ffaa00;
  margin-bottom: 10px;
}
.faq-section details {
  background: #111;
  border: 1px solid #222;
  margin-bottom: 8px;
  padding: 0;
}
.faq-section summary {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 12px;
  color: #00ff41;
  list-style: none;
}
.faq-section summary::before {
  content: '▸ ';
  color: #ffaa00;
}
.faq-section details[open] summary::before {
  content: '▾ ';
}
.faq-section details p {
  padding: 0 14px 12px;
  font-size: 11px;
  color: #888;
  line-height: 1.6;
}

/* ---- SEO: Other tools links ---- */
.other-tools {
  margin-top: 25px;
  border-top: 1px dashed #333;
  padding-top: 15px;
}
.other-tools h2 {
  font-size: 13px;
  color: #ffaa00;
  margin-bottom: 10px;
}
.other-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.other-tools-grid a {
  color: #00ff41;
  text-decoration: none;
  border: 1px solid #222;
  padding: 6px 12px;
  font-size: 11px;
  transition: all 0.2s;
}
.other-tools-grid a:hover {
  border-color: #00ff41;
  background: rgba(0, 255, 65, 0.05);
}
