/* ============================================================
   ImageConvertPro - Global Styles
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background-color: #030712;
  color: #f3f4f6;
}

/* ── Typography ─────────────────────────────────────────────── */

.font-display {
  font-family: 'Syne', sans-serif;
}

.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }

/* ── Gradient Text ──────────────────────────────────────────── */

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #f97316 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Upload Zone ────────────────────────────────────────────── */

.upload-zone {
  transition: all 0.2s ease;
  min-height: 180px;
}

.upload-zone:hover {
  background-color: rgba(14, 165, 233, 0.03);
}

/* ── Tool Cards ─────────────────────────────────────────────── */

.tool-card {
  text-decoration: none;
}

/* ── Scrollbars ─────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #111827;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* ── Range input ────────────────────────────────────────────── */

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #374151;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0ea5e9;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
  transition: box-shadow 0.2s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.3);
}

/* ── Spinner border width ───────────────────────────────────── */

.border-3 { border-width: 3px; }

/* ── Animations ─────────────────────────────────────────────── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.4s ease forwards;
}

/* ── Ad Placeholders ────────────────────────────────────────── */

.ad-placeholder {
  transition: background-color 0.2s ease;
}

/* ── Responsive adjustments ─────────────────────────────────── */

@media (max-width: 640px) {
  .upload-zone {
    min-height: 140px;
  }
}

/* ── Focus Styles ────────────────────────────────────────────── */

*:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Selection ───────────────────────────────────────────────── */

::selection {
  background: rgba(14, 165, 233, 0.3);
  color: #f3f4f6;
}

/* ── Checkbox custom ────────────────────────────────────────── */

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
}

/* ── Number input ────────────────────────────────────────────── */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 0.5;
}

/* ── Alpine.js x-cloak ───────────────────────────────────────── */

[x-cloak] { display: none !important; }

/* ── Transition helpers ─────────────────────────────────────── */

.transition-all {
  transition: all 0.2s ease;
}
