/**
 * BeeBot Img — Shared Stylesheet
 *
 * Honeycomb / Bee Hive theme for img.furybee.org
 * Colour tokens:
 *   --gold:      #F5A623  (primary – honey gold)
 *   --gold-bright: #FFB800 (bright gold accents)
 *   --amber:     #D4890A  (secondary – warm amber)
 *   --cream:     #FFF8E7  (accent – creamy white)
 *   --text:      #F0E6D0  (warm off-white text)
 *   --text-dark: #2C1810  (dark brown text on light)
 *   --bg:        #1a1408  (deep dark brown-black)
 *   --panel:     #1E1A12  (dark panel bg)
 *   --border:    #3A2F1E  (warm dark border)
 *   --muted:     #8B7355  (subdued text)
 *   --error:     #E84C3D  (warm red)
 *   --success:   #7CB342  (honey green)
 */

/* ---- 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;
}

/* ---- Honeycomb pattern keyframes ---- */
@keyframes honeyGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(245, 166, 35, 0.3); }
  50% { box-shadow: 0 0 20px rgba(245, 166, 35, 0.5), 0 0 40px rgba(245, 166, 35, 0.15); }
}

@keyframes progressShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---- Base ---- */
body {
  background: #1a1408;
  color: #F0E6D0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  position: relative;
}

/* Honeycomb background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66Z' fill='none' stroke='%23F5A623' stroke-width='0.5' opacity='0.06'/%3E%3Cpath d='M28 166L0 150L0 116L28 100L56 116L56 150L28 166Z' fill='none' stroke='%23F5A623' stroke-width='0.5' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  pointer-events: none;
  z-index: 0;
}

/* ---- CRT scanline overlay (kept for compat, now invisible) ---- */
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: none;
}

/* ---- Layout ---- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* ---- Navigation ---- */
.nav {
  margin-bottom: 20px;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.nav a {
  color: #F5A623;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav a:hover {
  color: #FFB800;
  text-shadow: 0 0 8px rgba(245, 166, 35, 0.4);
}
.nav .sep {
  color: #8B7355;
  margin: 0 6px;
}

/* ---- Typography ---- */
h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #F5A623;
}
h1::before {
  content: '⬡ ';
  color: #D4890A;
  font-size: 0.8em;
}
h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #F5A623;
}
.sub {
  color: #8B7355;
  font-size: 12px;
  margin-bottom: 20px;
}
.label {
  color: #D4890A;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  margin-top: 15px;
}

