/*
Theme Name: KVP BOX
Theme URI: https://www.kvpbox.com
Author: KVP BOX
Author URI: https://www.kvpbox.com
Description: Plug-and-play anonymous healthcare feedback platform for Key & Vulnerable Populations in Nigeria. Just activate — no configuration needed. Admin URL: /kvp-admin
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: kvpbox
Tags: healthcare, anonymous, multilingual, pwa, react
*/

/* The UI is rendered entirely by React. This file holds only base resets
   and pre-mount loader styles, so the page is never blank. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F5F3EE;
  color: #1A1F36;
  min-height: 100vh;
  overflow-x: hidden;
}
#kvpbox-root { min-height: 100vh; min-height: 100dvh; }

.kvpbox-prelaunch {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #F5F3EE;
  z-index: 9999;
  transition: opacity 0.4s ease;
}
.kvpbox-prelaunch.hide { opacity: 0; pointer-events: none; }
.kvpbox-prelaunch-bar {
  width: 160px; height: 3px;
  background: rgba(0,0,0,0.08);
  border-radius: 3px; overflow: hidden;
  margin-top: 24px;
}
.kvpbox-prelaunch-fill {
  height: 100%; width: 40%;
  background: linear-gradient(90deg, #4ECDC4, #5B8DEF, #9B6DD7);
  animation: kvpload 1.4s ease-in-out infinite;
  border-radius: 3px;
}
@keyframes kvpload {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(50%); }
  100% { transform: translateX(250%); }
}

.no-js-fallback {
  max-width: 600px;
  margin: 80px auto;
  padding: 40px 24px;
  text-align: center;
}
.no-js-fallback h1 { font-size: 22px; margin-bottom: 14px; color: #1A8580; }
.no-js-fallback p { color: #6B7280; line-height: 1.6; margin-bottom: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media print {
  .kvpbox-prelaunch, .no-print { display: none !important; }
}
