@charset "utf-8";
/*
   ========================================
   우리마을 페이지 전용 스타일
   ========================================
*/

/*
   ========================================
   마을 상세 페이지 레이아웃 (사이드바 + 메인)
   ========================================
*/
.village-layout {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
}

/* 왼쪽 사이드바 */
.village-sidebar {
  flex-shrink: 0;
  width: 200px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

/* 마을 프로필 영역 */
.village-profile {
  padding: var(--spacing-sm);
  text-align: center;
  border-bottom: 1px solid var(--color-border-light);
}

.village-profile-image {
  max-width: 100%;
  min-width: 150px;
  height: 150px;
  margin: 0 auto var(--spacing-md);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border-light);
}

.village-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.village-profile-content {
  flex: 1;
  width: 100%;
}

.village-name-row {
  display: flex;
  gap: 8px;
  margin-bottom: var(--spacing-md);
  justify-content: center;
}

.btn-back-village {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #f5f5f5;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.btn-back-village:hover {
  background: #eee;
}

.btn-back-village img {
  width: 18px;
  height: 18px;
}

.village-profile-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.village-profile-info {
  text-align: left;
  padding-bottom: var(--spacing-md);
}

.village-info-row {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  padding: 0.1rem 0;
}

.village-info-row:not(:last-child) {
  border-bottom: 1px dashed var(--border-light);
}

.village-info-label {
  flex: 0 0 35%;
  color: var(--text-tertiary);
}

.village-info-value {
  flex: 0 0 65%;
  color: var(--text-primary);
  font-weight: 500;
  text-align: left;
}

.village-info-link {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 60%;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.8125rem;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.village-info-link .info-link-icon {
  width: 10px;
  height: 10px;
}

.village-info-link:hover {
  text-decoration: underline;
}

/* 마을 정보 팝업 */
.village-info-popup {
  max-height: 70vh;
  overflow-y: auto;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--color-primary-orange);
}

.info-section-content {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.info-table th,
.info-table td {
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  text-align: left;
}

.info-table th {
  width: 40%;
  background: #f9f9f9;
  color: var(--text-secondary);
  font-weight: 500;
}

.info-table td {
  width: 60%;
  color: var(--text-primary);
}

/* 초대하기 버튼 */
.btn-invite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  background: #f5f5f5;
  margin-top: var(--spacing-sm);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-invite:hover {
  background: #eee;
  border-color: var(--border-color);
}

/* 가입하기 버튼 */
.btn-join {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  background: var(--color-primary-green-dark);
  margin-top: var(--spacing-sm);
  color: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-join:hover {
  background: #0d3d01;
}
.btn-invite img {
  width: 16px;
  height: 16px;
}

/* 사이드 네비게이션 */
.village-nav {
  display: flex;
  position: relative;
  flex-direction: column;
  gap: 7px;
  padding: var(--spacing-lg) 0;
}

.village-nav-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  width: 100%;
  padding: var(--spacing-smd) var(--spacing-lg);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  background: transparent;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.1s ease-out;
}

.village-nav-item:hover {
  background: #f8f9fa;
  color: var(--text-primary);
}

.village-nav-item:active {
  transform: translateY(3px);
}

.village-nav-item.active {
  background-color: #414141;
  color: #fff;
  font-weight: 600;
}

.village-nav-icon {
  width: 20px;
  height: 20px;
}

/* 기본 상태: gray 아이콘 표시, white 아이콘 숨김 */
.village-nav-item .icon-gray {
  display: block;
}

.village-nav-item .icon-white {
  display: none;
}

/* active 상태: gray 아이콘 숨김, white 아이콘 표시 */
.village-nav-item.active .icon-gray {
  display: none;
}

.village-nav-item.active .icon-white {
  display: block;
}

/* 탭 + 등록버튼 헤더 */
.village-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  border-bottom: 1px solid var(--border-light);
}

.village-tab-header .village-category-tabs {
  flex: 1;
  border-bottom: none;
}


/* 오른쪽 메인 콘텐츠 */
.village-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}


/*
   ========================================
   카드 카테고리 태그 색상
   ========================================
*/
.card-category {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

/* 마을소통 - Green */
.card-category.cat-communication {
  background: rgba(81, 215, 47, 0.15);
  color: #2E7D32;
}

/* 마을알림 - Orange */
.card-category.cat-notice {
  background: rgba(255, 174, 0, 0.15);
  color: #F57C00;
}

/* 마을질문 - Blue */
.card-category.cat-question {
  background: rgba(76, 160, 255, 0.15);
  color: #1565C0;
}


/* 마을 카드 그리드 */
.village-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

/* 마을 카드 */
.village-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.village-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.village-card-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
}

.village-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.village-card-info {
  flex: 1;
  min-width: 0;
}

