/* === Japan Chapter Styles === */

.japan-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Photo frame with torn edge + rotation */
.photo-frame {
  position: relative;
  display: inline-block;
  padding: 12px;
  background: #fff;
  box-shadow: 2px 4px 12px rgba(44, 24, 16, 0.15);
  transform: rotate(var(--rotation, -2deg));
  transition: transform 0.3s ease;
}

.photo-frame::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg,
    transparent 0%, #fff 3%, transparent 6%, #fff 9%, transparent 12%,
    #fff 15%, transparent 18%, #fff 22%, transparent 25%, #fff 28%,
    transparent 31%, #fff 35%, transparent 38%, #fff 42%, transparent 45%,
    #fff 48%, transparent 52%, #fff 55%, transparent 58%, #fff 62%,
    transparent 65%, #fff 68%, transparent 72%, #fff 75%, transparent 78%,
    #fff 82%, transparent 85%, #fff 88%, transparent 92%, #fff 95%, transparent 100%
  );
}

.photo-frame img { width: 100%; display: block; }

.photo-frame .caption {
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 8px;
}

/* Washi tape strips */
.washi-tape {
  position: absolute;
  width: 120px;
  height: 28px;
  background: var(--accent-soft);
  opacity: 0.85;
  transform: rotate(var(--tape-rotation, -5deg));
  z-index: 10;
  border-top: 1px dashed rgba(255,255,255,0.4);
  border-bottom: 1px dashed rgba(255,255,255,0.4);
}

.washi-tape--gold { background: rgba(212, 168, 73, 0.5); }
.washi-tape--red { background: rgba(192, 57, 43, 0.25); }
.washi-tape--pink { background: rgba(248, 200, 212, 0.7); }
.washi-tape--sakura { background: rgba(248, 200, 212, 0.55); }

/* Passport stamp */
.passport-stamp {
  width: 100px;
  height: 100px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  transform: rotate(var(--stamp-rotation, -8deg));
  opacity: 0.85;
  position: relative;
}

.passport-stamp::before {
  content: '★';
  position: absolute;
  top: 8px;
  font-size: 10px;
}

.passport-stamp .city {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.passport-stamp .date {
  font-size: 0.68rem;
  letter-spacing: 1px;
}

/* Pinned note (for fun quotes) */
.pinned-note {
  background: #fffde7;
  padding: 16px 20px;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--text-secondary);
  transform: rotate(var(--note-rotation, 1deg));
  box-shadow: 2px 3px 8px rgba(0,0,0,0.1);
  position: relative;
  max-width: 320px;
}

.pinned-note::before {
  content: '📌';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.45rem;
}

/* Photo collage grid */
.photo-collage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.photo-collage .photo-frame:nth-child(odd) { --rotation: -3deg; }
.photo-collage .photo-frame:nth-child(even) { --rotation: 2deg; }
.photo-collage .photo-frame:nth-child(3n) { --rotation: -1deg; }
