/* Critical CSS extracted from index.html for CSP compliance */
/* Note: CDN domain will be injected at build time via Vite plugin */
/* Font faces */
@font-face {
  font-family: "HK Nova";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.staging.rumi.ai/fonts/HKNova-Regular.woff2")
    format("woff2");
}
@font-face {
  font-family: "HK Nova";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://cdn.staging.rumi.ai/fonts/HKNova-Bold.woff2")
    format("woff2");
}
@font-face {
  font-family: "HK Nova";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("https://cdn.staging.rumi.ai/fonts/HKNova-ExtraBold.woff2")
    format("woff2");
}

/* Base styles */
html,
body,
#root {
  font-family:
    "HK Nova", Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  margin: 0;
  display: block;
  min-height: 100%;
  height: 100%;
  width: 100%;
}

/* Refresh notification */
#refresh-notification {
  display: none;
  position: fixed;
  top: 10px;
  left: 50%;
  min-width: 220px;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 8px 10px;
  background-color: rgba(10, 11, 12, 0.88);
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  color: white;
  font-size: 12px;
}

#refresh-notification.visible {
  display: block;
}

#refresh-notification button {
  text-decoration: underline;
  border: none;
  background: none;
  padding: 0 2px;
}

#refresh-notification .refresh {
  margin-left: 2px;
  font-weight: bold;
  color: #f0555e;
}

#refresh-notification .close {
  color: white;
}

#refresh-notification button:hover {
  opacity: 0.8;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.075);
  }
  75% {
    transform: scale(0.925);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  backface-visibility: hidden;
  perspective: 1000;
  transform: translateZ(0);
}

.pulse img,
.pulse svg {
  animation: pulse 1.5s linear infinite both 0s;
  transform-origin: center center;
}

.page-loader .name {
  font-family: "Tahoma", sans-serif;
}

.page-loader .name div {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}

.page-loader .name-animated div:first-of-type {
  animation: showup 2s linear;
}

.page-loader .name-animated div:last-of-type {
  animation: reveal 3.5s linear;
}

.page-loader .name-animated div:last-of-type span {
  margin-left: 0;
  animation: slidein 3.5s linear;
}

.safe-full-height {
  height: 100vh;
  height: 100dvh;
}

@keyframes showup {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 0;
  }
  75% {
    opacity: 1;
  }
}

@keyframes slidein {
  0% {
    margin-left: -400px;
  }
  50% {
    margin-left: -400px;
  }
  65% {
    margin-left: 0;
  }
  100% {
    margin-left: 0;
  }
}

@keyframes reveal {
  0% {
    opacity: 0;
    width: 0;
  }
  50% {
    opacity: 1;
    width: 0;
  }
  55% {
    opacity: 1;
    width: 1.1em;
  }
}
