/* ==========================================================================
   Carolina Anniversary Site - Dedicated Gifts Styles (Retro Pop Sticker Style)
   ========================================================================== */

/* Gifts Main Page Layout */
.gifts-page-container {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding: 110px 16px 60px 16px; /* Space for home-navbar */
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Section 1: 4 Equal Quadrants Surprises Grid (2x2)
   -------------------------------------------------------------------------- */
.stickers-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.stickers-header-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  font-weight: 900;
  color: var(--text-primary);
  text-shadow: 3px 3px 0px var(--sky-blue);
  text-align: center;
  max-width: 600px;
  line-height: 1.2;
}

.gifts-grid-quadrants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 25px;
  width: 100%;
  height: 580px; /* Symmetrical desktop quadrant layout height */
  min-height: 500px;
}

.sticker-card {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

/* The peelable sticker layer */
.sticker-peel-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: var(--bold-border);
  border-radius: 20px;
  background-color: #ffffff;
  box-shadow: var(--shadow-offset);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.75s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
  transform-origin: top left; /* Peeling lifts back diagonally from top-left corner! */
}

/* Sticker peel-back vector rotate */
.sticker-card.peeled .sticker-peel-layer {
  transform: rotate3d(1.1, -1, 0.2, 125deg) translate(-15px, -15px) scale(0.85);
  opacity: 0.12;
  pointer-events: none;
}

.sticker-badge-circle {
  width: 104px; /* Increased size to feel bolder as the singular element */
  height: 104px;
  border-radius: 50%;
  border: 3px solid var(--text-primary); /* Bold zine-style border */
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 4px 4px 0 var(--text-primary);
  transition: transform 0.2s ease;
}

.sticker-peel-layer:hover .sticker-badge-circle {
  transform: scale(1.1) rotate(-4deg);
}

.sticker-emoji {
  font-size: 3.5rem; /* Exaggerated pop-size emoji */
  filter: drop-shadow(2px 2px 0 var(--text-primary));
}

/* Underneath Revealed Surprises Card */
.sticker-reveal-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border: var(--bold-border);
  border-radius: 20px;
  box-shadow: var(--shadow-offset);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center vertically now that text is removed */
  align-items: center; /* Center horizontally */
  text-align: center;
  z-index: 1;
  animation: revealSpring 0.5s var(--transition-spring);
  cursor: pointer; /* Visually indicate that the revealed card can be clicked to close */
}

@keyframes revealSpring {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.reveal-title {
  font-family: var(--font-serif);
  font-size: 2.3rem; /* Bolder size for clean presentation */
  font-style: italic;
  font-weight: 900;
  color: var(--royal-blue);
  text-shadow: 2.5px 2.5px 0 var(--pastel-yellow);
  line-height: 1.2;
}

.reveal-subtitle {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 10px;
  max-width: 80%;
  line-height: 1.35;
}

/* Styling overrides for all words in the Tea and Flower revealed tabs (Card 3 & 4) */
#sticker-card-3 .reveal-title,
#sticker-card-3 .reveal-subtitle,
#sticker-card-4 .reveal-title,
#sticker-card-4 .reveal-subtitle {
  font-family: var(--font-serif) !important;
  font-size: 2.3rem !important;
  font-style: italic !important;
  font-weight: 900 !important;
  color: var(--royal-blue) !important;
  text-shadow: 2.5px 2.5px 0 var(--pastel-yellow) !important;
  line-height: 1.2 !important;
  display: block !important;
  max-width: 90% !important;
  margin-top: 10px !important;
}

/* --------------------------------------------------------------------------
   Responsive Layout Scaling
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .gifts-page-container {
    padding: 120px 16px 40px 16px;
    gap: 25px;
  }
  
  .stickers-header-title {
    font-size: 1.6rem;
  }
  
  .gifts-grid-quadrants {
    grid-template-columns: 1fr; /* Stack vertically on phones */
    grid-template-rows: auto;
    height: auto;
    gap: 20px;
    max-width: 320px;
    width: 100%;
  }
  
  .sticker-card {
    height: 200px; /* Adjusted height for mobile sticker card boxes */
  }
  
  .reveal-title {
    font-size: 1.8rem; /* Scaled down for mobile screen width */
  }
  
  .reveal-subtitle {
    font-size: 0.95rem;
    margin-top: 6px;
    max-width: 90%;
  }

  #sticker-card-3 .reveal-title,
  #sticker-card-3 .reveal-subtitle,
  #sticker-card-4 .reveal-title,
  #sticker-card-4 .reveal-subtitle {
    font-size: 1.8rem !important;
  }
}
