


/* 책 검색 페이지 시작 */

.search-container {
    max-width: 1000px;
    margin: 0 auto;

}



.search-wrapper {
    display : flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/*.search-content {
    height: 1150px;         !* ✅ 원하는 고정 높이 지정 *!
    overflow-y: auto;
}*/




.book-list-area {
    padding : 5px 25px;
}


.search-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}



.tab-menu {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid #ddd;
  margin-bottom: 1rem;
  text-align : center;
}


.tab-menu a {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #444;
  border-bottom: 2px solid transparent;
  flex : 1;

}

.tab-menu a.active {
  font-weight: bold;
  border-bottom: 2px solid #4a90e2;
  color: #000;
}

.tab-menu .line {
    border-left: 2px solid #ddd;
}



.book-list{
    display: grid;
    grid-template-columns : repeat(5, 1fr);
}

.book-list > div {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border-radius: 8px;
    padding: 0.5rem;
}

.book-list > div:hover {
    background-color: #f0f4ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    cursor: pointer;
}


.book-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 150px;
    height: 330px;
}

.book-title
{
    height : 51.19px;
}
.book-author,
.book-publisher {
    height : 25.59px;
}


/* 태블릿 (예: 769px ~ 1024px) */
@media (max-width: 1024px) {
    .book-list {
        grid-template-columns: repeat(4, 1fr); /* ✅ 태블릿에서 4열 */
    }
}

/* 작은 태블릿 ~ 큰 모바일 (예: 600px ~ 768px) */
@media (max-width: 768px) {
    .book-list {
        grid-template-columns: repeat(3, 1fr); /* ✅ 작은 태블릿/가로폰에서 3열 */
    }
}

/* 모바일 (예: ~599px) */
@media (max-width: 599px) {
    .book-list {
        grid-template-columns: repeat(2, 1fr); /* ✅ 모바일 2열 */
    }
}
/* 책 검색 끝 */



