/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
*/

/* ============================================================
   SKY BOOSTS — cyberpunk / cyan theme overrides
   ============================================================ */

/* Font files are preloaded as <link> tags in layouts/master.njk (faster
   than an in-CSS @import, which the browser can't discover until this
   stylesheet itself has downloaded). Fallback stacks are defined below so
   text still renders cleanly if the Google Fonts request is ever blocked. */
:root {
  --font-display: 'Rajdhani', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, monospace;
}

/* Crisper text rendering overall */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01' on, 'cv01' on;
  line-height: 1.6;
  letter-spacing: 0.005em;
}

/* Headings get the techy display font. Tighter tracking at the very
   largest sizes keeps condensed Rajdhani from feeling loose/gappy on
   hero titles, while small headings keep a touch more air. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  letter-spacing: -0.01em;
  line-height: 1.05;
}

h2, h3 {
  letter-spacing: 0em;
}

/* Body copy stays a touch looser for readability, capped so long-form
   paragraphs (FAQ, policy pages) don't stretch into unreadable line
   lengths on wide screens */
p {
  line-height: 1.7;
}

.prose p,
.text-block p {
  max-width: 72ch;
}

/* Prices use the same bold display treatment as the big stat numbers —
   consistent with the rest of the type system, and Rajdhani's numerals
   sit cleaner at small sizes than a squeezed monospace face did. */
[x-text^="appCurrency"] {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2em;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

/* Big stat numbers (31.8K, 403 Total Customers, ...) read as bold and
   confident in the display font at large sizes; the dense monospace face
   that works for small inline prices looks cramped and busy blown up to
   text-5xl, so give stats their own treatment. */
.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Ambient background: grid + scanlines ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 200, 224, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 224, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
}

/* Soft drifting glow orbs, layered behind the particles canvas */
#particles-js::before,
#particles-js::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: skyOrbFloat 22s ease-in-out infinite;
}

#particles-js::before {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 200, 224, 0.14) 0%, transparent 70%);
}

#particles-js::after {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: -150px;
  background: radial-gradient(circle, rgba(0, 136, 160, 0.12) 0%, transparent 70%);
  animation-delay: -9s;
}

@keyframes skyOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -30px) scale(1.06); }
  66%      { transform: translate(-20px, 25px) scale(0.95); }
}

