/* 활동 기록 페이지 전용 스타일 (공통 css/style.css 변수 연동) */

.activities-main {
  word-break: keep-all;
  line-height: 1.65;
}

.activities-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 상단 소개 영역 */
.activities-hero {
  padding: 52px 0 40px;
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid #edf2f8;
}

.page-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--point-color);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-title {
  margin: 14px 0 12px;
  font-size: 2.1rem;
  font-weight: 800;
  color: #1f2937;
  letter-spacing: -0.02em;
}

.page-desc {
  max-width: 680px;
  margin: 0 0 32px;
  font-size: 1.02rem;
  color: #556070;
}

/* 요약 카드 4칸 */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.summary-card {
  padding: 20px 22px;
  background: var(--bg-color);
  border: 1px solid #e4ecf6;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(35, 68, 115, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7a90;
}

.summary-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--point-color);
}

.summary-sub {
  font-size: 0.84rem;
  color: #667085;
}

/* 공통 섹션 헤더 */
.timeline-section,
.collab-section,
.gallery-section {
  padding: 52px 0 12px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.section-title {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #1f2937;
}

.section-sub {
  margin: 0;
  font-size: 0.94rem;
  color: #667085;
}

/* 필터 및 정렬 컨트롤 */
.timeline-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn,
.sort-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #dce6f2;
  background: #fff;
  color: #4b5563;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.filter-btn:hover,
.sort-btn:hover {
  border-color: var(--point-color);
  color: var(--point-color);
}

.filter-btn.active {
  background: var(--point-color);
  border-color: var(--point-color);
  color: #fff;
}

.sort-btn {
  background: #f6f9fd;
  color: #334155;
}

/* 타임라인 리스트 */
.timeline-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 19px;
  width: 2px;
  background: #d7e5f7;
}

.timeline-item {
  position: relative;
  padding-left: 58px;
  margin-bottom: 26px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item[hidden] {
  display: none;
}

.timeline-marker {
  position: absolute;
  top: 22px;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eef5ff;
  border: 2px solid var(--point-color);
  color: var(--point-color);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: center;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid #e5edf6;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(28, 55, 90, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.timeline-card:hover {
  border-color: #c5dbf5;
  box-shadow: 0 10px 26px rgba(28, 55, 90, 0.08);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--point-color);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-meeting {
  background: #eaf3ff;
  color: #2563eb;
}

.badge-dev {
  background: #ecfdf3;
  color: #15803d;
}

.badge-release {
  background: #f3e8ff;
  color: #7e22ce;
}

.badge-done {
  background: #f1f5f9;
  color: #475569;
}

.badge-progress {
  background: #fff7ed;
  color: #c2410c;
}

.badge-upcoming {
  background: #eff6ff;
  color: #1d4ed8;
}

.timeline-title {
  margin: 0 0 10px;
  font-size: 1.22rem;
  font-weight: 700;
  color: #1e293b;
}

.timeline-summary {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: #475569;
}

.timeline-points {
  margin: 0 0 16px;
  padding-left: 18px;
  color: #334155;
  font-size: 0.91rem;
}

.timeline-points li {
  margin-bottom: 5px;
}

.timeline-points li:last-child {
  margin-bottom: 0;
}

.timeline-points code,
.collab-list code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #1e40af;
  font-size: 0.84em;
}

.timeline-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.timeline-owner {
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
}

.tag-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  padding: 3px 9px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.78rem;
  color: #475569;
}

/* 타임라인 우측 사진 영역 */
.timeline-figure {
  margin: 0;
  text-align: center;
}

.photo-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #e2ebf5;
  border-radius: 12px;
  background: #f8fbff;
  overflow: hidden;
  cursor: pointer;
}

.photo-trigger img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.22s ease;
}

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

.zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.76);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
}

.timeline-figure figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #64748b;
}

/* 회의 주요 합의 사항 & 협업 원칙 */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.collab-box {
  padding: 26px 28px;
  background: #f9fbfe;
  border: 1px solid #e3ecf7;
  border-radius: 16px;
}

.collab-box-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
}

.collab-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.92rem;
  color: #475569;
}

.collab-list li {
  margin-bottom: 10px;
}

.collab-list li:last-child {
  margin-bottom: 0;
}

.collab-list strong {
  color: #1e293b;
}

/* 스냅샷 갤러리 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.gallery-card {
  text-align: left;
  background: #fff;
  border: 1px solid #e4ecf6;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(28, 55, 90, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  border-color: var(--point-color);
}

.gallery-thumb {
  border-bottom: 1px solid #eef2f7;
  overflow: hidden;
}

.gallery-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gallery-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--point-color);
}

.gallery-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

/* 이미지 확대 모달 */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.image-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  max-width: 780px;
  width: 100%;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  color: #334155;
  font-size: 1rem;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--point-color);
  color: var(--point-color);
}

.modal-img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fbff;
}

.modal-caption {
  margin: 12px 0 2px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
}

/* 태블릿 및 모바일 반응형 */
@media (max-width: 900px) {
  .timeline-card {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .activities-hero {
    padding: 36px 0 28px;
  }

  .page-title {
    font-size: 1.7rem;
  }

  .page-desc {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .summary-card {
    padding: 16px;
  }

  .timeline-section,
  .collab-section,
  .gallery-section {
    padding: 38px 0 8px;
  }

  .section-header {
    align-items: flex-start;
  }

  .timeline-list::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 44px;
    margin-bottom: 20px;
  }

  .timeline-marker {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  .timeline-card {
    padding: 20px 18px;
    gap: 18px;
  }

  .timeline-title {
    font-size: 1.08rem;
  }

  .collab-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .collab-box {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .modal-dialog {
    padding: 14px;
  }
}
