@import url(common.css);

/* 전체 초기화 및 기본 스타일 */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f6fa;
  margin: 0;
  padding: 20px;
  color: #2f3640;
  text-align: center;
}

/* 상단 가로 배너 스타일 */
.header-banner {
  display: flex;
  align-items: center;
  justify-content: space-around; /* 좌우 배치 */
  background-color: #f0f8ff;
  padding: 15px 30px;
  border-bottom: 2px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

/* 왼쪽 로고 + 텍스트 */
.banner-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.banner-logo {
  height: 75px;
}

.banner-text h2 {
  margin: 0;
  font-size: 1.5em;
  color: #333;
}

.banner-text p {
  margin: 2px 0 0 0;
  font-size: 0.9em;
  color: #666;
}

/* 오른쪽 검색창 */
.banner-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.banner-search {
  padding: 6px 10px;
  font-size: 0.95em;
  border: 1px solid #aaa;
  border-radius: 4px;
}

.search-btn {
  padding: 6px 12px;
  font-size: 0.95em;
  border: none;
  border-radius: 4px;
  background-color: var(--bochi-pink);
  color: white;
  cursor: pointer;
}

.search-btn:hover {
  background-color: var(--bochi-pink);
}


/* 제목 */
h1 {
  font-size: 2rem;
  color: #353b48;
  margin-bottom: 20px;
}

/* 게시판 목록 */
.board-list {
  list-style: none;
  padding: 0;
  max-width: 500px;
  margin: 0 auto 30px auto;
  text-align: left;
}

.board-list li {
  background-color: white;
  margin-bottom: 12px;
  padding: 14px 18px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: background-color 0.2s;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #2f3640;
}

.board-list li:hover {
  background-color: #f1f2f6;
  color: #40739e;
}


#addBoardArea {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

#newBoardName {
  padding: 8px 12px;
  width: 70%;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px 0 0 6px;
  outline: none;
  box-sizing: border-box;
}

#addBoardBtn {
  padding: 8px 16px;
  font-size: 1rem;
  border: none;
  background-color: #44bd32;
  color: white;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

#addBoardBtn:hover {
  background-color: #4cd137;
}


@media (max-width: 580px) {
  /* 배너를 세로 구조로 */
  .header-banner {
    flex-direction: column;
    align-items: flex-start; /* 왼쪽 정렬 유지 */
    gap: 10px;
  }

  .banner-left {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .banner-right {
    width: 100%;
    justify-content: flex-start; /* 왼쪽 정렬 */
    margin-top: 5px; /* 로고 아래 간격 */
  }

  .banner-search {
    width: 100%;
    max-width: 100%;
  }

  .search-btn {
    width: 100%;
  }

  .banner-text h2 {
    font-size: 1em;
  }

  .banner-text p {
    font-size: 0.75em;
  }
}
