/* Styl kiosku dotykowego - wariant B: ciemny, granatowy (digital signage)
   Ten sam akcent co monitory-dotykowe.pl (#2563eb), ale dominuje granat
   #1a2332 zamiast jasnego tla - mocniejszy kontrast z daleka na stoisku. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #1a2332;
  color: #f1f5f9;
  -webkit-user-select: none;
  user-select: none;
}

.kiosk-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Ekran główny --- */
.kiosk-topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 48px 60px 24px;
}

.kiosk-logo {
  height: 90px;
  max-width: 220px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
}

.kiosk-topbar h1 {
  margin: 0;
  font-size: 2.8rem;
  color: #fff;
}

.kiosk-slogan {
  margin: 8px 0 0;
  font-size: 1.3rem;
  color: #94a3b8;
}

.kiosk-menu {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  /* dolny margines powiększony, żeby kafelki nie chowały się pod większym
     widgetem QR (.mini-qr-widget) w prawym dolnym rogu */
  padding: 40px 60px 190px;
}

.kiosk-tile {
  background: #1e2e42;
  border: 2px solid #2d3d52;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-decoration: none;
  color: #f1f5f9;
  padding: 40px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.kiosk-tile:active {
  transform: scale(0.97);
  border-color: #2563eb;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.3);
}

.kiosk-tile-icon {
  font-size: 3.2rem;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #2d3d52;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kiosk-tile-label {
  font-size: 1.9rem;
  font-weight: 600;
}

/* --- Nagłówek podstron --- */
.kiosk-header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 30px 48px;
  border-bottom: 2px solid #2d3d52;
}

.kiosk-header h1 {
  font-size: 2.1rem;
  margin: 0;
  color: #fff;
}

.btn-back {
  font-size: 1.2rem;
  color: #f1f5f9;
  text-decoration: none;
  background: #1e2e42;
  border: 2px solid #2d3d52;
  border-radius: 14px;
  padding: 14px 24px;
}

.btn-back:active { transform: scale(0.97); }

/* --- Treść podstron --- */
.content-page {
  padding: 40px 60px 80px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.content-page h2 {
  font-size: 2.2rem;
  margin-top: 0;
  color: #fff;
}

.content-page h3 {
  color: #fff;
}

.content-page .lead {
  font-size: 1.5rem;
  color: #60a5fa;
  font-weight: 500;
}

.content-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.content-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #2d3d52;
}

/* --- Ilustracja branzowa (zastepstwo za brakujace zdjecia firmowe) --- */
.branzowa-ilustracja-wrap {
  margin-top: 32px;
  background: #1e2e42;
  border: 1px solid #2d3d52;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  justify-content: center;
}

.branzowa-ilustracja {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.il-monitor-ramka { fill: #0f172a; }
.il-ekran { fill: #26374d; }
.il-kafelek { fill: #37506e; }
.il-kafelek-akcent { fill: #2563eb; }
.il-kafelek-cienki { fill: #2d425c; }
.il-obwod path { stroke: #3b5a80; stroke-width: 2; }
.il-obwod circle { fill: #60a5fa; }
.il-ripple {
  fill: none;
  stroke: #60a5fa;
  stroke-width: 2;
  opacity: 0;
  transform-origin: 211px 99px;
  animation: il-ripple-anim 2.6s ease-out infinite;
}
.il-ripple-1 { animation-delay: 0s; }
.il-ripple-2 { animation-delay: 0.5s; }
.il-ripple-3 { animation-delay: 1s; }

@keyframes il-ripple-anim {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* --- Oferta --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.product-card {
  background: #1e2e42;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #f1f5f9;
  border: 1px solid #2d3d52;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-card:active {
  border-color: #2563eb;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
}

.product-card img,
.product-card-noimg {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f8fafc;
  padding: 12px;
}

.product-card-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.2rem;
}

.product-card-body {
  padding: 24px;
  border-top: 1px solid #2d3d52;
}

.product-card-body h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: #fff;
}

.category-tag {
  display: inline-block;
  background: #26374d;
  color: #60a5fa;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.product-details-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.product-details-gallery img {
  height: 320px;
  border-radius: 14px;
  object-fit: contain;
  background: #f8fafc;
  padding: 12px;
  border: 1px solid #2d3d52;
}

.spec-list {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #cbd5e1;
}

/* --- Kontakt --- */
.contact-page {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.contact-details p {
  font-size: 1.4rem;
  margin: 12px 0;
  color: #cbd5e1;
}

.contact-details strong {
  color: #fff;
}

.qr-image-large {
  width: 260px;
  height: 260px;
  background: #fff;
  padding: 16px;
  border-radius: 18px;
}

.contact-qr {
  text-align: center;
  font-size: 1.1rem;
  color: #94a3b8;
}

/* --- Tryb bezczynności --- */
.idle-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #0f172a;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
}

.idle-overlay.is-visible {
  display: flex;
}

.idle-slide-wrap {
  text-align: center;
  max-width: 900px;
  padding: 0 40px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.idle-slide-wrap.idle-fade-out {
  opacity: 0;
}

.idle-image {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.idle-caption h2 {
  font-size: 2.4rem;
  margin: 32px 0 12px;
  color: #fff;
}

.idle-caption p {
  font-size: 1.3rem;
  color: #94a3b8;
}

.idle-hint {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.idle-hint-text {
  font-size: 1.2rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.idle-tap-icon {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idle-tap-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.25);
}

.idle-tap-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #60a5fa;
  opacity: 0;
  animation: idle-tap-ripple 1.8s ease-out infinite;
}

.idle-tap-ring-2 { animation-delay: 0.6s; }

@keyframes idle-tap-ripple {
  0% { transform: scale(0.3); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* --- Skromny widget QR (wszędzie poza stroną Kontakt) --- */
.mini-qr-widget {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(30, 46, 66, 0.9);
  border: 1px solid #2d3d52;
  border-radius: 24px;
  padding: 16px 28px 16px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.mini-qr-image {
  width: 104px;
  height: 104px;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  display: block;
}

.mini-qr-text {
  font-size: 1.4rem;
  color: #cbd5e1;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .mini-qr-widget { right: 16px; bottom: 16px; padding: 12px 20px 12px 12px; }
  .mini-qr-image { width: 80px; height: 80px; }
  .mini-qr-text { font-size: 1.15rem; }
}

@media (max-width: 900px) {
  .kiosk-menu { grid-template-columns: 1fr; }
  .kiosk-topbar h1 { font-size: 2.2rem; }
}

/* --- Skromny link do panelu admina (wszystkie strony kiosku) ---
   Celowo bez podwyzszonego z-index: w trybie bezczynnosci ma zostac
   zakryty przez .idle-overlay (z-index 1000), zeby nie rozpraszac na
   ekranie zachecajacym do dotkniecia. */
.footer-admin-link {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 5;
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: none;
  opacity: 0.7;
}

.footer-admin-link:hover,
.footer-admin-link:focus {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-admin-link { left: 14px; bottom: 14px; font-size: 0.75rem; }
}