.village-card-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.village-card-stats {
  display: flex;
  gap: var(--spacing-md);
}

.village-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.village-stat .stat-icon {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.village-stat .stat-value {
  color: var(--text-secondary);
}


/*
   ========================================
   구별 태그 색상
   ========================================
*/
.village-district-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  /* 기본 색상 (동구) */
  background: rgba(81, 215, 47, 0.15);
  color: #2E7D32;
}

/* 동구 - Green */
.village-district-tag.district-donggu {
  background: rgba(81, 215, 47, 0.15);
  color: #2E7D32;
}

/* 서구 - Blue */
.village-district-tag.district-seogu {
  background: rgba(76, 160, 255, 0.15);
  color: #1565C0;
}

/* 남구 - Orange */
.village-district-tag.district-namgu {
  background: rgba(255, 103, 51, 0.15);
  color: #E65100;
}

/* 북구 - Purple */
.village-district-tag.district-bukgu {
  background: rgba(99, 105, 221, 0.15);
  color: #5E35B1;
}

/* 광산구 - Yellow */
.village-district-tag.district-gwangsangu {
  background: rgba(255, 174, 0, 0.15);
  color: #F57C00;
}

/* 광주 - Green Dark */
.village-district-tag.district-gwangju {
  background: rgba(26, 129, 0, 0.15);
  color: #1A8100;
}


/*
   ========================================
   반응형 스타일
   ========================================
*/

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
  .village-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 태블릿/모바일 (768px 이하) */
@media (max-width: 768px) {
  .village-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .village-card {
    padding: var(--spacing-md);
  }

  .village-card-logo {
    width: 52px;
    height: 52px;
  }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
  .village-grid {
    grid-template-columns: 1fr;
  }

  .village-card-stats {
    flex-direction: column;
    gap: 0.25rem;
  }
}


/*
   ========================================
   마을 상세 레이아웃 반응형
   ========================================
*/

/* 태블릿 (1024px 이하) */
/* 1200px 이하: 사이드바 축소 */
@media (max-width: 1200px) {
  .village-sidebar {
    width: 180px;
  }

  .card-gallery {
    padding-right: 160px;
  }

  .card-gallery .card-thumbnail {
    width: 120px;
    height: 85px;
  }
}

@media (max-width: 1024px) {
  .village-sidebar {
    width: 160px;
  }

  .list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  /* 카드 갤러리 썸네일 숨기기 */
  .card-gallery {
    padding-right: 1.25rem;
  }

  .card-gallery .card-thumbnail {
    display: none;
  }

  .card-gallery .engagement {
    position: static;
  }
}

/* 태블릿/모바일 (768px 이하) */
@media (max-width: 768px) {
  /* 이 페이지만 container padding 제거 */
  .village-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 -20px;
    padding: 0 20px;
    width: calc(100% + 40px);
  }

  .village-sidebar {
    width: 100%;
    display: contents;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .village-profile {
    order: 1;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
    background: #fff;
    padding: 0;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
  }
  .village-profile-image {
    min-width: 230px;
  }
  .village-profile-info {
    padding-bottom: 0;
  }
  .village-nav {
    order: 3;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    padding: 0.75rem 20px;
    gap: 0.5rem;
    background: #F4F5F9;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }

  .village-nav::-webkit-scrollbar {
    display: none;
  }

  .village-main {
    display: contents;
  }

  .village-tab-header {
    order: 2;
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-sm);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
  }

  .village-category-tabs {
    padding: 0;
    margin-bottom: 0;
  }

  .village-main .list-toolbar {
    order: 4;
    padding: 0 1rem;
  }

  .village-main .card-list {
    order: 5;
  }
    .village-main .data-table-wrapper {
    order: 5;
  }

  .village-main .pagination {
    order: 6;
  }

  .village-profile-image {
    height: auto;
    aspect-ratio: 4/3;
    border-radius: 12px;
    margin: 0;
  }

  .village-profile-name {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    text-align: justify;
  }

  .village-profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    max-width: 100%;
  }

  .village-info-row {
    padding: 0.25rem 0;
  }

  .village-info-label {
    flex: 0 0 20%;
  }


  /* 카테고리 탭 (전체/마을알림/마을소통/마을질문) */
  .village-category-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0;
    gap: var(--spacing-sm);
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .village-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .village-category-tabs .tab-item {
    flex-shrink: 0;
  }

  /* 사이드 네비게이션 -> Pill-shaped Horizontal Scrollable Tabs */
  .village-nav-item {
    flex: 0 0 auto;
    width: auto;
    padding: 0.5rem 0.875rem;
    border-radius: 50px;
    background-color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
  }

  .village-nav-item:hover {
    background-color: #eee;
  }

  .village-nav-item .icon-gray,
  .village-nav-item .icon-white,
  .village-nav-item.active .icon-gray,
  .village-nav-item.active .icon-white {
    display: none !important;
  }

  .village-nav-item.active {
    background-color: #414141;
    color: #fff;
    font-weight: 600;
  }

  .village-nav-item.active:hover {
    background-color: #333;
  }

  /* 메인 콘텐츠 영역 */
  .village-main {
    padding: 0;
  }

  .village-main .list-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
    width: 100%;
  }

  .village-main .list-toolbar-left,
  .village-main .list-toolbar-right {
    width: 100%;
  }

  .village-main .search-box {
    width: 100%;
  }
  .village-name-row {
    justify-content: flex-start;
  }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
  .village-layout {
    width: calc(100% + 40px);
  }
  .village-nav-item {
    font-size: 0.8125rem;
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .village-profile {
    flex-direction: column;
    margin-bottom: 10px;
  }
  .village-profile-image {
    width: 100%;
    max-height: 150px;
  }
}

