/* Flasherz Custom Styles */

:root {
  --cyan: #0f9cc6;
  --cyan-dark: #0a7a9e;
  --cyan-light: #3db8d8;
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-tertiary: #0f3460;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0b0;
  --text-muted: #666;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) var(--bg-secondary);
}

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

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

*::-webkit-scrollbar-thumb {
  background: var(--cyan-dark);
  border-radius: 3px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

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

/* Product card hover */
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(15, 156, 198, 0.15);
}

/* Product image */
.product-image-wrapper {
  position: relative;
  padding-bottom: 75%;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}

/* Category filter scrollbar */
.category-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

/* Quote panel slide */
.quote-panel {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-panel.closed {
  transform: translateX(100%);
}

/* Quote badge bounce */
@keyframes bounce-in {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.badge-bounce {
  animation: bounce-in 0.3s ease;
}

/* Form focus */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 3px rgba(15, 156, 198, 0.2);
}

/* Mobile nav overlay */
.nav-overlay {
  transition: opacity 0.3s ease;
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* Sale badge */
.sale-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e53e3e;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 5;
  text-transform: uppercase;
}

/* Toast notification */
.toast {
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Sticky header shadow on scroll */
.header-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Hero mosaic background */
@keyframes mosaic-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-25%, -15%); }
}

.hero-mosaic {
  animation: mosaic-drift 60s linear infinite alternate;
  filter: blur(1px) saturate(0.3);
}

.hero-mosaic img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

/* CTA button glow */
.btn-cta {
  position: relative;
  overflow: hidden;
}

.btn-cta::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, transparent, rgba(15, 156, 198, 0.3), transparent);
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-cta:hover::after {
  opacity: 1;
}
