/**
 * =============================================================================
 * SECTION 3: THE HANGING POLAROID MEMORY LINE
 * - Stable, elegant hanging Polaroid cards (ZERO wobbling)
 * - Authentic horizontal catenary jute rope
 * - Realistic photo paper texture with Caveat handwriting
 * - Cute peeking kitten easter egg
 * =============================================================================
 */

.polaroids-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-parchment);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(200, 109, 81, 0.08) 0%, transparent 60%),
    linear-gradient(rgba(246, 241, 231, 0.6) 1px, transparent 1px);
  padding: 80px 24px 140px 24px;
  overflow: hidden;
  z-index: 30;
}

.polaroids-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 10;
}

.polaroids-subtitle-tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 6px;
}

.polaroids-main-title {
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--color-charcoal-deep);
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

/* Gallery & Catenary Rope */
.polaroid-gallery-wrapper {
  position: relative;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
}

.catenary-rope-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.polaroids-line-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 4vw, 56px);
  padding-top: 36px;
  z-index: 5;
}

/* =============================================================================
 * POLAROID CARD (STABLE & ELEGANT - ZERO WOBBLING)
 * ============================================================================= */
.polaroid-card-item {
  position: relative;
  width: min(85vw, 280px);
  cursor: pointer;
  transform: rotate(var(--card-rotation, 0deg));
  transform-origin: 50% 0px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  user-select: none;
}

.polaroid-card-item:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.03);
  z-index: 40;
}

/* Clothespin Peg */
.polaroid-clothespin-svg {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  filter: drop-shadow(0 3px 5px rgba(43, 41, 39, 0.25));
  pointer-events: none;
}

/* Cute Peeking Kitten on Top of Frame */
.perched-cute-cat-wrapper {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  pointer-events: none;
  transition: transform 0.25s ease;
}

.polaroid-card-item:hover .perched-cute-cat-wrapper {
  transform: translateX(-50%) translateY(-3px);
}

.cute-cat-peek-tag {
  position: absolute;
  top: 4px;
  right: -10px;
  background: #FFF0F2;
  border: 1px solid #FFB2BA;
  color: #FF4D6D;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(255, 77, 109, 0.2);
}

.perched-cat-batting-paw {
  animation: catBatPaw 1.8s ease-in-out infinite alternate;
  transform-origin: 68px 40px;
}

@keyframes catBatPaw {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(14deg); }
}

/* Polaroid Paper Body */
.polaroid-frame-body {
  position: relative;
  background-color: #FAF8F5;
  padding: 13px 13px 20px 13px;
  border-radius: 4px;
  box-shadow: 
    0 10px 24px -4px rgba(43, 41, 39, 0.14),
    0 2px 6px rgba(43, 41, 39, 0.06);
  border: 1px solid rgba(223, 205, 180, 0.6);
  transition: box-shadow 0.35s ease;
}

.polaroid-card-item:hover .polaroid-frame-body {
  box-shadow: 
    0 24px 48px -8px rgba(43, 41, 39, 0.28),
    0 8px 18px rgba(43, 41, 39, 0.12);
}

/* Inner Photo Window */
.polaroid-photo-window {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  background-color: #EDE5D5;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.polaroid-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.polaroid-card-item:hover .polaroid-image {
  transform: scale(1.03);
}

/* Handwritten Caption Chin */
.polaroid-caption-chin {
  margin-top: 12px;
  text-align: center;
}

.polaroid-handwritten-caption {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 600;
  color: #2B2927;
  line-height: 1.25;
  margin-bottom: 4px;
}

.polaroid-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-terracotta);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