/* ---------- Cards & buttons: soft radius + glow + shine sweep ---------- */
.bg-card\/75,
.bg-card\/90,
.bg-card\/25,
a[class*="bg-accent-500"],
a[class*="border-accent-500"],
button[class*="bg-accent-500"] {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.bg-card\/75::before,
.bg-card\/90::before,
a[class*="bg-accent-500"]::before,
a[class*="border-accent-500"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    rgba(0, 200, 224, 0.18),
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.bg-card\/75:hover::before,
.bg-card\/90:hover::before,
a[class*="bg-accent-500"]:hover::before,
a[class*="border-accent-500"]:hover::before {
  left: 100%;
}

.bg-card\/75:hover,
.bg-card\/90:hover {
  border-color: rgba(0, 200, 224, 0.35) !important;
}

a[class*="bg-accent-500"]:hover,
button[class*="bg-accent-500"]:hover {
  box-shadow: 0 0 24px rgba(0, 200, 224, 0.35);
}

a[class*="border-accent-500"]:hover {
  box-shadow: 0 0 18px rgba(0, 200, 224, 0.25);
}

/* Accent text gets a subtle glow, matching the hero/section highlights */
.text-accent-500 {
  text-shadow: 0 0 18px rgba(0, 200, 224, 0.22);
}

/* Nav + footer: slightly glassy feel */
nav .bg-card\/75,
footer {
  backdrop-filter: blur(6px);
}

/* ---------- Announcement / ticker bar glow ---------- */
.announcement {
  box-shadow: 0 0 20px rgba(0, 200, 224, 0.25);
}

/* ---------- Live purchase toast ---------- */
.live-purchase-card {
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(0, 200, 224, 0.18), 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ---------- Auto ON SALE badge ---------- */
.on-sale-badge {
  border-radius: 4px;
  box-shadow: 0 0 14px rgba(252, 211, 77, 0.35);
}

/* ---------- Search trigger (navbar icon + kbd hint) ---------- */
.search-trigger-btn kbd {
  border-radius: 4px;
  font-family: 'Space Mono', var(--font-mono);
  font-size: 0.7rem;
}

/* ---------- Online-now dot ping ---------- */
.pulsating {
  border-radius: 9999px;
}

/* ============================================================
   LIGHT / DARK MODE TOGGLE
   ============================================================ */

/* Light palette overrides — everything on the site is built on
   these CSS variables, so swapping them re-themes the whole shop */
html.light-mode {
  --cl-background: 246, 248, 250;
  --cl-card: 255, 255, 255;
  --cl-t-primary: 15, 23, 28;
  --cl-t-accent: 15, 23, 28;
}

html.light-mode body {
  background-color: rgb(246, 248, 250) !important;
}

/* Soften the cyberpunk grid/scanline overlay so it stays subtle on white */
html.light-mode body::before {
  background-image:
    linear-gradient(rgba(0, 150, 170, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 150, 170, 0.05) 1px, transparent 1px);
}

html.light-mode body::after {
  display: none;
}

/* Hairline borders / faint fills that assumed a dark background */
html.light-mode .border-white\/5,
html.light-mode .border-t-white\/5,
html.light-mode .border-y-white\/5,
html.light-mode .border-x,
html.light-mode .\!border-white\/5 {
  border-color: rgba(15, 23, 28, 0.1) !important;
}

html.light-mode .bg-white\/5,
html.light-mode .bg-white\/10,
html.light-mode .bg-white\/\[0\.025\],
html.light-mode .bg-white\/\[0\.03\],
html.light-mode .hover\:bg-white\/5:hover,
html.light-mode .hover\:bg-white\/10:hover,
html.light-mode .hover\:bg-white\/20:hover,
html.light-mode .hover\:bg-white\/\[0\.025\]:hover,
html.light-mode .group:hover .group-hover\:bg-white\/\[0\.025\] {
  background-color: rgba(15, 23, 28, 0.045) !important;
}

html.light-mode .bg-\[\#070d19\],
html.light-mode .bg-\[\#0c1427\],
html.light-mode .hover\:bg-\[\#070d19\]:hover {
  background-color: #eef2f5 !important;
}

html.light-mode .shadow-2xl {
  --tw-shadow-color: rgba(15, 23, 28, 0.08);
}

/* Cards keep a crisp edge instead of the dark glow treatment */
html.light-mode .bg-card\/75,
html.light-mode .bg-card\/90 {
  border-color: rgba(15, 23, 28, 0.08) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 28, 0.06);
}

html.light-mode .bg-card\/75:hover,
html.light-mode .bg-card\/90:hover {
  border-color: rgba(0, 150, 170, 0.35) !important;
}

html.light-mode .text-accent-500 {
  text-shadow: none;
}

/* ---------- Theme toggle icon swap ---------- */
.theme-icon-moon {
  display: none;
}

html.light-mode .theme-icon-sun {
  display: none;
}

html.light-mode .theme-icon-moon {
  display: inline-block !important;
}

/* ============================================================
   SECTION EYEBROW BADGE (used above section headings)
   ============================================================ */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background: rgba(0, 200, 224, 0.1);
  border: 1px solid rgba(0, 200, 224, 0.3);
  color: rgb(0, 200, 224);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.section-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: currentColor;
}

/* ---------- Verified reviewer tag ---------- */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(87, 242, 135, 0.1);
  border: 1px solid rgba(87, 242, 135, 0.25);
  color: #57f287;
  font-size: 0.65rem;
  font-weight: 700;
}

/* ---------- Telegram promo card ---------- */
.telegram-card {
  border-radius: 12px;
}

.telegram-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(87, 242, 135, 0.1);
  border: 1px solid rgba(87, 242, 135, 0.25);
  color: #57f287;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ============================================================
   SCROLL-IN REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance for grid items */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }
.reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal:nth-child(8) { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   PRODUCT CARD — stronger glow on hover, no zoom
   ============================================================ */
.product-card {
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  border-color: rgba(0, 200, 224, 0.5) !important;
  box-shadow: 0 0 10px rgba(0, 200, 224, 0.25), 0 0 45px rgba(0, 200, 224, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
}

html.light-mode .product-card:hover {
  box-shadow: 0 0 10px rgba(0, 150, 170, 0.15), 0 0 40px rgba(0, 150, 170, 0.2), 0 8px 20px rgba(15, 23, 28, 0.1);
}

/* ============================================================
   CURSOR-FOLLOWING GLOW
   ============================================================ */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(calc(var(--mx, 50vw) - 50%), calc(var(--my, 50vh) - 50%));
  background: radial-gradient(circle, rgba(0, 200, 224, 0.12) 0%, rgba(0, 200, 224, 0.04) 45%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

#cursor-glow.active {
  opacity: 1;
}

html.light-mode #cursor-glow {
  background: radial-gradient(circle, rgba(0, 150, 170, 0.06) 0%, rgba(0, 150, 170, 0.02) 45%, transparent 70%);
  mix-blend-mode: multiply;
}

@media (hover: none) {
  #cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cursor-glow {
    display: none;
  }
}


/* Rounded navigation, using the shop's configured palette. */
[data-component-id="navbar"] .sky-nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  padding: 4px;
  border: 1px solid rgba(var(--cl-accent), 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--cl-accent), 0.055), transparent), rgb(var(--cl-card));
  box-shadow: inset 0 1px 0 rgba(var(--cl-t-primary), 0.035), 0 4px 16px rgba(0, 0, 0, 0.12);
  overflow-x: auto;
}