/* ---- Buttons ---- */
.btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.btn {
  background: linear-gradient(135deg, #F5A623, #D4890A);
  color: #2C1810;
  border: 1px solid #F5A623;
  padding: 8px 18px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.btn:hover {
  background: linear-gradient(135deg, #FFB800, #F5A623);
  box-shadow: 0 0 15px rgba(245, 166, 35, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--amber,
.btn-secondary {
  background: transparent;
  border: 1px solid #D4890A;
  color: #D4890A;
}
.btn--amber:hover,
.btn-secondary:hover {
  background: rgba(212, 137, 10, 0.15);
  border-color: #F5A623;
  color: #F5A623;
  box-shadow: 0 0 12px rgba(212, 137, 10, 0.3);
}
.btn--active,
.btn-primary {
  background: linear-gradient(135deg, #F5A623, #D4890A);
  color: #2C1810;
  border-color: #F5A623;
}
.btn-download {
  background: linear-gradient(135deg, #FFB800, #F5A623);
  color: #2C1810;
  border: 1px solid #FFB800;
  font-weight: 700;
  padding: 10px 24px;
  font-size: 13px;
}
.btn-download:hover {
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.btn-reset {
  background: transparent;
  border: 1px solid #8B7355;
  color: #8B7355;
}
.btn-reset:hover {
  border-color: #D4890A;
  color: #D4890A;
  background: rgba(139, 115, 85, 0.1);
}
.btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---- Form elements ---- */
textarea,
input[type="text"],
input[type="number"] {
  width: 100%;
  background: #1E1A12;
  color: #F0E6D0;
  border: 1px solid #3A2F1E;
  padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  outline: none;
  border-radius: 4px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
textarea:focus,
input[type="text"]:focus,
input[type="number"]:focus {
  border-color: #F5A623;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.2);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #3A2F1E;
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #2C1810;
  border: 2px solid #F5A623;
  border-radius: 50%;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #2C1810;
  border: 2px solid #F5A623;
  border-radius: 50%;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #F5A623, #D4890A);
  height: 6px;
  border-radius: 3px;
}
input[type="color"] {
  background: #1E1A12;
  border: 1px solid #3A2F1E;
  border-radius: 4px;
  cursor: pointer;
}
select {
  background: #1E1A12;
  color: #F0E6D0;
  border: 1px solid #3A2F1E;
  padding: 8px 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}
select:focus {
  border-color: #F5A623;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.2);
}

/* ---- Panels / sections ---- */
.panel {
  background: #1E1A12;
  border: 1px solid #3A2F1E;
  padding: 12px;
  margin-top: 10px;
  overflow: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-radius: 6px;
}
.section {
  background: #1E1A12;
  border: 1px solid #3A2F1E;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}
.section:hover {
  border-color: rgba(245, 166, 35, 0.3);
}
.section h2 {
  font-size: 14px;
  margin-bottom: 10px;
  color: #F5A623;
}

/* ---- Tool options ---- */
.tool-options {
  background: #1E1A12;
  border: 1px solid #3A2F1E;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}
.tool-options .label {
  color: #F5A623;
}

/* ---- Drop zone ---- */
.drop-zone {
  border: 2px dashed #5A4A2E;
  padding: 40px 20px;
  text-align: center;
  color: #8B7355;
  font-size: 13px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  border-radius: 12px;
  background: rgba(30, 26, 18, 0.5);
  position: relative;
}
.drop-zone:hover,
.drop-zone.drag-over {
  border-color: #F5A623;
  color: #F5A623;
  background: rgba(245, 166, 35, 0.05);
  box-shadow: inset 0 0 30px rgba(245, 166, 35, 0.08), 0 0 15px rgba(245, 166, 35, 0.15);
}
.drop-zone.has-file {
  border-color: #7CB342;
  background: rgba(124, 179, 66, 0.05);
}
.drop-zone .icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

/* ---- Preview ---- */
.preview-container {
  background: #1E1A12;
  border: 1px solid #3A2F1E;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.preview-box {
  background: #1E1A12;
  border: 1px solid #3A2F1E;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.preview-container img,
.preview-box img {
  max-width: 100%;
  border-radius: 4px;
}

/* ---- Slider control ---- */
.slider-control {
  margin: 8px 0;
}
.slider-control label {
  color: #D4890A;
  font-size: 11px;
  display: block;
  margin-bottom: 4px;
}

/* ---- Image info ---- */
.image-info {
  font-size: 11px;
  color: #8B7355;
  padding: 4px 0;
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Error display ---- */
.error-box {
  color: #E84C3D;
  font-size: 12px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #E84C3D;
  border-radius: 6px;
  background: rgba(232, 76, 61, 0.08);
  display: none;
}

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

/* ---- Progress bar ---- */
.progress-wrap {
  background: #1E1A12;
  border: 1px solid #3A2F1E;
  height: 22px;
  margin: 10px 0;
  position: relative;
  display: none;
  border-radius: 11px;
  overflow: hidden;
}
.progress-bar {
  background: linear-gradient(90deg, #D4890A, #F5A623, #FFB800, #F5A623, #D4890A);
  background-size: 200% 100%;
  animation: progressShimmer 2s linear infinite;
  height: 100%;
  width: 0;
  transition: width 0.2s;
  border-radius: 11px;
}
.progress-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  line-height: 22px;
  color: #2C1810;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Preview grid ---- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.preview-grid img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border: 1px solid #3A2F1E;
  background: #1E1A12;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}
.preview-grid img:hover {
  border-color: #F5A623;
}

/* ---- Footer ---- */
.footer {
  margin-top: 40px;
  text-align: center;
  font-size: 11px;
  color: #5A4A2E;
  padding: 20px 0;
  border-top: 1px solid #3A2F1E;
}
.footer a {
  color: #8B7355;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: #F5A623;
}

/* ---- Landing page ---- */
.header {
  border: 1px solid #F5A623;
  padding: 24px;
  margin-bottom: 30px;
  position: relative;
  border-radius: 12px;
  background: rgba(245, 166, 35, 0.03);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.08);
}
.header::before {
  content: '⬡ BEEBOT IMG v1.0';
  position: absolute;
  top: -10px;
  left: 14px;
  background: #1a1408;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #F5A623;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ascii-bee {
  color: #FFB800;
  font-size: 40px;
  text-align: center;
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.3);
}
.tagline {
  text-align: center;
  font-size: 14px;
  color: #8B7355;
  margin-bottom: 5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #F5A623;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
  border-radius: 1px;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ---- Tool cards ---- */
.tool-card {
  border: 1px solid #3A2F1E;
  padding: 18px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
  border-radius: 10px;
  background: rgba(30, 26, 18, 0.6);
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(245, 166, 35, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tool-card:hover {
  border-color: #F5A623;
  background: rgba(245, 166, 35, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.15), 0 0 30px rgba(245, 166, 35, 0.08);
}
.tool-card:hover::before {
  opacity: 1;
}
.tool-name {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #FFF8E7;
}
.tool-name .icon {
  margin-right: 8px;
}
.tool-desc {
  font-size: 12px;
  color: #8B7355;
}
.tool-status {
  float: right;
  font-size: 11px;
  padding: 2px 10px;
  border: 1px solid #7CB342;
  color: #7CB342;
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Result rows ---- */
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(58, 47, 30, 0.5);
  font-size: 12px;
}
.result-row:last-child {
  border-bottom: none;
}
.result-row__label {
  color: #8B7355;
}
.result-row__value {
  color: #F5A623;
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Checkbox / toggle ---- */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 12px;
}
.toggle-row input[type="checkbox"] {
  accent-color: #F5A623;
  width: 16px;
  height: 16px;
}

/* ---- Color swatches ---- */
.color-swatch {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 2px solid #3A2F1E;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}
.color-swatch:hover,
.color-swatch.active {
  border-color: #F5A623;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.4);
}

/* ---- SEO sections ---- */
.tool-intro {
  color: #8B7355;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
  border-left: 3px solid #D4890A;
  padding-left: 14px;
}
.faq-section {
  margin-top: 30px;
  border-top: 1px solid #3A2F1E;
  padding-top: 15px;
}
.faq-section h2 {
  font-size: 14px;
  color: #F5A623;
  margin-bottom: 12px;
}
.faq-section details {
  background: #1E1A12;
  border: 1px solid #3A2F1E;
  margin-bottom: 8px;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}
.faq-section details:hover {
  border-color: rgba(245, 166, 35, 0.3);
}
.faq-section summary {
  padding: 12px 14px;
  cursor: pointer;
  font-size: 12px;
  color: #FFF8E7;
  list-style: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: color 0.3s ease;
}
.faq-section summary:hover {
  color: #F5A623;
}
.faq-section summary::before {
  content: '⬡ ';
  color: #D4890A;
}
.faq-section details[open] summary::before {
  content: '⬢ ';
  color: #F5A623;
}
.faq-section summary::-webkit-details-marker {
  display: none;
}
.faq-section details p {
  padding: 0 14px 12px;
  font-size: 12px;
  color: #8B7355;
  line-height: 1.7;
}
.other-tools {
  margin-top: 25px;
  border-top: 1px solid #3A2F1E;
  padding-top: 15px;
}
.other-tools h2 {
  font-size: 14px;
  color: #F5A623;
  margin-bottom: 12px;
}
.other-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.other-tools-grid a {
  color: #F0E6D0;
  text-decoration: none;
  border: 1px solid #3A2F1E;
  padding: 8px 14px;
  font-size: 11px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.other-tools-grid a:hover {
  border-color: #F5A623;
  background: rgba(245, 166, 35, 0.08);
  color: #F5A623;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.15);
}

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1408;
}
::-webkit-scrollbar-thumb {
  background: #5A4A2E;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #F5A623;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #5A4A2E #1a1408;
}

/* ---- Selection ---- */
::selection {
  background: rgba(245, 166, 35, 0.3);
  color: #FFF8E7;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .container {
    padding: 12px;
  }

  h1 {
    font-size: 18px;
  }

  .btns {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .preview-container,
  .preview-box {
    margin-top: 8px;
  }

  .preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }

  body::before {
    background-size: 42px 75px;
  }

  .tool-card {
    padding: 14px;
  }

  .header {
    padding: 16px;
  }

  .drop-zone {
    padding: 30px 15px;
  }
}
