/* PDFPro Custom Styles */

* {
  font-family: 'Inter', system-ui, sans-serif;
}

body {
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Mode (default when no .dark) */
html:not(.dark) body {
  background-color: #f8fafc;
  color: #0f172a;
}

html:not(.dark) .bg-slate-950 { background-color: #f8fafc !important; }
html:not(.dark) .bg-slate-900\/50 { background-color: #f1f5f9 !important; }
html:not(.dark) .bg-slate-800\/60 { background-color: #ffffff !important; border-color: #e2e8f0 !important; }
html:not(.dark) .bg-slate-800\/40 { background-color: #ffffff !important; border-color: #e2e8f0 !important; }
html:not(.dark) .bg-slate-800 { background-color: #e2e8f0 !important; }
html:not(.dark) .bg-slate-900 { background-color: #f1f5f9 !important; }
html:not(.dark) .text-slate-100 { color: #0f172a !important; }
html:not(.dark) .text-slate-300 { color: #334155 !important; }
html:not(.dark) .text-slate-400 { color: #64748b !important; }
html:not(.dark) .text-slate-500 { color: #64748b !important; }
html:not(.dark) .border-slate-800 { border-color: #e2e8f0 !important; }
html:not(.dark) .border-slate-700\/50 { border-color: #e2e8f0 !important; }
html:not(.dark) .border-slate-700\/40 { border-color: #e2e8f0 !important; }
html:not(.dark) .border-slate-700 { border-color: #cbd5e1 !important; }
html:not(.dark) .border-slate-800\/60 { border-color: #e2e8f0 !important; }
html:not(.dark) nav { background-color: rgba(248, 250, 252, 0.9) !important; }
html:not(.dark) .hero-gradient {
  background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.06) 0%, transparent 50%) !important;
}
html:not(.dark) .tool-card:hover {
  box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.15);
}
html:not(.dark) #tool-modal > div { background-color: #ffffff !important; border-color: #e2e8f0 !important; }
html:not(.dark) .drop-zone { border-color: #cbd5e1 !important; }
html:not(.dark) footer { border-color: #e2e8f0 !important; }

.tool-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.25);
}

.tool-card.hidden-tool {
  display: none !important;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-gradient {
  background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.drop-zone {
  transition: all 0.25s ease;
}

.drop-zone.dragover {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.08);
  transform: scale(1.01);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 4px; }

html:not(.dark) ::-webkit-scrollbar-thumb { background: #94a3b8; }

.modal-enter {
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Search highlight */
.search-highlight {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Sticky search bar */
#sticky-search.is-sticky {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: min(36rem, calc(100% - 2rem));
  z-index: 40;
  padding: 0.5rem 0;
}
#sticky-search.is-sticky input {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
  border-color: #3b82f6;
}
html:not(.dark) #sticky-search.is-sticky input {
  background: rgba(248, 250, 252, 0.95) !important;
  color: #0f172a !important;
}
