/* PortKat Deal Hunter - Web Styles */

/* Dynamic Viewport Height fallback */
:root {
  --app-height: 100dvh;
}

html, body {
  min-height: 100%;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Prompt", "Kanit", sans-serif;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Ensure background applies to root & body */
html.dark, html.dark body {
  background-color: #020617 !important; /* slate-950 */
  color: #f8fafc !important; /* slate-50 */
}

html:not(.dark), html:not(.dark) body {
  background-color: #eaf5ef !important; /* Soft Mint / Sage Surface (matches Landing) */
  color: #172d28 !important; /* slate-800 / brand ink */
}

/* Header is ALWAYS Navy Dark Blue App Bar */
header {
  background-color: #0b172a !important;
  border-bottom: 1px solid #1e293b !important;
  color: #ffffff !important;
}

/* Dark Mode Native Fallbacks for Cards & Elements */
html.dark section,
html.dark footer,
html.dark #quick-guide,
html.dark .bg-white {
  background-color: #0f172a !important; /* slate-900 */
  border-color: #1e293b !important; /* slate-800 */
  color: #f8fafc;
}

html.dark #quick-guide .bg-slate-50,
html.dark #quick-guide .bg-slate-50\/70 {
  background-color: #1e293b !important; /* slate-800 */
  border-color: #334155 !important; /* slate-700 */
  color: #f1f5f9 !important;
}

html.dark #input-url {
  background-color: #1e293b !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}

html.dark #input-url::placeholder {
  color: #94a3b8 !important;
}

html.dark #btn-paste {
  background-color: #042f2e !important; /* teal-950 */
  color: #5eead4 !important; /* teal-300 */
  border: 1px solid #134e4a !important;
}

html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark label,
html.dark .text-slate-800, html.dark .text-slate-900, html.dark .text-slate-700 {
  color: #f8fafc !important;
}

html.dark .text-slate-500, html.dark .text-slate-600 {
  color: #94a3b8 !important; /* slate-400 */
}

html.dark footer p {
  color: #94a3b8 !important;
}

html.dark footer p.text-teal-800 {
  color: #2dd4bf !important; /* teal-400 */
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Landscape Mode Optimization (Mobile Height Crunch) */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-compact {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
  .sticky-bottom-override {
    position: static !important;
  }
}

/* Custom Scrollbar for Chips and Drawers */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
