/* HGH PowerStore - 2025 Design System */

/* ===== 2025 TYPOGRAPHY SYSTEM ===== */

/* Font Loading Optimization */
@font-face {
  font-family: 'Inter Variable';
  src: url('./fonts/Inter-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

/* Typography Classes */
.font-clash {
  font-family: 'Clash Display', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.font-montserrat {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.font-inter {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

.font-dm-sans {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

/* ===== 2025 COLOR SYSTEM ===== */

/* Dopamine Color Variables */
:root {
  --golden-primary: #FFC107;
  --amber-primary: #F59E0B;
  --amber-secondary: #D97706;
  --amber-accent: #FCD34D;
  --primary-gold: #FFC107;
  --black: #000000;
  --muted: #1C1C1E;
  --card: #1C1C1E;
  --border: #3C4043;
}

/* ===== NEUMORPHIC DESIGN SYSTEM ===== */

/* Neumorphic Buttons */
.btn-neuro {
  background: linear-gradient(145deg, #1e1e1e, #0a0a0a);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.4),
    -8px -8px 16px rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: none;
  transition: all 0.3s ease;
}

.btn-neuro:hover {
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.5),
    -12px -12px 24px rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-neuro:active {
  box-shadow: 
    inset 4px 4px 8px rgba(0, 0, 0, 0.4),
    inset -4px -4px 8px rgba(255, 255, 255, 0.05);
  transform: translateY(0);
}

/* Neumorphic Cards */
.card-neuro {
  background: linear-gradient(145deg, #1C1C1E, #0F0F0F);
  box-shadow: 
    20px 20px 40px rgba(0, 0, 0, 0.3),
    -20px -20px 40px rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.card-neuro:hover {
  box-shadow: 
    25px 25px 50px rgba(0, 0, 0, 0.4),
    -25px -25px 50px rgba(255, 255, 255, 0.03);
  transform: translateY(-8px) scale(1.02);
}

/* ===== CARD EFFECTS ===== */

/* Card Hover Effects - Simple Scale Only */
.card-3d {
  transition: transform 0.3s ease;
}

.card-3d:hover {
  transform: scale(1.05);
}

/* Disable 3D effects on mobile and touch devices */
@media (max-width: 768px) {
  .card-3d {
    transform: none !important;
    transition: none !important;
  }
  
  .card-3d:hover {
    transform: none !important;
  }
  
  .product-card:hover {
    transform: none !important;
  }
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .card-3d:hover {
    transform: none !important;
  }
  
  .product-card:hover {
    transform: none !important;
  }
  
  .product-image-container:hover .product-image {
    transform: none !important;
    filter: brightness(1) contrast(1.1) !important;
  }
}

/* ===== CUSTOM LOGO STYLES ===== */

.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-container:hover .logo-image {
  transform: scale(1.05);
}

/* ===== DOSE SELECTION STYLES ===== */

.dose-btn {
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.dose-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.2);
}

.dose-btn.active {
  background: linear-gradient(135deg, var(--golden-primary), var(--amber-primary));
  color: #000000;
  border-color: var(--golden-primary);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
  transform: translateY(-1px);
}

.dose-btn:active {
  transform: translateY(0);
}

/* Product Image Transitions */
.product-card img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.02);
}

/* Glass Morphism */
.glass-morphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== ORGANIC SHAPES ===== */

/* Animated Blob Shapes */
.blob-shape {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: blob-morph 8s ease-in-out infinite;
}

@keyframes blob-morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% {
    border-radius: 50% 30% 60% 40% / 30% 50% 60% 70%;
  }
  75% {
    border-radius: 40% 70% 30% 60% / 70% 30% 40% 50%;
  }
}

/* Wave Dividers */
.wave-divider {
  position: relative;
  overflow: hidden;
}

.wave-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(45deg, var(--golden-primary), var(--amber-primary));
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}

/* ===== MICRO-INTERACTIONS ===== */

/* Hover Lift Effect */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Glow Effect */
.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.glow-effect:hover::before {
  left: 100%;
}

/* Pulse Animation */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
  }
}

/* ===== PRODUCT CARDS ===== */
/* Product cards now use responsive grid layout */

/* Enhanced Product Image Styling */
.product-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.product-image-container:hover {
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.product-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.product-image-container:hover::before {
  opacity: 1;
}

.product-image {
  transition: all 0.5s ease;
  filter: brightness(1) contrast(1.1);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.product-image-container:hover .product-image {
  transform: scale(1.1);
  filter: brightness(1.1) contrast(1.2);
}

.dose-badge {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 193, 7, 0.9));
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 215, 0, 0.5);
  }
}

/* Image Loading States */
.product-image {
  transition: all 0.5s ease;
  filter: brightness(1) contrast(1.1);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.product-image[loading="lazy"] {
  opacity: 0;
  transform: scale(0.95);
}

.product-image.loaded {
  opacity: 1;
  transform: scale(1);
}

/* Image Loading Skeleton */
.product-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.05) 25%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  z-index: 1;
}

.product-image.loaded + .product-image-container::after {
  display: none;
}

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

/* Mobile Image Optimizations */
@media (max-width: 768px) {
  .product-image-container {
    height: 12rem; /* 192px */
    padding: 0.5rem;
  }
  
  .product-image {
    padding: 0.25rem;
  }
  
  .dose-badge {
    font-size: 0.625rem; /* 10px */
    padding: 0.25rem 0.5rem;
  }
  
  .product-image-container .absolute.bottom-2.left-2 {
    font-size: 0.625rem; /* 10px */
    padding: 0.25rem 0.5rem;
  }
  
  /* Fix mobile product card spacing */
  .product-card {
    padding: 1.5rem !important;
  }
  
  /* Fix mobile button sizing */
  .dose-btn {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
    min-width: auto !important;
    flex: 1 !important;
    text-align: center !important;
  }
  
  /* Fix mobile grid spacing */
  .grid {
    gap: 1rem !important;
  }
}

