/* BLUESKY STORE — Theme Variables & Base Styles */

/* ── Primary & Display Web Fonts (Poppins, Baloo 2, Battambang) ── */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800;900&family=Battambang:wght@400;700&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #38BDF8;
  /* Radiant Sky Blue */
  --primary-soft: #BAE6FD;
  /* Pastel Sky Blue */
  --primary-hover: #0EA5E9;
  /* Vibrant Electric Blue */
  --accent: #FFFFFF;
  /* Crisp Pure White */
  --accent-soft: #F0F9FF;
  /* Soft Ice White */
  --accent-hover: #E0F2FE;
  /* Light Ice Blue */
  --bg: #0B0F19;
  /* Ultra Deep Midnight Navy */
  --bg-deep: #070A12;
  --card-bg: rgba(15, 23, 42, 0.75);
  /* Dark Blue Frosted Glass Card */
  --card-bg-hover: rgba(30, 41, 59, 0.85);
  --card-border: rgba(56, 189, 248, 0.20);
  --card-border-hover: rgba(56, 189, 248, 0.50);
  --text: #FFFFFF;
  /* Primary Text (Pure White) */
  --text-muted: #94A3B8;
  /* Secondary Soft Slate-White Text */
  --text-dim: #64748B;
  /* Subtle Blue-Slate Text */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font-main: 'Poppins', 'Battambang', system-ui, -apple-system, sans-serif;
  --font-display: 'Baloo 2', 'Poppins', 'Battambang', cursive, sans-serif;
  --font-khmer: 'Battambang', 'Poppins', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --glow: 0 0 25px rgba(56, 189, 248, 0.35);
  --glow-blue: 0 0 30px rgba(14, 165, 233, 0.5);
  --glow-pink: 0 0 30px rgba(56, 189, 248, 0.5);
  --glow-white: 0 0 25px rgba(255, 255, 255, 0.4);
  --glass-bg: rgba(15, 23, 42, 0.85);
  --glass-border: rgba(56, 189, 248, 0.16);
  --green: #10B981;
  --green-soft: rgba(16, 185, 129, 0.15);
  --yellow: #F59E0B;
  --red: #EF4444;
  --bg-desktop-url: url('/images/bg-desktop.jpg');
  --bg-mobile-url: url('/images/bg-mobile.jpg');
  --bg-blur: 0px;
  --bg-opacity: 0.35;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
}

body,
html,
button,
input,
select,
textarea,
p,
span,
a,
label {
  font-family: var(--font-main);
}

/* Bubbly Display Font for Headings, Badges, Titles & Prices */
h1,
h2,
h3,
h4,
h5,
h6,
.brand-name,
.brand-title,
.section-title,
.card-title,
.card-badge,
.cat-pill,
.price-amount {
  font-family: var(--font-display);
}

html {
  height: 100%;
  touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  touch-action: pan-x pan-y;
}

/* Prevent auto-zooming on focus in iOS Safari */
input,
select,
textarea,
button {
  touch-action: manipulation;
}

@media (max-width: 768px) {

  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Ambient Ambient Artwork Background Layer (Desktop / PC / Mac / iPad) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--bg-desktop-url, url('/images/bg-desktop.jpg'));
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: var(--bg-opacity, 0.35);
  pointer-events: none;
  filter: blur(var(--bg-blur, 0px)) saturate(1.15) brightness(0.95);
  transition: background-image 0.4s ease, opacity 0.3s ease, filter 0.3s ease;
}

/* Subtle Dark Glassmorphism Radial Backdrop for crisp typography */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.14) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(11, 15, 25, 0.92) 100%);
  pointer-events: none;
}

/* Mobile View Background (iOS, Android, iPod - Screen Width <= 768px) */
@media (max-width: 768px) {
  body::before {
    background-image: var(--bg-mobile-url, url('/images/bg-mobile.jpg'));
    background-size: cover;
    background-position: center top;
    opacity: var(--bg-opacity, 0.4);
    filter: blur(var(--bg-blur, 0px)) saturate(1.2) brightness(0.95);
  }

  body::after {
    background: radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.16) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(11, 15, 25, 0.95) 100%);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ══════════════════════════════════════════════════════════════
   GLOBAL ANIMATIONS & HOVER SYSTEM (Storefront, Admin, Staff, Support)
   ══════════════════════════════════════════════════════════════ */

/* Keyframe Animations */
@keyframes pageSwitchIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.992);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sectionSlideUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalEnter {
  0% {
    opacity: 0;
    transform: scale(0.93) translateY(14px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeInBackdrop {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }

  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

@keyframes cardGlowPulse {

  0%,
  100% {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.15);
  }

  50% {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.35);
  }
}

@keyframes badgeShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

/* Page & Section View Switch Animations */
.page-switch-animated,
.topup-page-section,
.catalog-section,
.support-main-content,
.staff-section.active,
.admin-section.active {
  animation: sectionSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Modals & Popups Animation */
.modal-overlay.active {
  animation: fadeInBackdrop 0.22s ease-out forwards;
}

.modal-overlay.active .modal-box,
.admin-modal.active .admin-modal-box {
  animation: modalEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Global Interactive Hover Transitions */
button,
.btn,
[role="button"] {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

button:active,
.btn:active,
[role="button"]:active {
  transform: scale(0.96) !important;
}

/* Form Inputs Hover & Focus Transitions */
input,
select,
textarea {
  transition: border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

input:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
  border-color: rgba(56, 189, 248, 0.4);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
  outline: none;
}