/* style.css - statyczna wersja Tailwind subset + custom animacje i layout */

:root {
  --font-medieval: "MedievalSharp", serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: sans-serif;
}

body {
  line-height: 1;
}

img, video {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Utilities (subset imitujący użyte klasy Tailwind) */
.hidden { display: none !important; }
.opacity-0 { opacity: 0 !important; }
.opacity-100 { opacity: 1 !important; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.w-screen { width: 100vw; }
.h-screen { height: 100vh; }
.transition-all { transition: all .5s ease; }
.transition-opacity { transition: opacity .3s ease; }
.duration-300 { transition-duration: .3s; }

/* Aplikacja */
.app-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
  transition: opacity .5s ease;
}

.app-container.fade-out {
  opacity: 0;
}

/* Splash */
.splash {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url("https://olakdyv9rlasnk3q.public.blob.vercel-storage.com/tlo3-MYp5LLqnGQY72LEC7zaH1hn7iDHseh.jpg");
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInSplash .3s ease;
}

@keyframes fadeInSplash {
  from { opacity: 0; }
  to { opacity: 1; }
}

.logo-wrapper {
  width: 1100px;
  max-width: 80vw;
  position: relative;
}

.logo-img {
  width: 100%;
  height: auto;
}

/* Dynamiczne tło */
.background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image .5s ease-in-out;
  animation: cameraShakeSlow 8s infinite linear;
  transform-origin: center;
  transform: scale(1.05);
  z-index: 0;
}

/* Wideo dymu */
.smoke-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  z-index: 2;
  pointer-events: none;
}

/* Klikalne obszary */
.areas {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.hit-area {
  position: absolute;
  top: 23.67%;
  width: 16.63%;
  height: 56.97%;
  cursor: pointer;
  background: rgba(255,255,255,0);
  transition: opacity .3s ease;
  outline: none;
}

.hit-area:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.area1 { left: 18.83%; }
.area2 { left: 41.40%; }
.area3 { left: 63.93%; }

/* Teksty */
.choose-label,
.choose-desc {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  z-index: 20;
  text-shadow: 2px 2px 4px rgba(0,0,0,.8);
}

.choose-label {
  bottom: 20%;
  font-size: 2rem;
  letter-spacing: 2px;
}

.choose-desc {
  bottom: 15%;
  font-size: .85rem;
  max-width: 600px;
  padding: 0 .75rem;
  line-height: 1.2;
}

/* Font */
.font-medievalsharp {
  font-family: var(--font-medieval);
}

/* Animacje z projektu */
@keyframes logoAnimation {
  0% {
    opacity: 0;
    transform: scale(.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-logo {
  animation: logoAnimation 2s ease-out forwards;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.animate-blink {
  animation: blink 1s infinite;
}

@keyframes cameraShakeSlow {
  0% { transform: translateX(0px) translateY(2px) rotate(0deg) scale(1.05); }
  15% { transform: translateX(-3px) translateY(3px) rotate(.1deg) scale(1.05); }
  30% { transform: translateX(-8px) translateY(0px) rotate(0deg) scale(1.05); }
  60% { transform: translateX(0px) translateY(-2px) rotate(-.1deg) scale(1.05); }
  75% { transform: translateX(7px) translateY(2px) rotate(.1deg) scale(1.05); }
  100% { transform: translateX(0px) translateY(2px) rotate(0deg) scale(1.05); }
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0,0,0,.8);
}

/* Dostępność */
.hit-area:focus-visible,
.hit-area:hover {
  /* niewidzialne pola - opcjonalnie można dodać delikatny outline debug */
  /* box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset; */
}

/* Fallback dla preferencji redukcji ruchu */
@media (prefers-reduced-motion: reduce) {
  .animate-logo,
  .animate-blink,
  .background {
    animation: none !important;
  }
  .background {
    transform: none;
  }
}

/* Minimalne wsparcie dla mniejszych ekranów */
@media (max-width: 900px) {
  .logo-wrapper {
    width: 90vw;
  }
  .choose-label { font-size: 1.6rem; }
  .choose-desc { font-size: .75rem; }
}