/* 1. 전체 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. 랩(wrap) 컨테이너 */
.wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f9f9f9;
  position: relative;
}

/* 3. 헤더 */
header {
  background-color: #4a90e2;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}
header h1 {
  font-size: 1.4rem;
}

/* 4. 메인 콘텐츠 */
main {
  flex: 1;
  padding-bottom: 60px; /* footer 높이만큼 여유 공간 확보 */
}
h3 {
  text-align: center;
}
.bored {
  display: flex;
}
section {
  text-align: center;
}
.nickname {
  font-size: 13.5px;
}
.profile-image {
  text-align: center;
  margin-bottom: 1rem;
}
.profile-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

/* 댓글 버튼 */
.comment-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* 좋아요 버튼 */
.heart-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  outline: none;
  transition: transform 0.1s ease-in-out, color 0.2s ease-in-out;
  color: #555;
}
.heart-btn:active {
  transform: scale(1.2);
}
.heart-btn.liked {
  color: red;
}

/* 댓글 모달 창 스타일 */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 9999;
}
.modal-content {
  background: white;
  margin: 15% auto;
  padding: 20px;
  width: 80%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.modal-content h3 {
  margin-top: 0;
  font-size: 1.2rem;
  text-align: center;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
  text-align: left;
}
.comment-list li {
  margin-bottom: 5px;
  font-size: 0.95rem;
}
.comment-form input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.comment-form button {
  padding: 8px 12px;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

/* 검색 바 */
.search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
}
.search {
  text-align: center;
}

/* 프로필 정보 */
.profile-info {
  list-style: none;
  margin-bottom: 2rem;
}
.profile-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd;
  font-size: 0.95rem;
}
.profile-info li strong {
  color: #333;
}

/* 버튼 그룹 */
.btn-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.btn {
  flex: 1;
  padding: 0.75rem 0;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
}
.btn.out {
  background-color: #e74c3c;
  color: #fff;
}
.btn.change {
  background-color: #3498db;
  color: #fff;
}

/* 5. 푸터 - 고정형 내비게이션 */
footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 40px;
  max-width: 480px; /* 모바일 기준 너비 제한 */
  background-color: #fff;
  border-top: 1px solid #ddd;
  z-index: 100;

}
footer nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;

}
footer a {
  color: #555;
  text-decoration: none;
  font-size: 0.75rem; /* 글자 크기 축소 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;

}
footer a.active {
  color: #4a90e2;
}

footer a span {
  font-size: 1rem; /* 아이콘 크기 조절 */
}


/* 6. 반응형 처리 (480px 이상) */
@media (min-width: 480px) {
  .wrap {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
  }
}