/* ========================================
   마을활동 상세 페이지 스타일
   ======================================== */

/* 활동 상세 헤더 */
.activity-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--spacing-xl);
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: var(--spacing-lg);
}

.activity-detail-info {
  display: flex;
  gap: var(--spacing-lg);
}

.activity-thumbnail {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
}

.activity-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-content {
  flex: 1;
}

.activity-village {
  font-size: 0.8125rem;
  color: var(--color-primary-orange);
  font-weight: 500;
  margin-bottom: 4px;
}

.activity-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.activity-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.activity-period {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.activity-period img {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* 활동 상세 헤더 버튼 영역 */
.activity-header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

/* 목록(리스트)으로 가기 버튼 */
.btn-activity-list-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.btn-activity-list-link:hover {
  background: #f5f5f5;
  border-color: #ccc;
  color: var(--text-secondary);
}

.btn-activity-list-link img {
  width: 16px;
  height: 16px;
}

/* ========================================
   활동 타임라인 섹션
   ======================================== */
.activity-timeline-section {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.timeline-header {
  margin-bottom: var(--spacing-lg);
}

.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* 타임라인 컨테이너 */
.timeline-container {
  position: relative;
}

/* 빈 리스트 상태 (nolist 클래스) */
.timeline-container.nolist .timeline-scroll {
  display: none;
}

.timeline-container.nolist {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: var(--spacing-xl) 0;
}

.timeline-container.nolist::before {
  content: '';
  display: block;
  width: 64px;
  height: 64px;
  background-image: url('/townE/resources/images/layout/ic_empty.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

.timeline-container.nolist::after {
  content: '아직 활동 기록이 없어요';
  display: block;
  font-size: var(--font-size-base);
  color: var(--text-tertiary);
  text-align: center;
}

.timeline-scroll {
  display: flex;
  gap: 0;
  padding: var(--spacing-sm);
  overflow-x: auto;
  padding-bottom: var(--spacing-sm);
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.timeline-scroll::-webkit-scrollbar {
  height: 6px;
}

.timeline-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.timeline-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* 타임라인 아이템 */
.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
  position: relative;
  cursor: pointer;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

.timeline-item:first-child::before {
  left: 50%;
}

.timeline-item:last-child::before {
  right: 50%;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary-purple);
  border: 2px solid var(--color-primary-purple);
  position: relative;
  z-index: 1;
  margin-bottom: var(--spacing-sm);
  transition: transform 0.25s ease, background 0.25s ease, border-width 0.25s ease, border-color 0.25s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.35);
  background: #fff;
  border-width: 4px;
  border-color: var(--color-primary-purple);
}

.timeline-dot.active {
  transform: scale(1.35);
  background: #fff;
  border-width: 4px;
  border-color: var(--color-primary-purple);
}

.timeline-item:hover .timeline-dot.active {
  transform: scale(1.35);
  background: #fff;
  border-width: 4px;
  border-color: var(--color-primary-purple);
}

.timeline-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-xs);
}

.timeline-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.6875rem;
  font-weight: 500;
}

.badge-meeting {
  background: #E3F2FD;
  color: #1976D2;
}

.badge-activity {
  background: #FFF3E0;
  color: #F57C00;
}

.badge-notice {
  background: #F5F5F5;
  color: #616161;
}

/* ========================================
   기록 리스트 섹션 (별도 박스)
   ======================================== */
.record-section {
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: var(--spacing-lg);
  margin-top: var(--spacing-md);
  overflow: visible;
}

.record-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.record-list-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.record-list-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-register-activity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary-orange);
  border: none;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}


.btn-register-activity img {
  width: 14px;
  height: 14px;
}

.record-filter-tabs {
  display: flex;
  gap: 10px;
}

