/* Główne style dla Mapy Skarbów KANS */

/* Niestandardowe czcionki i zmienne */
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&family=Lato:wght@400;700&display=swap');

:root {
  --primary-color: #9333ea; /* fiolet */
  --secondary-color: #06b6d4; /* turkus */
  --accent-color: #facc15; /* żółty */
  --dark-bg: #111827;
  --darker-bg: #0c1220;
}

/* Style globalne */
body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.5px;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Press Start 2P', cursive;
  text-shadow: 0 0 10px rgba(147, 51, 234, 0.7);
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.container {
  position: relative;
}

/* Efekt pikselowy dla nagłówka */
h1 {
  image-rendering: pixelated;
  position: relative;
  animation: glow 3s ease-in-out infinite alternate;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px rgba(147, 51, 234, 0.7);
  }
  100% {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.9), 0 0 30px rgba(250, 204, 21, 0.5);
  }
}

/* Stylizacja mapy skarbów */
.treasure-map {
  position: relative;
  transition: transform 0.5s ease;
}

.treasure-map:hover {
  transform: scale(1.02);
}

.treasure-map::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, transparent 70%, rgba(6, 182, 212, 0.4) 100%);
  pointer-events: none;
}

/* Stylizacja elementów skarbu */
.treasure-item {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.4);
}

.treasure-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(6, 182, 212, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 6s infinite linear;
  pointer-events: none;
  z-index: 1;
}

@keyframes shine {
  0% {
    top: -100%;
    left: -100%;
  }
  100% {
    top: 100%;
    left: 100%;
  }
}

.treasure-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.treasure-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.treasure-btn:hover::after {
  left: 100%;
}

/* Kod vouchera */
.voucher-code {
  background: rgba(250, 204, 21, 0.95);
  color: #000000;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  display: inline-block;
  margin: 0.5rem 0;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.6);
  text-shadow: none;
}

.voucher-info {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.activation-link {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s;
}

.activation-link:hover {
  color: var(--accent-color);
}

/* Stylizacja FAQ */
.faq-item {
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.faq-question {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.faq-question svg {
  transition: transform 0.3s ease;
}

.faq-question.active svg {
  transform: rotate(180deg);
}

.faq-answer.active {
  max-height: 300px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Efekty na tle */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(17, 24, 39, 0.9) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 24, 39, 0.9) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}

/* Stylizacja formularza */
input[type="email"], input[type="text"] {
  transition: all 0.3s ease;
  box-shadow: 0 0 0 transparent;
  font-size: 1rem;
}

input[type="email"]:focus, input[type="text"]:focus {
  box-shadow: 0 0 0 2px var(--secondary-color);
}

/* Piksele dla puntków na mapie (dodane w JS) */
.treasure-point {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--accent-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(250, 204, 21, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
  }
}

/* Sekcja instrukcji */
.instructions-section {
  background-color: rgba(17, 24, 39, 0.8);
  border-radius: 0.5rem;
  border: 1px solid var(--primary-color);
  padding: 1.5rem;
  margin-top: 2rem;
}

.instructions-section h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.instructions-section ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.instructions-section li {
  margin-bottom: 0.5rem;
}

/* Responsywność */
@media (max-width: 768px) {
  h2 {
    font-size: 1.4rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  body::before {
    background-size: 15px 15px;
  }
  
  .voucher-code {
    font-size: 1.2rem;
  }
}

.voucher-code span {
  /* Usunięte */
} 