/* tapety.css */
/* --- POPRAWIONE TAPETY - SPÓJNY STYL DLA WSZYSTKICH --- */
.tapety-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
  width: 100%;
  align-items: start;
}

.tapeta-box {
  background: linear-gradient(180deg, rgba(123,226,255,0.08), rgba(0,0,0,0.12));
  border: 1px solid rgba(123,226,255,0.2);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-1), 0 0 0 1px rgba(255,255,255,0.02);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: visible;
  height: auto;
  min-height: 420px;
}

/* Efekt podświetlenia krawędzi dla WSZYSTKICH tapet */
.tapeta-box::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(45deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  animation: rotate-gradient 3s linear infinite;
  background-size: 400% 400%;
}

@keyframes rotate-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tapeta-box:hover::after {
  opacity: 0.6;
}

/* Hover efekty dla WSZYSTKICH tapet */
.tapeta-box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-1), 0 0 40px rgba(123,226,255,0.3), 0 0 0 1px rgba(123,226,255,0.2);
  border-color: rgba(123,226,255,0.4);
}

.tapeta-box img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 2px solid rgba(123,226,255,0.3);
  transition: all 0.3s var(--ease);
  background: linear-gradient(135deg, rgba(15,23,42,0.8), rgba(7,16,41,0.9));
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.tapeta-box:hover img {
  transform: scale(1.08);
  border-color: rgba(123,226,255,0.6);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 20px rgba(123,226,255,0.3);
}

.tapeta-box h2 {
  margin: 0 0 12px 0;
  font-size: 1.3rem;
  color: white;
  line-height: 1.3;
  word-wrap: break-word;
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tapeta-box p {
  margin: 0 0 20px 0;
  line-height: 1.5;
  color: var(--muted);
  flex-grow: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 0.95rem;
}

.tapeta-box button {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  color: #022;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 15px rgba(155,255,184,0.3);
  width: 100%;
  font-size: 1rem;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.tapeta-box button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
}

.tapeta-box button:hover::before {
  left: 100%;
}

.tapeta-box button:hover {
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(155,255,184,0.5);
}

/* --- ETYKIETA NOWA DLA TAPET 5, 6, 8 Z PULSUJĄCYM PODŚWIETLENIEM --- */
.tapeta-box:nth-child(5) .new-badge,
.tapeta-box:nth-child(6) .new-badge,
.tapeta-box:nth-child(8) .new-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff6b6b, #ffa726);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(255,107,107,0.4);
  animation: pulse-glow 2s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes pulse-glow {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
  }
  50% { 
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255,107,107,0.6), 0 0 15px rgba(255,107,107,0.4);
  }
}