/* ===================================================================
   PUKITO ROOM - AMBIENTE IMERSIVO DE QUARTO
   Sistema completo de visualização 3D do quarto do Pukito
   com móveis, decorações, janela, iluminação e profundidade
   =================================================================== */

/* ===================================================================
   CONTAINER DO QUARTO - Perspectiva 3D
   =================================================================== */

.pet-stage {
  /* Remove fundo simples */
  background: none !important;
  
  /* Adiciona perspectiva 3D */
  perspective: 1200px;
  perspective-origin: 50% 50%;
  
  /* Container do quarto */
  position: relative;
  overflow: visible;
  min-height: 450px;
  padding: 0;
}

/* ===================================================================
   ESTRUTURA DO QUARTO - Paredes, Chão e Teto
   =================================================================== */

.pet-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    /* Parede com textura de papel de parede */
    repeating-linear-gradient(
      90deg,
      #e8f4f8 0px,
      #e8f4f8 40px,
      #dce9f0 40px,
      #dce9f0 80px
    ),
    linear-gradient(180deg, #f0f8ff 0%, #e0f0f8 60%, #d0e8f0 100%);
  border-radius: 24px;
  z-index: 0;
  box-shadow: 
    inset 0 0 80px rgba(255, 255, 255, 0.5),
    inset 0 -20px 40px rgba(0, 0, 0, 0.05);
}

/* Chão do quarto - efeito de tábuas de madeira */
.pet-stage::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: 
    /* Tábuas de madeira */
    repeating-linear-gradient(
      90deg,
      #c9a77c 0px,
      #c9a77c 80px,
      #8b6f47 80px,
      #8b6f47 82px,
      #c9a77c 82px,
      #c9a77c 162px,
      #8b6f47 162px,
      #8b6f47 164px
    ),
    linear-gradient(180deg, rgba(139, 111, 71, 0) 0%, rgba(139, 111, 71, 0.2) 100%);
  border-radius: 0 0 24px 24px;
  z-index: 1;
  box-shadow: 
    inset 0 10px 20px rgba(0, 0, 0, 0.1),
    0 -5px 15px rgba(0, 0, 0, 0.1);
  transform: rotateX(-5deg);
  transform-origin: bottom center;
}

/* ===================================================================
   JANELA - Com vista externa e cortina
   =================================================================== */

.pet-room__window {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 140px;
  height: 180px;
  background: 
    /* Céu azul com nuvens */
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.8) 0%, transparent 20%),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.6) 0%, transparent 25%),
    linear-gradient(180deg, #87ceeb 0%, #b0d9f0 100%);
  border-radius: 12px 12px 8px 8px;
  border: 8px solid #6b4423;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.3);
  z-index: 2;
  overflow: hidden;
}

/* Divisória da janela (cruz) */
.pet-room__window::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background: #6b4423;
  transform: translateY(-50%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.pet-room__window::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #6b4423;
  transform: translateX(-50%);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

/* Sol brilhando pela janela */
.pet-room__sun {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 40px;
  height: 40px;
  background: 
    radial-gradient(circle, #fff9e6 0%, #ffe066 40%, #ffb700 100%);
  border-radius: 50%;
  box-shadow: 
    0 0 30px rgba(255, 230, 102, 0.8),
    0 0 50px rgba(255, 183, 0, 0.5);
  animation: sunGlow 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes sunGlow {
  0%, 100% {
    box-shadow: 
      0 0 30px rgba(255, 230, 102, 0.8),
      0 0 50px rgba(255, 183, 0, 0.5);
  }
  50% {
    box-shadow: 
      0 0 40px rgba(255, 230, 102, 1),
      0 0 70px rgba(255, 183, 0, 0.7);
  }
}

/* Cortina lateral */
.pet-room__curtain {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 50px;
  height: 200px;
  background: 
    repeating-linear-gradient(
      0deg,
      #f8b4d9 0px,
      #f8b4d9 10px,
      #f5a3cc 10px,
      #f5a3cc 20px
    );
  border-radius: 0 8px 8px 0;
  box-shadow: 
    -5px 0 15px rgba(0, 0, 0, 0.2),
    inset 5px 0 10px rgba(255, 255, 255, 0.3);
  z-index: 3;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
  animation: curtainWave 4s ease-in-out infinite;
  transform-origin: top left;
}

@keyframes curtainWave {
  0%, 100% {
    transform: translateX(0) rotateY(0deg);
  }
  50% {
    transform: translateX(-5px) rotateY(-3deg);
  }
}

/* ===================================================================
   MÓVEIS DO QUARTO
   =================================================================== */

/* Prateleira de brinquedos */
.pet-room__shelf {
  position: absolute;
  top: 50px;
  left: 30px;
  width: 100px;
  height: 80px;
  z-index: 2;
}

.pet-room__shelf-board {
  width: 100%;
  height: 12px;
  background: linear-gradient(180deg, #8b6f47 0%, #6b4f27 100%);
  border-radius: 4px;
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.2);
  margin-bottom: 20px;
}

/* Itens na prateleira */
.pet-room__shelf-items {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 0 10px;
  margin-top: -15px;
}

.pet-room__book {
  width: 15px;
  height: 40px;
  background: linear-gradient(90deg, #ff6b6b 0%, #ee5a6f 100%);
  border-radius: 2px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  transform: skewY(-2deg);
}

.pet-room__plant {
  width: 25px;
  height: 35px;
  background: 
    radial-gradient(circle at 50% 30%, #7cb342 0%, #558b2f 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
}

.pet-room__plant::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 12px;
  background: #d84315;
  border-radius: 0 0 8px 8px;
}

.pet-room__toy {
  width: 20px;
  height: 20px;
  background: 
    radial-gradient(circle, #ffd54f 0%, #ffb300 100%);
  border-radius: 50%;
  box-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.3),
    inset -2px -2px 5px rgba(0, 0, 0, 0.2);
}

/* Tapete no chão */
.pet-room__rug {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  background: 
    repeating-linear-gradient(
      90deg,
      #ff6b9d 0px,
      #ff6b9d 20px,
      #c44569 20px,
      #c44569 40px,
      #ff6b9d 40px,
      #ff6b9d 60px,
      #ffa502 60px,
      #ffa502 80px
    );
  border-radius: 50%;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 -5px 15px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transform: translateX(-50%) rotateX(-70deg) scale(1.2, 0.6);
  transform-origin: center bottom;
}

/* Franja do tapete */
.pet-room__rug::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10px;
  right: -10px;
  height: 8px;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 8px,
      rgba(255, 107, 157, 0.5) 8px,
      rgba(255, 107, 157, 0.5) 10px
    );
  filter: blur(1px);
}

.pet-room__rug::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10px;
  right: -10px;
  height: 8px;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 8px,
      rgba(255, 107, 157, 0.5) 8px,
      rgba(255, 107, 157, 0.5) 10px
    );
  filter: blur(1px);
}

