/* ============================================================
   Fast Web Toolkit — Custom Stylesheet
   Supplements Tailwind CSS with project-specific styles.
   ============================================================ */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* ── Ad Placeholders ─────────────────────────────────────── */
.ad-placeholder {
  display: inline-block;
  padding: 8px 32px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 4px;
  color: #9ca3af;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

/* ── Tool Cards ──────────────────────────────────────────── */
.tool-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tool-card:hover {
  transform: translateY(-3px);
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* ── Monospace Textareas ─────────────────────────────────── */
.code-output {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.65;
  tab-size: 4;
}

/* ── Drop Zone ───────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed #93c5fd;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.drop-zone:hover,
.drop-zone.drag-over {
  border-color: #2563eb;
  background-color: #eff6ff;
}

/* ── Range Input ─────────────────────────────────────────── */
input[type="range"] {
  accent-color: #2563eb;
  cursor: pointer;
}

/* ── Copy button flash ───────────────────────────────────── */
.copy-flash {
  animation: flash 0.3s ease;
}
@keyframes flash {
  0%   { opacity: 1; }
  50%  { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ── QR canvas centering ─────────────────────────────────── */
#qr-output canvas,
#qr-output img {
  display: block;
  margin: 0 auto;
}

/* ── Stat Card ───────────────────────────────────────────── */
.stat-card {
  transition: transform 0.15s ease;
}
.stat-card:hover {
  transform: scale(1.03);
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .ad-banner,
  #navbar header,
  #footer footer {
    display: none !important;
  }
}

/* ── Sidebar Ad Placeholder ──────────────────────────────── */
.ad-placeholder-sidebar {
  width: 100%;
  min-height: 250px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

/* ── Focus visible (accessibility) ──────────────────────── */
:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* ── Skip to content link (a11y) ─────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 4px;
  z-index: 999;
  background: #2563eb;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 4px;
}

/* ── Improved ad label ───────────────────────────────────── */
.ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  text-align: center;
  display: block;
  margin-bottom: 4px;
}
