@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ===== Mureza Global Polish ===== */
/* --- Fonts --- */
/* --- Root & Smooth Scroll --- */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body, html {
  margin: 0;
  padding: 0;
  background: #0A0A0A;
  color: #E0E0E0;
  font-family: 'DM Sans', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
/* --- Custom Scrollbar (Webkit) --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}
/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
/* --- Selection --- */
::selection {
  background: rgba(201, 168, 76, 0.4);
  color: #fff;
}
::-moz-selection {
  background: rgba(201, 168, 76, 0.4);
  color: #fff;
}
input::selection, textarea::selection, select::selection {
  background: rgba(201, 168, 76, 0.5);
  color: #fff;
}
input::-moz-selection, textarea::-moz-selection, select::-moz-selection {
  background: rgba(201, 168, 76, 0.5);
  color: #fff;
}
/* --- Focus Ring (Accessible, subtle) --- */
:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) {
  outline: none;
}
/* --- Button & Input Reset --- */
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}
select {
  color-scheme: dark;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* --- Image defaults --- */
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
/* --- Safe-area padding for mobile --- */
#root {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* --- Subtle loading shimmer for lazy content --- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite ease-in-out;
}
/* --- Fade-in utility --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.5s ease-out both;
}
/* --- Stagger delays --- */
.stagger-1 { animation-delay: 60ms; }
.stagger-2 { animation-delay: 120ms; }
.stagger-3 { animation-delay: 180ms; }
.stagger-4 { animation-delay: 240ms; }
.stagger-5 { animation-delay: 300ms; }
/* --- Smooth page transitions --- */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.page-enter {
  animation: pageFadeIn 0.3s ease-out;
}
/* --- Mobile bottom bar spacing --- */
@media (max-width: 768px) {
  #root {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }
}
/* --- Print styles --- */
@media print {
  .mn-bar, .mn-mobile, .ai-chat-fab, .ai-chat-panel {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
