/* 기본 설정 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Noto Sans KR", sans-serif;
  background-color: #ffffff;
  color: #333;
}

/* 전체 레이아웃 */
.container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* 사이드바-본문 구분 세로선 */
.container::before {
  content: "";
  position: fixed;
  left: calc(50% - 550px + 220px);
  top: 24px;
  bottom: 24px;
  width: 2px;
  background-color: #ffd8b0;
  z-index: 0;
}

/* 좌측 사이드바 */
.sidebar {
  width: 220px;
  padding: 16px;
}

/* 프로필 */
.profile {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #ffe6cc;
}

.profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-text {
  margin-bottom: 20px;
}

.nickname {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.bio {
  font-size: 0.85rem;
  color: #999;
  line-height: 1.4;
}

/* 메뉴 */
.menu ul {
  list-style: none;
  margin-bottom: 20px;
}

.menu li {
  margin-bottom: 10px;
}

.menu a {
  text-decoration: none;
  color: #ff8c42;
  font-weight: 500;
}

.menu a:hover {
  text-decoration: underline;
}

/* 배너 */
.banner a {
  font-size: 0.9rem;
  color: #999;
  text-decoration: none;
}

/* 메인 콘텐츠 */
.content {
  flex: 1;
  padding: 24px 32px;
}

/* 제목 */
.post-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid #ffb066;
  padding: 12px 1px;
  margin-bottom: 24px;
}

.post-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
}

.post-meta {
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
}

/* 본문 */
.post-body {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.post-body p {
  margin-bottom: 16px;
}

/* 댓글 */
.comments {
  border-top: 2px solid #ffd8b0;
  padding-top: 16px;
}

.comments h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #ff8c42;
}

.comments textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 10px;
  font-family: inherit;
}

.comments button {
  background-color: #ff8c42;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.comments button:hover {
  background-color: #ff7a24;
}

/* 글 목록 */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  border-bottom: 1px solid #ffd8b0;
}

.post-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 8px;
  text-decoration: none;
  color: #333;
}

.post-list a:hover {
  background-color: #fff3e6;
}

.post-list-title {
  font-size: 1.05rem;
  font-weight: 500;
}

.post-list-date {
  font-size: 0.85rem;
  color: #999;
  white-space: nowrap;
}

/* 모바일 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    max-width: 100%;
  }

  .container::before {
    display: none;
  }

.sidebar {
  width: 100%;
  border-bottom: 2px solid #ffd8b0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

  .profile {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
  }

  .profile-text {
    margin-bottom: 0;
  }

  .bio {
    display: none;
  }
}

.menu {
  margin-top: 8px;
}

  .menu ul {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
  }

  .menu li {
    margin-bottom: 0;
  }

  .banner {
    display: none;
  }

  .content {
    padding: 20px;
  }

  .post-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .post-title {
    font-size: 1.4rem;
  }

  .post-meta {
    font-size: 0.8rem;
  }

  .post-body {
    font-size: 0.95rem;
    line-height: 1.9;
  }
}
/* 코멘트 */
.comment-list,
.reply-list {
  list-style: none !important;
  padding-left: 0;
  margin-left: 0;
}

.comment-list li,
.reply-list li {
  list-style: none !important;
}

.comment-list li::marker,
.reply-list li::marker {
  content: none !important;
}

.comment-meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding-left: 14px;
}

.comment-meta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background-color: #ffb066;
  border-radius: 50%;
  transform: translateY(-50%);
}

.comment-author {
  font-weight: 500;
  color: #ff8c42;
  font-size: 0.95rem;
}

.comment-time {
  font-size: 0.75rem;
  color: #aaa;
  white-space: nowrap;
}

/* 답글 */
.reply-list {
  list-style: none;
  margin-top: 10px;
  margin-left: 18px;
  padding-left: 12px;
  border-left: 2px solid #ffe2c6;
}

.reply {
  padding-top: 8px;
}

.comment-author[data-role="owner"] {
  color: #ff7a24;
  font-weight: 600;
}