/* Tablet Image Optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
  .product-image-container {
    height: 14rem; /* 224px */
    padding: 0.75rem;
  }
  
  .product-image {
    padding: 0.5rem;
  }
  
  /* Fix tablet product card spacing */
  .product-card {
    padding: 2rem !important;
  }
  
  /* Fix tablet button sizing */
  .dose-btn {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
  }
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--golden-primary), var(--amber-primary));
  transform-origin: left;
  z-index: 40; /* Lower than modals (z-50) */
}


/* ===== LOADING STATES ===== */

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #1C1C1E 25%, #2C2C2E 50%, #1C1C1E 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

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

/* Shimmer Effect */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile-First Breakpoints */
@media (max-width: 375px) {
  .font-clash {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .product-card {
    flex: 0 0 300px;
  }
  
  /* Smaller dose buttons on very small screens */
  .dose-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) {
  .product-card {
    flex: 0 0 400px;
  }
}

@media (min-width: 1024px) {
  .product-card {
    flex: 0 0 450px;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  .product-card {
    min-height: 500px;
  }
  
  .dose-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* ===== ACCESSIBILITY ===== */

/* High Contrast Focus */
*:focus {
  outline: 2px solid var(--golden-primary);
  outline-offset: 2px;
  outline-style: solid;
}

/* Enhanced focus for interactive elements */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--golden-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3);
}

/* Focus within for complex components */
.card-ios:focus-within {
  outline: 2px solid var(--golden-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --amber-primary: #F59E0B;
    --amber-secondary: #D97706;
    --amber-accent: #FCD34D;
  }
  
  .text-muted-foreground {
    color: #CCCCCC !important;
  }
  
  .bg-muted {
    background-color: #333333 !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .blob-shape {
    animation: none;
  }
  
  .hover-lift:hover {
    transform: none;
  }
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--golden-primary);
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  border-radius: 8px;
  z-index: 10000;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.skip-link:focus {
  top: 6px;
  background: #00BFFF;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

/* Keyboard navigation improvements */
.skip-link:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}

/* Ensure all interactive elements are keyboard accessible */
button, a, input, textarea, select, [tabindex] {
  position: relative;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
  button, a, input, textarea, select {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Mobile-first responsive typography */
  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    line-height: 1.5;
  }
  
  /* Mobile navigation improvements */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  /* Mobile product cards */
  .product-card {
    flex: 0 0 280px;
    margin: 0 1rem;
    min-height: auto;
  }
  
  /* Mobile dose selection improvements */
  .dose-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    min-width: auto;
    flex: 1;
    text-align: center;
  }
  
  /* Mobile optimizations */
  
  /* Mobile header fixes */
  .h-16 {
    height: 4rem !important;
  }
  
  /* Mobile logo text */
  .text-2xl {
    font-size: 1.25rem !important;
  }
  
  .text-xs {
    font-size: 0.625rem !important;
  }
  
  /* Mobile hero section */
  .text-6xl {
    font-size: 3rem !important;
  }
  
  .text-8xl {
    font-size: 4rem !important;
  }
  
  /* Mobile button fixes */
  .px-10 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-title {
    font-size: clamp(4rem, 8vw, 6rem);
  }
  
  .product-card {
    flex: 0 0 350px;
  }
}

/* Desktop optimizations */
@media (min-width: 1024px) {
  .hero-title {
    font-size: clamp(6rem, 10vw, 9rem);
  }
  
  .product-card {
    flex: 0 0 400px;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* GPU Acceleration */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* Critical CSS for above-the-fold content */
.hero-section {
  contain: layout style paint;
}

/* Lazy loading optimization */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Reduce layout shifts */
.aspect-ratio {
  aspect-ratio: 16/9;
}

/* Optimize animations for performance */
@media (prefers-reduced-motion: no-preference) {
  .animate-blob {
    animation: blob 7s infinite;
    will-change: transform;
  }
  
  .animate-float {
    animation: float 6s ease-in-out infinite;
    will-change: transform;
  }
}

/* Critical rendering path optimization */
.critical-content {
  contain: layout style;
}

/* Optimize font loading */
@font-face {
  font-family: 'Inter Variable';
  src: url('./fonts/Inter-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Optimized Animations */
.optimized-animation {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Mobile viewport height fix */
:root {
  --vh: 1vh;
}

.hero-section {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
}

/* Touch device optimizations */
.touch-device button,
.touch-device a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ===== MODAL STYLES ===== */
/* Modal styles removed - using direct WhatsApp links instead */

/* Gradient Text */
.text-gradient-golden {
  background: linear-gradient(135deg, var(--golden-primary), var(--amber-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, var(--primary-gold), var(--amber-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Shadow Utilities */
.shadow-golden {
  box-shadow: 0 4px 14px 0 rgba(255, 193, 7, 0.3);
}

.shadow-amber {
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.3);
}

.shadow-amber-secondary {
  box-shadow: 0 4px 14px 0 rgba(217, 119, 6, 0.3);
}

/* Border Gradients */
.border-gradient-golden {
  border: 2px solid;
  border-image: linear-gradient(135deg, var(--golden-primary), var(--amber-primary)) 1;
}

/* ===== DARK MODE SUPPORT ===== */

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000000;
    --foreground: #FFFFFF;
    --muted: #1C1C1E;
    --card: #1C1C1E;
  }
}

/* ===== PRINT STYLES ===== */

@media print {
  .no-print {
    display: none !important;
  }
  
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
}