.filter-tab {
  background: none;
  border: none;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.filter-tab:hover {
  color: var(--text-primary);
}

.filter-tab.active {
  color: var(--color-primary-orange);
  font-weight: 600;
}

/* ========================================
   기록 카드 리스트
   ======================================== */
.record-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

/* 빈 리스트 상태 (nolist 클래스) */
.record-card-list.nolist {
  display: none;
}

.record-card-list.nolist {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: var(--spacing-sm);
}

.record-card-list.nolist::before {
  content: '';
  display: block;
  width: 64px;
  height: 64px;
  background-image: url('/townE/resources/images/layout/ic_empty.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: var(--spacing-sm);
  opacity: 0.5;
}

.record-card-list.nolist::after {
  content: '아직 활동 기록이 없어요';
  display: block;
  font-size: 0.875rem;
  color: #999;
  text-align: center;
}

.record-card {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--color-bg-light);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
  background-color: var(--color-bg-white);
  border: 1px solid var(--border-light);
}

.record-card:hover {
  background: #f0f0f0;
}

.record-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.record-card-icon.icon-meeting {
  background: #E3F2FD;
}

.record-card-icon.icon-activity {
  background: #FFF3E0;
}

.record-card-icon.icon-notice {
  background: #F5F5F5;
}

.record-card-icon img {
  width: 20px;
  height: 20px;
}

.record-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.record-card-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.record-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.6875rem;
  font-weight: 500;
}

.record-date {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.record-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.record-card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.record-card-footer {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.record-card-footer .engagement-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.record-card-footer .engagement-item img {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.record-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex-shrink: 0;
  align-self: center;
}

.record-card-arrow img {
  width: 30px;
  height: 30px;
  opacity: 0.3;
}

/* ========================================
   기록 상세 뷰
   ======================================== */
.record-detail {
  background: #fff;
  border-radius: 8px;
  padding: var(--spacing-lg);
  overflow: visible;
}

.record-detail-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  position: relative;
}

.record-detail-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: calc(-1 * var(--spacing-lg));
  right: calc(-1 * var(--spacing-lg));
  height: 1px;
  background: #e0e0e0;
}

.btn-back {
  width: 40px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.btn-back:hover {
  background-color: #e0e0e0;
}

.btn-back img {
  width: 24px;
  height: 24px;
}

.record-detail-header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xs);
}

.record-detail-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

.record-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.record-detail-meta .meta-item {
  display: flex;
  gap: var(--spacing-xs);
  font-size: 0.8125rem;
}

.record-detail-meta .meta-label {
  color: var(--text-tertiary);
}

.record-detail-meta .meta-value {
  color: var(--text-primary);
}

.record-detail-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.record-detail-info .info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.record-detail-info .info-item img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.record-detail-content {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--text-primary);
  word-break: keep-all;
  white-space: pre-wrap;
}

.record-detail-images .image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.record-detail-images .image-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/2;
}

.record-detail-images .image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 댓글/좋아요는 common.css 스타일 사용 */

/* 활동 리스트보기 버튼 */
.activity-list-btn-wrap {
  display: flex;
  justify-content: center;
  padding: var(--spacing-xl) 0;
}

.btn-activity-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--color-primary-purple);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-activity-list:hover {
  background: #6a4c93;
}

/* ========================================
   반응형 스타일
   ======================================== */
@media (max-width: 1024px) {
  .activity-detail-header {
    position: relative;
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .activity-header-actions {
    position: static;
    order: 2;
    margin-top: var(--spacing-sm);
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .activity-detail-header {
    padding: var(--spacing-lg);
  }

  .activity-header-actions {
    margin-top: var(--spacing-md);
  }

  .activity-detail-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .activity-thumbnail {
    width: 120px;
    height: 120px;
  }

  .activity-title {
    font-size: 1.125rem;
  }

  .timeline-item {
    min-width: 80px;
  }

  .activity-timeline-section {
    padding: var(--spacing-lg);
  }

  .record-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .record-list-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .record-filter-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: var(--spacing-xs);
  }

  .record-card {
    padding: var(--spacing-md);
  }

  .record-card-icon {
    width: 36px;
    height: 36px;
  }

  .record-card-icon img {
    width: 18px;
    height: 18px;
  }

  /* 상세 뷰 반응형 */
  .record-detail-images .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .activity-thumbnail {
    width: 100px;
    height: 100px;
  }

  .activity-title {
    font-size: 1rem;
  }

  .timeline-item {
    min-width: 80px;
    padding: 0 var(--spacing-sm);
  }

  .record-card-arrow {
    display: none;
  }

  .record-card-icon {
    display: none;
  }

  /* 상세 뷰 반응형 */
  .record-detail-title {
    font-size: 1.125rem;
  }

  .record-detail-meta {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .record-detail-info {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .record-detail-images .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
}


