/* Custom Styling for Jdu Spát.cz - Inženýrství a výroba matrací */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --night-900: #0a0f1d;
  --night-800: #0f172a;
  --night-700: #1e293b;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Custom subtle scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Glassmorphism effects */
.glass-nav {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-dark {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gradient text */
.gradient-text-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glowing orbs for background ambiance */
.glow-orb-blue {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb-amber {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Mattress Anatomy 3D Layer Visualizer */
.layer-slice {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.layer-slice:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 30px -10px rgba(37, 99, 235, 0.3);
}

.layer-slice.active {
  ring: 2px solid #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.35);
  transform: translateY(-3px) scale(1.015);
}

/* Pulsing badge animation */
@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.04);
  }
}

.animate-pulse-subtle {
  animation: pulse-subtle 3s ease-in-out infinite;
}

/* Card hover lifts */
.card-hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
}

/* Configurator option radio card styling */
.config-option input[type="radio"]:checked + div {
  border-color: #2563eb;
  background-color: #eff6ff;
  color: #1e3a8a;
}

.config-option input[type="radio"]:checked + div .indicator-dot {
  background-color: #2563eb;
  border-color: #2563eb;
}

/* Toast alert */
#toastNotification {
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

#toastNotification.show {
  transform: translateY(0);
}

/* Custom styling for FAQ items */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.faq-item.open .faq-content {
  max-height: 500px;
  transition: max-height 0.45s cubic-bezier(0.9, 0, 0.8, 0.2);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Pressure Map visualization grid styling */
.pressure-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  padding: 8px;
  background: #0f172a;
  border-radius: 8px;
}

.pressure-cell {
  height: 14px;
  border-radius: 2px;
  transition: background 0.4s ease;
}