[data-component-id="navbar"] .sky-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(var(--cl-t-primary), 0.65);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

[data-component-id="navbar"] .sky-nav-link:hover {
  background-color: rgba(var(--cl-accent), 0.07);
  color: rgb(var(--cl-t-primary));
}

[data-component-id="navbar"] .sky-nav-link.is-active {
  background-color: rgba(var(--cl-accent), 0.16);
  border-color: rgba(var(--cl-accent), 0.13);
  color: rgb(var(--cl-accent));
}

[data-component-id="navbar"] .sky-nav-link:focus-visible {
  outline: 2px solid rgb(var(--cl-accent));
  outline-offset: -2px;
}

html.light-mode [data-component-id="navbar"] .sky-nav-link.is-active {
  color: rgb(var(--cl-t-primary));
}

@media (max-width: 1023px) {
  [data-component-id="navbar"] .sky-nav-links {
    margin: 4px auto;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 24px;
  }
  [data-component-id="navbar"] .sky-nav-link {
    min-height: 44px;
    padding-inline: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-component-id="navbar"] .sky-nav-link { transition: none; }
}

/* Compact header with the navigation centered on the full header. */
[data-component-id="navbar"] .sky-nav-links { padding: 3px; gap: 2px; }
[data-component-id="navbar"] .sky-nav-link { min-height: 34px; padding: 6px 14px; }
@media (min-width: 1024px) {
  [data-component-id="navbar"] .sky-nav-shell { padding: 10px 18px; }
  [data-component-id="navbar"] .sky-nav-row {
    position: relative;
    flex-wrap: nowrap;
    min-height: 48px;
  }
  [data-component-id="navbar"] .sky-nav-brand { padding: 0; flex-shrink: 0; }
  [data-component-id="navbar"] .sky-nav-brand > a { padding: 0; }
  [data-component-id="navbar"] .sky-nav-controls { margin: 0 auto 0 20px; }
  [data-component-id="navbar"] .sky-nav-menu { padding: 0; gap: 10px; }
  [data-component-id="navbar"] .sky-nav-links {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 540px);
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  [data-component-id="navbar"] .sky-nav-menu { gap: 6px; }
  [data-component-id="navbar"] .sky-nav-menu > button,
  [data-component-id="navbar"] .sky-nav-menu > a { padding-inline: 8px; }
  [data-component-id="navbar"] .sky-nav-menu select { width: 64px !important; }
  [data-component-id="navbar"] .sky-nav-link { padding-inline: 10px; }
}
@media (max-width: 1023px) {
  [data-component-id="navbar"] .sky-nav-shell { padding: 0; }
  [data-component-id="navbar"] .sky-nav-link { min-height: 44px; }
}
