* { font-family: 'Noto Sans KR', sans-serif; box-sizing: border-box; }
body { background-color: #f8fffe; margin: 0; padding: 0; }

.feed-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.feed-sidebar {
  width: 210px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

.sidebar-section { margin-bottom: 28px; }

.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-left: 4px;
}

.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-menu li { margin-bottom: 2px; }

.sidebar-menu li a,
.sidebar-menu li button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  text-decoration: none;
  font-family: 'Noto Sans KR', sans-serif;
}

.sidebar-menu li a i,
.sidebar-menu li button i { font-size: 16px; width: 20px; text-align: center; }

.sidebar-menu li a:hover,
.sidebar-menu li button:hover { background: #f0fdf4; color: #10b981; }

.sidebar-menu li a.active,
.sidebar-menu li button.active { background: #f0fdf4; color: #10b981; }

.sidebar-divider { height: 1px; background: #f3f4f6; margin: 4px 0 20px; }

.sidebar-menu.category-menu li button {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  padding: 8px 14px;
}

.sidebar-menu.category-menu li button.active { font-weight: 700; color: #10b981; }

.feed-main { flex: 1; min-width: 0; }

.feed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.feed-top h1 { font-size: 22px; font-weight: 800; color: #111827; margin: 0; }
.feed-top p { font-size: 13px; color: #9ca3af; margin: 0; }

.feed-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 20px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
}

.card-header-left { display: flex; align-items: center; gap: 12px; }

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06d6a0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.user-name { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.challenge-name { font-size: 12px; color: #10b981; font-weight: 600; }

.card-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.card-time { font-size: 12px; color: #9ca3af; }

.card-more-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #9ca3af;
  transition: all 0.15s;
  flex-shrink: 0;
}

.card-more-btn:hover { background: #f3f4f6; color: #374151; }

.card-dropdown {
  display: none;
  position: absolute;
  top: 36px;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 100;
  min-width: 130px;
}

.card-dropdown.open { display: block; }

.card-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
  font-family: 'Noto Sans KR', sans-serif;
}

.card-dropdown-item:hover { background: #f9fafb; }
.card-dropdown-item.danger { color: #ef4444; }
.card-dropdown-item.danger:hover { background: #fef2f2; }

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #10b981;
}

.card-body { padding: 16px 20px 20px; }

.card-category-badge {
  display: inline-block;
  background: #f0fdf4;
  color: #10b981;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.card-memo { font-size: 14px; color: #374151; line-height: 1.6; margin-bottom: 14px; }

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

.card-actions { display: flex; gap: 16px; }

.action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s;
  font-family: 'Noto Sans KR', sans-serif;
}

.action-btn:hover { background: #f3f4f6; color: #374151; }
.action-btn.liked { color: #ef4444; }
.action-btn i { font-size: 16px; }

.card-date { font-size: 12px; color: #9ca3af; }

/* ── 댓글 영역 ── */
.comment-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f9fafb;
  font-size: 13px;
}

.comment-nickname { font-weight: 700; color: #111827; flex-shrink: 0; }
.comment-content { color: #374151; flex: 1; line-height: 1.5; }

.comment-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.comment-time { font-size: 11px; color: #9ca3af; }

.comment-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
}

.comment-delete-btn:hover { color: #ef4444; background: #fef2f2; }

.no-comment {
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
  padding: 12px 0;
  margin: 0;
}

.comment-input-wrap {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.comment-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  font-family: 'Noto Sans KR', sans-serif;
  outline: none;
  transition: border-color 0.15s;
}

.comment-input:focus { border-color: #10b981; }

.comment-submit-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #10b981;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.15s;
}

.comment-submit-btn:hover { background: #059669; }

.comment-login-msg {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 12px;
  text-align: center;
}

.comment-login-msg a { color: #10b981; text-decoration: none; font-weight: 600; }

/* 빈 피드 */
.feed-empty {
  text-align: center;
  padding: 80px 20px;
  color: #9ca3af;
}

.feed-empty i { font-size: 52px; display: block; margin-bottom: 16px; opacity: 0.4; }
.feed-empty p { font-size: 16px; font-weight: 600; color: #6b7280; margin-bottom: 6px; }
.feed-empty span { font-size: 14px; }

/* ── 반응형 ── */
@media (max-width: 768px) {
  .feed-layout { flex-direction: column; padding: 20px 16px 80px; gap: 16px; }
  .feed-sidebar { width: 100%; position: static; }
  .sidebar-section { margin-bottom: 0; }
  .sidebar-label { display: none; }
  .sidebar-divider { display: none; }
  .sidebar-menu { display: flex; flex-wrap: wrap; gap: 6px; }
  .sidebar-menu li a,
  .sidebar-menu li button { padding: 7px 14px; border-radius: 20px; border: 1.5px solid #e5e7eb; font-size: 13px; width: auto; }
  .sidebar-menu.category-menu { display: flex; flex-wrap: wrap; gap: 6px; }
}
