/* Loaded A.F 305 - Core Styling & Design System */

@import url('https://fonts.googleapis.com/css2?family=Anybody:ital,wght@0,400;0,700;0,800;1,700;1,800&family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

body {
  background-color: #050505;
  color: #e5e2e1;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Miami Vice Neon Palm Trees Background Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../images/miami-palms-bg.svg');
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  transition: opacity 0.5s ease;
}

body > * {
  position: relative;
  z-index: 1;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-interactive {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-interactive:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 71, 154, 0.35);
  transform: translateY(-3px);
}

/* Neon Glow Effects */
.neon-pink-glow:hover {
  box-shadow: 0 0 24px rgba(255, 71, 154, 0.45);
}

.neon-cyan-glow:hover {
  box-shadow: 0 0 24px rgba(69, 232, 218, 0.45);
}

.neon-border-pink {
  border-color: #ff479a;
  box-shadow: 0 0 15px rgba(255, 71, 154, 0.25);
}

.neon-border-cyan {
  border-color: #45e8da;
  box-shadow: 0 0 15px rgba(69, 232, 218, 0.25);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0e0e0e;
}

::-webkit-scrollbar-thumb {
  background: #353534;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff479a;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #131313;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #353534;
  border-radius: 3px;
}

/* Floating Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(1.5deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Material Symbols Adjustments */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Cart Drawer & Slide Transitions */
.slide-over-enter {
  transform: translateX(100%);
}

.slide-over-active {
  transform: translateX(0%);
}

/* Toast Notification Animation */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-item {
  animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Light Mode High-Contrast Typography & Card Descriptions */
html:not(.dark) body {
  background-color: #f8f9fb;
  color: #1a1d1c;
}

html:not(.dark) .glass-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

/* Make card descriptions and subtitles a crisp, dark slate grey in Light Mode */
html:not(.dark) .text-on-surface-variant,
html:not(.dark) .text-zinc-300,
html:not(.dark) .text-zinc-400,
html:not(.dark) .text-gray-400,
html:not(.dark) .glass-card p {
  color: #2b312e !important;
  font-weight: 500;
}

/* Ensure card headings are crisp dark in Light Mode */
html:not(.dark) .glass-card h1,
html:not(.dark) .glass-card h2,
html:not(.dark) .glass-card h3,
html:not(.dark) .glass-card h4,
html:not(.dark) .text-white {
  color: #111413 !important;
}

/* Keep neon accents bright and clear */
html:not(.dark) .text-primary {
  color: #d81e76 !important;
}

html:not(.dark) .text-secondary {
  color: #0b8f83 !important;
}

html:not(.dark) body::before {
  opacity: 0.55;
}

/* Custom Input, Textarea & Select Styling for Perfect Contrast */
input, textarea, select {
  background-color: #18181b !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  caret-color: #ff479a !important;
}

input::placeholder, textarea::placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px #18181b inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

html:not(.dark) input,
html:not(.dark) textarea,
html:not(.dark) select {
  background-color: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #d1d5db !important;
}

html:not(.dark) input::placeholder,
html:not(.dark) textarea::placeholder {
  color: #6b7280 !important;
}

html:not(.dark) input:-webkit-autofill,
html:not(.dark) input:-webkit-autofill:hover, 
html:not(.dark) input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111827 !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
}

select {
  color-scheme: dark;
}

select option {
  background-color: #18181b !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 10px;
}

html:not(.dark) select {
  color-scheme: light;
}

html:not(.dark) select option {
  background-color: #ffffff !important;
  color: #111827 !important;
}
