/* ===== 앨범 네비게이션 ===== */
.nav-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,0.25);
}

/* ===== 업로드 폼 ===== */
.upload-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upload-preview {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  border: 2px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg-secondary);
  cursor: pointer;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-placeholder {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.upload-select-btn {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.upload-select-btn:hover {
  background: var(--color-purple-bg);
}

.upload-date,
.upload-caption,
.upload-author {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  color: var(--color-text);
  font-size: 0.9rem;
  font-family: inherit;
}

.upload-btn {
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--color-purple), var(--color-olive));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.upload-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(155, 107, 176, 0.3);
}

.upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== 타임라인 ===== */
.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
  border-radius: 1px;
}

.timeline-empty {
  text-align: center;
  color: var(--color-text-secondary);
  padding: 40px 0;
  font-size: 0.9rem;
}

.timeline-loading {
  text-align: center;
  padding: 20px;
  color: var(--color-text-secondary);
}

.timeline-item {
  position: relative;
  margin-bottom: 12px;
  padding-left: 16px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -17px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-purple);
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-purple);
}

/* 접힌 카드 */
.timeline-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--color-bg-secondary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
}

.timeline-card:hover {
  border-color: var(--color-purple);
}

.timeline-card.expanded {
  border-color: var(--color-purple);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.timeline-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.timeline-card-info {
  flex: 1;
  min-width: 0;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-purple);
  letter-spacing: 0.03em;
}

.timeline-count {
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.timeline-arrow {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* 펼친 사진들 */
.timeline-photos {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-purple);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-photo-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
}

.timeline-photo-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-photo {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 12px var(--color-shadow);
}

.timeline-photo:hover {
  transform: scale(1.02);
}

.timeline-caption {
  font-size: 0.88rem;
  color: var(--color-text);
  margin-top: 8px;
  line-height: 1.5;
}

.timeline-author {
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.timeline-delete {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  margin-top: 4px;
  opacity: 0.5;
  font-family: inherit;
}

.timeline-delete:hover {
  opacity: 1;
  color: #e55;
}

/* ===== 사진 모달 ===== */
.photo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.photo-modal {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.photo-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1rem;
  cursor: pointer;
  z-index: 101;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.photo-modal-img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: 12px;
  object-fit: contain;
}

.photo-modal-info {
  text-align: center;
  margin-top: 10px;
  color: #fff;
}

.photo-modal-date {
  font-size: 0.8rem;
  opacity: 0.7;
}

.photo-modal-caption {
  font-size: 1rem;
  margin-top: 4px;
}
