/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 20, 0.9);
  z-index: 10000; /* Powyżej wszystkiego, nawet menu */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px;
  box-sizing: border-box;
}

.popup-overlay.show {
  opacity: 1;
}

.popup-content {
  position: relative;
  max-width: 600px;
  width: 100%;
  background: transparent;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-overlay.show .popup-content {
  transform: scale(1) translateY(0);
}

.popup-close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  font-size: 24px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.popup-close:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: rotate(90deg);
}

.popup-image-link {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 2px solid rgba(255, 215, 0, 0.3);
  transition: border-color 0.3s ease;
}

.popup-image-link:hover {
  border-color: rgba(255, 215, 0, 0.8);
}

.popup-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.popup-image-link:hover .popup-image {
  transform: scale(1.02);
}

.popup-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  background: linear-gradient(135deg, #ffd700 0%, #ffbf00 100%);
  color: #000;
  padding: 14px 30px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.popup-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, #ffe033 0%, #ffd000 100%);
}

/* Responsywność */
@media (min-width: 768px) {
   .popup-close {
      top: -20px;
      right: -50px;
      background: transparent;
      border: none;
      font-size: 32px;
   }
   .popup-close:hover {
      background: transparent;
   }
}