/* PAGE CONTAINER */
.explore-page {
  min-height: 100vh;
  background: #f4f1ee;
  padding: 2rem 1.2rem;
  padding-top: max(2rem, env(safe-area-inset-top));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* BACK BUTTON */
.back-button {
  position: absolute;
  top: 1.5rem;
  left: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  color: #5a5a5a;
  font-size: 0.85rem;
  font-family: system-ui, -apple-system, serif;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  padding: 0.5rem;
}

.back-button:hover {
  opacity: 1;
}

.back-button svg {
  opacity: 0.7;
}

/* CONTAINER */
.explore-container {
  padding: 2.5rem 1.8rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  animation: fadeIn 0.8s ease;
}

/* TITLES */
.explore-title {
  font-size: 1.6rem;
  font-weight: 400;
  color: #3a3a3a;
  margin-bottom: 0.5rem;
  text-align: center;
  font-family: system-ui, -apple-system, serif;
  letter-spacing: 0.02em;
  margin-top: 3rem;
}

.explore-subtitle {
  font-size: 1rem;
  color: #3a3a3a;
  opacity: 0.7;
  margin-bottom: 2.5rem;
  text-align: center;
  font-family: system-ui, -apple-system, serif;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .explore-page {
    padding: 1.5rem 1rem;
  }
  
  .explore-title {
    font-size: 1.5rem;
    margin-top: 2.5rem;
  }
  
  .explore-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
  }
}

/* GRID LAYOUT */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .explore-grid {
    grid-template-columns: 1fr;
  }
}

/* CARDS */
.explore-card {
  background-color: rgba(255, 255, 255, 0.5);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px;
  padding: 1.8rem 1.4rem;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.35s ease, box-shadow 0.5s ease;
  border: 1px solid rgba(255,255,255,0.55);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  transition: background 0.4s ease;
}

.explore-card.revealed .card-overlay {
  background: rgba(255, 255, 255, 0.75);
}

.card-content {
  position: relative;
  z-index: 1;
}

.explore-card.revealed {
  box-shadow: 
    0 0 25px rgba(212, 175, 85, 0.4),
    0 0 50px rgba(212, 175, 85, 0.2),
    0 8px 20px rgba(0,0,0,0.06);
  border-color: rgba(212, 175, 85, 0.3);
}

.explore-room-text {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
}

.explore-room-text.show {
  opacity: 0.85;
  max-height: 200px;
  animation: revealText 7s ease forwards;
}

@keyframes revealText {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  80% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .explore-card {
    padding: 1.4rem 1.2rem;
    border-radius: 14px;
    min-height: 160px;
  }
  
  .explore-card h3 {
    font-size: 1.05rem;
  }
  
  .explore-card p {
    font-size: 0.88rem;
  }
  
  .back-button {
    min-height: 44px;
    padding: 0.6rem 0.8rem;
  }
}

@media (max-width: 380px) {
  .explore-page {
    padding: 1rem 0.8rem;
  }
  
  .explore-grid {
    gap: 1rem;
  }
  
  .explore-card {
    min-height: 140px;
    padding: 1.2rem 1rem;
  }
  
  .explore-title {
    font-size: 1.3rem;
  }
  
  .explore-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }
}

/* FOOTER */
.explore-footer {
  text-align: center;
  margin-top: 2.5rem;
  padding-bottom: 2rem;
}

.enter-temple-btn {
  display: inline-block;
  background: linear-gradient(135deg, #d4c8be 0%, #e6ddd4 50%, #c9bfb3 100%);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: #5a5a5a;
  font-family: system-ui, -apple-system, serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.08),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.enter-temple-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 600px) {
  .explore-footer {
    margin-top: 2rem;
  }
  
  .enter-temple-btn {
    padding: 0.85rem 1.6rem;
    font-size: 0.85rem;
  }
}


/* card content */
.explore-room-title {
  margin-bottom: 0.6rem;
  color: #333;
  font-size: 1.15rem;
  font-weight: 400;
  font-family: system-ui, -apple-system, serif;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.explore-room-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #555;
  font-family: system-ui, -apple-system, serif;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* HOVER ANIMATION */
.explore-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.09);
}

/* PAGE FADE-IN */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.explore-page {
  animation: fadeIn 0.8s ease;
}
