/* Arkusz stylów motywu Immersive Glow z wideo w tle dla UCON */
:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --bg-dark-deep: #030712;
  --bg-dark-card: rgba(15, 23, 42, 0.45);
  --border-dark: rgba(255, 255, 255, 0.06);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --accent-blue: #60a5fa;
  --accent-red: #f87171;
}

body.glow-theme {
  background: linear-gradient(180deg, #0a0e1c 0%, #111a30 45%, #182544 75%, #0a0e1c 100%) !important;
  background-attachment: fixed !important;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Globalny Spotlight podążający za myszką */
.spotlight-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(59, 130, 246, 0.06), transparent 50%);
}

/* Szklany, nieprzytłaczający Header */
.glass-header {
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
}

/* Karta z poświatą krawędziową (Border Glow Card) */
.glow-card {
  position: relative;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 24px;
  overflow: hidden;
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(400px circle at var(--card-x, 0px) var(--card-y, 0px), rgba(59, 130, 246, 0.35), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 5;
}

.glow-card:hover {
  transform: translateY(-4px);
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Sekcja Hero z Wideo w tle */
.hero-video-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.video-bg-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.video-bg-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18; /* Bardzo subtelne tło */
  mix-blend-mode: screen;
}

.video-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 20%, var(--bg-dark-deep) 90%),
              linear-gradient(180deg, rgba(3, 7, 18, 0.4) 0%, var(--bg-dark-deep) 100%);
}

/* Eksplorator Rozwiązań (Interactive Office Showcase) */
.explorer-container {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: #01040a;
}

.explorer-panel {
  display: none;
  position: relative;
}

.explorer-panel.active {
  display: block;
  animation: panelFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes panelFade {
  from { opacity: 0; transform: scale(0.995); }
  to { opacity: 1; transform: scale(1); }
}

.explorer-panel img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Hotspots */
.spot {
  position: absolute;
  z-index: 30;
}

.spot-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #8b5cf6; /* Fioletowy kolor w stylu Logitech Teams */
  border: 2px solid #ffffff; /* Biała, grubsza ramka */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.6); /* Fioletowa poświata */
  padding: 0;
  outline: none;
}

.spot-btn::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.6); /* Fioletowy puls */
  animation: spotPulse 2s infinite;
}

@keyframes spotPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

.spot:hover .spot-btn {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

/* Tooltips */
.spot-tooltip {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 240px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 40;
  pointer-events: none;
}

.spot-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.92) transparent transparent transparent;
}

.spot:hover .spot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.spot-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.spot-tooltip h4 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 700;
}

.spot-tooltip p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Suwaki kalkulatora */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -6px;
  transition: background-color 0.2s, transform 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

input[type=range]:active::-webkit-slider-thumb {
  background: var(--accent-blue);
  transform: scale(1.1);
}

/* Wykres ROI */
.chart-box {
  background: rgba(9, 14, 26, 0.3);
  border-radius: 14px;
  border: 1px solid var(--border-dark);
}

/* Animacje Formularza Lead Magnet */
#lead-form {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Konwertery i ulepszenia */
.text-glow {
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}
.btn-primary {
  background: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}
.btn-secondary {
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Przycisk konfiguratora sal */
.room-hub-btn {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.room-hub-btn.active {
  background: var(--primary) !important;
  color: var(--text-primary) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
}
.room-hub-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: var(--text-primary) !important;
}

/* Wskaźnik kołowy i słupki w kokpicie */
#roi-circle {
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sugerowane karty produktów w konfiguratorze (podobnie do vektera.pl) */
.gear-card-dark {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.gear-card-dark:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateX(4px);
}

.gear-card-dark .text-white {
  font-size: 0.95rem !important; /* name */
}
.gear-card-dark .text-slate-400 {
  font-size: 0.85rem !important; /* desc */
}
.gear-card-dark .text-primary {
  font-size: 0.9rem !important; /* spec link */
  color: #60a5fa !important; /* make it light blue (highly visible) */
}

/* Niebieski tekst z poświatą */
.text-blue-glow {
  color: #60a5fa !important;
  text-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
}

/* Niebieskie przyciski w Poznaj pełną specyfikację */
.tab-btn {
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid rgba(59, 130, 246, 0.4);
  background: transparent;
  color: #60a5fa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tab-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.7);
}

.tab-btn.active {
  background: #2563eb !important; /* solid blue */
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

/* Styl formularzy: białe tło i czarna czcionka */
#contact-form-b2b input,
#contact-form-b2b textarea,
#lead-form input,
#hero-lead-form input {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 0.875rem !important;
}

#contact-form-b2b input::placeholder,
#contact-form-b2b textarea::placeholder,
#lead-form input::placeholder,
#hero-lead-form input::placeholder {
  color: #64748b !important;
}

#contact-form-b2b label {
  color: #ffffff !important;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* Zapewnienie czytelności stopki na ciemnym tle */
footer, footer p, footer a, footer span {
  color: #e2e8f0 !important; /* jasny szary */
}
footer a:hover {
  color: #ffffff !important;
}
footer h4 {
  color: #ffffff !important;
}

/* Fix layout shift across pages */
html { overflow-y: scroll; }
