/* TorFetch custom effects - background beams, card spotlight, moving border,
   dropzone, task cards - plus a few utility fallbacks not present in the
   compiled Tailwind sheet. */

/* ---------- Animated background beams ---------- */

.beam {
  stroke-dasharray: 0.6px 1px;
  animation: beam-flow linear infinite;
}
.beam-a { animation-duration: 9s; animation-delay: 0s; }
.beam-b { animation-duration: 9s; animation-delay: 0s; }
.beam-c { animation-duration: 12s; animation-delay: -3s; }
.beam-d { animation-duration: 12s; animation-delay: -3s; }
.beam-e { animation-duration: 10s; animation-delay: -6s; }
.beam-f { animation-duration: 10s; animation-delay: -6s; }
.beam-g { animation-duration: 13s; animation-delay: -1.5s; }
.beam-h { animation-duration: 13s; animation-delay: -1.5s; }

@keyframes beam-flow {
  0%   { stroke-dashoffset: 1.6px; }
  100% { stroke-dashoffset: -1.6px; }
}

/* ---------- Feature card spotlight (follows the mouse) ---------- */

.spotlight-card .spotlight {
  background: radial-gradient(
    350px circle at var(--mx, 0px) var(--my, 0px),
    #262626,
    transparent 80%
  );
}

/* ---------- Moving border glow on the Start Download button ---------- */

.mb-track { overflow: hidden; }

/* ---------- Dropzone ---------- */

.dropzone:hover { border-color: #525252; }
.dropzone.dragover {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.08);
}
.dropzone.hasfile {
  border-color: #22c55e;
}

/* ---------- Task progress bar ---------- */

.task-progress-track {
  height: 0.375rem;
  border-radius: 9999px;
  background-color: #262626;
  overflow: hidden;
}
.task-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background-image: linear-gradient(to right, #2563eb, #9333ea);
  transition: width 0.5s ease;
}
.task-progress-fill.indeterminate {
  width: 40% !important;
  animation: indeterminate 1.4s ease-in-out infinite;
}
@keyframes indeterminate {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(360%); }
}

/* ---------- Toasts ---------- */

.toast {
  max-width: 22rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #fff;
  background-color: rgba(23, 23, 23, 0.9);
  border: 1px solid #404040;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.25s ease;
}
.toast.error { border-color: rgba(239, 68, 68, 0.5); }
.toast.success { border-color: rgba(34, 197, 94, 0.5); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Language selector ---------- */

.language-switcher {
  position: relative;
  z-index: 80;
  flex: 0 0 auto;
}
.language-button {
  display: inline-flex;
  min-width: 3.75rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.7rem;
  border: 1px solid #404040;
  border-radius: 9999px;
  color: #d4d4d4;
  background: rgba(10, 10, 10, 0.72);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.language-button:hover,
.language-button[aria-expanded="true"] {
  color: #fff;
  border-color: #525252;
  background: #171717;
}
.language-button:focus-visible,
.language-option:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.language-button svg {
  width: 1rem;
  height: 1rem;
}
.language-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 9.5rem;
  padding: 0.375rem;
  border: 1px solid #404040;
  border-radius: 0.85rem;
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
}
.language-menu[hidden] { display: none; }
.language-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  border: 0;
  border-radius: 0.625rem;
  color: #d4d4d4;
  background: transparent;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}
.language-option:hover {
  color: #fff;
  background: #262626;
}

/* ---------- Utility fallbacks (not in the compiled Tailwind sheet) ---------- */

.bg-red-500\/10 { background-color: rgba(239, 68, 68, 0.1); }
.border-red-500\/30 { border-color: rgba(239, 68, 68, 0.3); }
.hover\:bg-red-500\/10:hover { background-color: rgba(239, 68, 68, 0.1); }
.h-1\.5 { height: 0.375rem; }
.break-all { word-break: break-all; }
.text-\[10px\] { font-size: 10px; line-height: 1.4; }
.w-96 { width: 24rem; }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-neutral-950 { background-color: #0a0a0a; }
.h-14 { height: 3.5rem; }
.w-14 { width: 3.5rem; }
.items-end { align-items: flex-end; }
.max-w-sm { max-width: 24rem; }
.mt-3 { margin-top: 0.75rem; }
.pb-16 { padding-bottom: 4rem; }
.pt-24 { padding-top: 6rem; }
.top-20 { top: 5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-purple-300 { color: #d8b4fe; }
.z-\[70\] { z-index: 70; }
@media (min-width: 640px) {
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Smooth scrolling for in-page anchors */
html { scroll-behavior: smooth; }

/* Keep content clear of the fixed footer bar */
body { padding-bottom: 3rem; }
