/* day-shared.css — shared styles for all day pages */

/* ===== DAY HERO ===== */
.day-hero {
  position: relative; overflow: hidden;
  min-height: 340px;
  display: flex; align-items: flex-end;
  border-bottom: var(--border-thick);
}
.day-hero-deco { position: absolute; inset: 0; pointer-events: none; }
.hero-svg-deco { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-circle {
  position: absolute;
  border: 2px dashed;
  border-radius: 50%;
}
.day-hero-content {
  position: relative; z-index: 2;
  padding: 2.5rem 2rem 2rem;
  flex: 1;
}
.day-stamp { margin-bottom: 0.75rem; }
.day-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem,6vw,4rem);
  color: #fff;
  line-height: 1.05;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}
.day-subtitle {
  font-family: var(--font-sketch);
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
}
.atm-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-sketch); font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 99px; color: rgba(255,255,255,0.8);
}
.day-hero-emoji {
  font-size: 10rem; position: absolute;
  right: 3rem; bottom: -1rem;
  opacity: 0.12; pointer-events: none;
  animation: float 6s ease-in-out infinite;
  user-select: none;
}
@media(max-width:640px){ .day-hero-emoji { font-size:5rem; right:1rem; } }

/* ===== CONTENT ===== */
.day-content {
  max-width: 1000px; margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
  display: flex; flex-direction: column; gap: 3rem;
}
.content-section { display: flex; flex-direction: column; gap: 1rem; }

/* ===== TIMELINE ===== */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: flex; gap: 1rem; position: relative;
  padding-bottom: 1.5rem;
}
.tl-item::before {
  content: '';
  position: absolute; left: 9px; top: 24px; bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--ink) 0, var(--ink) 4px, transparent 4px, transparent 8px);
  opacity: 0.2;
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid var(--ink);
  flex-shrink: 0; margin-top: 4px;
  box-shadow: 3px 3px 0 var(--ink);
}
.tl-card {
  background: #fff;
  border: var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  flex: 1; position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tl-card:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow-md); }
.tl-time {
  font-family: var(--font-display); font-weight: 700; font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--day-color); margin-bottom: 0.25rem;
}
.tl-place {
  font-family: var(--font-display); font-weight: 900; font-size: 1rem;
  color: var(--ink); margin-bottom: 0.4rem;
}
.tl-desc {
  font-family: var(--font-sketch); font-size: 0.88rem;
  color: var(--ink2); line-height: 1.65;
}
.tl-emoji {
  position: absolute; right: 1rem; top: 1rem;
  font-size: 2rem; opacity: 0.2;
}

/* ===== PHOTO GRID ===== */
.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 0.75rem;
}
.photo-card {
  border: var(--border-thick);
  border-radius: 12px;
  overflow: hidden;
  cursor: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.photo-card.big { grid-row: span 2; }
.photo-card:hover { transform: translate(-3px,-3px) scale(1.02); box-shadow: var(--shadow-lg); }
.photo-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  transition: transform 0.3s;
}
.photo-card.big .photo-inner { font-size: 7rem; }
.photo-card:hover .photo-inner { transform: scale(1.08); }
.photo-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.6); color: #fff;
  font-family: var(--font-sketch); font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  transform: translateY(100%); transition: transform 0.2s;
}
.photo-card:hover .photo-label { transform: none; }
@media(max-width:600px) {
  .photo-grid { grid-template-columns:1fr 1fr; grid-template-rows:auto; }
  .photo-card.big { grid-row:span 1; grid-column:span 2; height:180px; }
  .photo-card { height:130px; }
}

/* ===== TWO COL ===== */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
@media(max-width:768px){ .two-col { grid-template-columns:1fr; } }

/* ===== JOURNAL ===== */
.learn-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
}
.learn-item:last-child { border-bottom: none; }
.learn-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.learn-item p {
  font-family: var(--font-sketch);
  font-size: 0.9rem; line-height: 1.7;
  color: var(--ink2);
}

/* ===== SPEECH BUBBLE ===== */
.speech-bubble {
  background: #fff;
  border: var(--border-thick);
  border-radius: 16px 16px 16px 4px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}
.speech-bubble::before {
  content: '';
  position: absolute; bottom: -14px; left: 1.5rem;
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 4px solid transparent;
  border-top: 14px solid var(--ink);
}
.speech-bubble::after {
  content: '';
  position: absolute; bottom: -10px; left: 1.6rem;
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 3px solid transparent;
  border-top: 12px solid #fff;
}
.speech-bubble p {
  font-family: var(--font-sketch);
  font-size: 0.95rem; line-height: 1.75;
  color: var(--ink2);
}
.speech-bubble p em { font-style: italic; color: var(--day-color); }

/* ===== SKILL CLOUD ===== */
.skill-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  border: 2.5px solid var(--sc, #e63946);
  border-radius: 99px;
  color: var(--sc, #e63946);
  background: transparent;
  transition: all 0.2s;
  cursor: default;
  animation: float 3s ease-in-out infinite alternate;
}
.skill-tag:nth-child(even) { animation-delay: 0.5s; animation-direction: alternate-reverse; }
.skill-tag:hover { background: var(--sc, #e63946); color: #fff; transform: scale(1.05) translateY(-2px); }

/* ===== MOOD ROW ===== */
.mood-row { display: flex; gap: 0.75rem; }
.mood-item { flex: 1; cursor: none; }
.mood-item:hover .flip-card-inner { transform: rotateY(180deg)!important; }

/* ===== DAY NAV ===== */
.day-nav-row {
  display: flex; gap: 1rem; justify-content: center;
  padding-top: 1rem;
  flex-wrap: wrap;
}

/* ===== PHOTO ZOOM ===== */
#photo-zoom.open { display: flex!important; animation: fade-in 0.3s; }