/* Quadro na parede */
.pet-room__picture {
  position: absolute;
  top: 140px;
  left: 50px;
  width: 80px;
  height: 60px;
  background: 
    linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
  border: 6px solid #6b4423;
  border-radius: 4px;
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.3);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.pet-room__picture::before {
  content: '🌟';
  animation: pictureShine 2s ease-in-out infinite;
}

@keyframes pictureShine {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Luminária/Abajur */
.pet-room__lamp {
  position: absolute;
  top: 60px;
  right: 200px;
  width: 40px;
  height: 100px;
  z-index: 3;
}

.pet-room__lamp-shade {
  width: 50px;
  height: 35px;
  background: 
    linear-gradient(180deg, #ffe0b2 0%, #ffcc80 100%);
  border-radius: 0 0 25px 25px;
  box-shadow: 
    0 5px 15px rgba(255, 183, 0, 0.4),
    inset 0 -5px 10px rgba(255, 152, 0, 0.3);
  margin-left: -5px;
  position: relative;
}

.pet-room__lamp-shade::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #ffa726;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 167, 38, 0.8);
}

.pet-room__lamp-stand {
  width: 8px;
  height: 50px;
  background: linear-gradient(90deg, #795548 0%, #5d4037 100%);
  border-radius: 4px;
  margin: 5px auto 0;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

.pet-room__lamp-base {
  width: 30px;
  height: 10px;
  background: 
    radial-gradient(ellipse, #8d6e63 0%, #6d4c41 100%);
  border-radius: 50%;
  margin: 5px auto 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* ===================================================================
   ILUMINAÇÃO E SOMBRAS DINÂMICAS
   =================================================================== */

/* Luz ambiente do sol */
.pet-room__sunlight {
  position: absolute;
  top: 30px;
  right: 50px;
  width: 150px;
  height: 200px;
  background: 
    radial-gradient(
      ellipse at top right,
      rgba(255, 247, 179, 0.3) 0%,
      rgba(255, 247, 179, 0.1) 50%,
      transparent 100%
    );
  pointer-events: none;
  z-index: 4;
  animation: sunlightMove 8s ease-in-out infinite;
  filter: blur(10px);
}

@keyframes sunlightMove {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(0) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateX(10px) scale(1.1);
  }
}

/* Sombra do Pukito no chão */
.pukito-character::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: 
    radial-gradient(
      ellipse,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.1) 50%,
      transparent 100%
    );
  border-radius: 50%;
  z-index: 1;
  animation: shadowPulse 2s ease-in-out infinite;
}

@keyframes shadowPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateX(-50%) scale(1.1);
    opacity: 0.4;
  }
}

/* ===================================================================
   RESPONSIVIDADE DO QUARTO
   =================================================================== */

@media (max-width: 768px) {
  .pet-room__window {
    width: 100px;
    height: 130px;
    top: 20px;
    right: 20px;
  }
  
  .pet-room__sun {
    width: 30px;
    height: 30px;
    top: 15px;
    right: 15px;
  }
  
  .pet-room__curtain {
    width: 40px;
    height: 150px;
    right: 15px;
  }
  
  .pet-room__shelf {
    width: 80px;
    height: 60px;
    left: 20px;
    top: 40px;
  }
  
  .pet-room__lamp {
    right: 120px;
    transform: scale(0.8);
  }
  
  .pet-room__rug {
    width: 150px;
    height: 75px;
  }
  
  .pet-room__picture {
    width: 60px;
    height: 45px;
    left: 30px;
    top: 100px;
  }
}

@media (max-width: 480px) {
  .pet-stage {
    min-height: 350px;
  }
  
  .pet-room__window {
    width: 80px;
    height: 100px;
  }
  
  .pet-room__shelf {
    width: 60px;
    height: 50px;
  }
  
  .pet-room__lamp {
    display: none;
  }
  
  .pet-room__picture {
    width: 50px;
    height: 40px;
  }
}

/* ===================================================================
   EFEITOS ESPECIAIS - Partículas e Brilho
   =================================================================== */

/* Partículas de poeira flutuando no ar */
.pet-room__dust {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: dustFloat 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}

.pet-room__dust:nth-child(1) {
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.pet-room__dust:nth-child(2) {
  top: 40%;
  left: 60%;
  animation-delay: 2s;
}

.pet-room__dust:nth-child(3) {
  top: 60%;
  left: 80%;
  animation-delay: 4s;
}

@keyframes dustFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) translateX(20px);
    opacity: 0;
  }
}
