@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --accent-ui: #61525a;
  --color-coconut: #f7f5f2;
  --text-base: #1a1918;
  --text-subtle: #736c64;

  --id-navy: #283750;
  --id-yellow: #fad24b;
  --id-cyan: #3dd3ee;
  --id-tangerine: #ff8c19;
  --id-lime: #b4dc19;
  --id-red: #fa551e;
  --id-plum: #78286e;
  --id-purple: #c8aff0;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--color-coconut);
  color: var(--text-base);
}

/* Custom utilities used by the original React version */
.draw-in-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawIn 2s ease-out forwards;
}

@keyframes drawIn {
  to { stroke-dashoffset: 0; }
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Small helper so modal works without layout shift */
body.modal-open { overflow: hidden; }

/* Keep modal content scrollable on mobile while page scroll is locked */
.modal-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.translate-ui {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 70;
}

.translate-fab {
  position: relative;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-subtle);
  box-shadow: 0 10px 24px rgba(40, 55, 80, 0.2);
  border: 1px solid rgba(40, 55, 80, 0.12);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.translate-fab:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(40, 55, 80, 0.24);
}

.translate-fab:focus-visible {
  outline: 3px solid rgba(40, 55, 80, 0.35);
  outline-offset: 2px;
}

.translate-fab svg {
  width: 26px;
  height: 26px;
}

.translate-menu {
  display: none;
  min-width: 132px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(40, 55, 80, 0.14);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(40, 55, 80, 0.2);
  backdrop-filter: blur(6px);
  padding: 6px;
}

.translate-ui.is-open .translate-menu {
  display: grid;
  gap: 4px;
}

.translate-menu-item {
  border: 0;
  background: transparent;
  color: var(--text-subtle);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
}

.translate-menu-item:hover {
  background: #f7f5f2;
}

.translate-menu-item.is-active {
  color: var(--text-base);
  font-weight: 600;
}

.google-translate-mount {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

body > .skiptranslate,
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

@media (max-width: 768px) {
  .translate-ui {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .translate-fab {
    width: 44px;
    height: 44px;
  }
}

.delay-05 { animation-delay: 0.05s; }
.delay-10 { animation-delay: 0.1s; }
.delay-15 { animation-delay: 0.15s; }
.delay-20 { animation-delay: 0.2s; }
.delay-25 { animation-delay: 0.25s; }
.delay-30 { animation-delay: 0.3s; }
.delay-35 { animation-delay: 0.35s; }
.delay-40 { animation-delay: 0.4s; }
.delay-45 { animation-delay: 0.45s; }

.promo-flip-card {
  perspective: 1200px;
}

.promo-flip-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.promo-flip-card.is-flipped .promo-flip-inner {
  transform: rotateY(180deg);
}

.promo-flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.promo-flip-front {
  transform: rotateY(0deg);
}

.promo-flip-back {
  transform: rotateY(180deg);
}
