.gunpil-pick-intro {
    background-color: #fffbea;
    border: 1px solid #f0e6c2;
    padding: 20px 24px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: 'Noto Sans KR', sans-serif;
}

.pick-header {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #c97b00;
    margin-bottom: 12px;
    gap: 8px;
}

.pick-header i {
    font-size: 1.2rem;
}

.pick-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    white-space: pre-line;
}


/* START : 책 리뷰 */
.book-detail-container {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr;
    gap : 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}



.book-info,
.book-reviews {
    width: 100%;
}

.book-info {
    text-align: center;
    position: sticky;
    top: 2rem;  /* 상단 여백 */
    align-self: start; /* grid 또는 flex 안에서 정상 정렬되도록 */
    height: fit-content;
}



.back-to-list {
    text-align: left;
    margin-top: 1rem; /* 여유 공간 필요시 */
}





.book-cover {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    margin-bottom: 1rem;
}

.book-meta {
    text-align: left;
    line-height: 1.6;
    font-size: 15px;
}


.review-card {
    background-color: #f8f9fc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.review-form {
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid #ddd;
}

.review-form textarea {
    width: 100%;
    height: 80px;
    margin-top: 0.5rem;
}

.review-form button {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.review-form button:hover {
    background-color: #155ab6;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.review-liked {
    color: var(--primary-hover);
}


/* START : 리뷰 작성 시 애니메이션(토스트) */

.review-card.animate-in {
    animation: fadeSlideIn 0.4s ease-out;
}

.toast-message {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1F4EB2; /* 기본: 좋아요 */
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.4s ease, top 0.4s ease;
    z-index: 9999;
}

.toast-message.show {
    opacity: 1;
    top: 120px;
}

.toast-message.cancel {
    background-color: #999; /* 좋아요 취소 시 회색 등으로 표시 */
}


/* END: 리뷰 작성 시 애니메이션 */


/* START : 책리뷰-별 */
.rating-stars {
    display: inline-block;
    position: relative;
    width: 160px; /* 5 stars × 32px */
    height: 32px;
    background: url('/images/review/star-empty.svg') repeat-x;
    background-size: 32px 32px;
    cursor: pointer;
}

.rating-stars .stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: url('/images/review/star-full.svg') repeat-x;
    background-size: 32px 32px;
    pointer-events: none;
    width: 0%;
}


.rating-text {
    font-weight: bold;
    font-size: 1.25rem;

}


.review-header {
    display : flex;
    justify-content: space-between;
}

.review-header div{
    color: gray;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
/* END : 책리뷰-별 */


/* START : 책 리뷰 - 좋아요 버튼 */
/* 기본 스타일 (책 상세 페이지 한정) */
.book-detail-container .review-like-btn {
    display: inline-flex;
    align-items: center;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    padding: 0px 2px;
    transition: color 0.3s ease;
}

/* 아이콘 기본 상태 */
.book-detail-container .review-like-icon {
    margin-right: 6px;
    color: #1F4EB2;
    transition: color 0.3s ease;
}

/* 버튼 호버 시 아이콘 색상 변경 */
.book-detail-container .review-like-btn:hover .review-like-icon {
    color: #3498db;
}

/* 좋아요 누른 상태 */
.book-detail-container .review-like-btn.review-liked .review-like-icon {
    color: #1F4EB2;
}

/* 숫자 텍스트 스타일 */
.book-detail-container .review-like-btn .like-count {
    font-weight: 500;
    color: #444;
}
/* END : 책 리뷰 - 좋아요 버튼 */


/* STRAT : 책 리뷰 - 삭제 버튼 */
/* 삭제 버튼 기본 스타일 */
.book-detail-container .review-delete-btn {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    padding: 4px 6px;
    transition: transform 0.2s ease;
}

.book-detail-container .review-delete-btn:hover {
    transform: scale(1.1);
}

/* 아이콘 색상 */
.book-detail-container .review-delete-btn .delete-icon {
    color: #999;
    font-size: 16px;
    transition: color 0.2s ease;
}

.book-detail-container .review-delete-btn:hover .delete-icon {
    color: #e74c3c; /* 빨간색 강조 */
}
/* END : 책 리뷰 - 삭제 버튼 */


/* START : 책 리뷰 - 정렬 버튼 */
.review-sort-filter {
    display: flex;
    gap: 10px;
    padding : 15px;
}
/* END : 책 리뷰 - 정렬 버튼 */


/* START : 책 리뷰 - 대댓글  */
.review-reply-wrapper {
    background-color: #f1f4f9; /* 더 진한 연블루 톤 */
    border-left: 4px solid #4a90e2; /* 포인트 컬러 강조 */
    padding: 12px 16px;
    margin: 14px 0 14px 30px; /* 왼쪽 여백 증가 */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* 부드러운 그림자 */
    font-size: 0.95rem;
    position: relative;
}

.review-reply-wrapper::before {
    content: "\f3e5"; /* FontAwesome reply 아이콘 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #4a90e2;
    position: absolute;
    top: 9px;
    left: -25px;
    font-size: 16px;
    transform: rotate(180deg);
}

.review-reply-wrapper .reply-meta {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.review-reply-wrapper .reply-author {
    color: #2c3e50;
}

.review-reply-wrapper .reply-time {
    font-size: 0.85em;
    color: #777;
}

.review-reply-wrapper .reply-content {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #111;
}

.animate-in {
    animation: fadeInSlideUp 0.5s ease forwards;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* END : 책 리뷰 - 대댓글 버튼 */



/* END : 책 리뷰 */


/*==============START : 반응형=========================  */

@media (max-width: 768px) {
    .book-detail-container {
        display: grid;
        grid-template-columns: 1fr;
        gap : 1rem;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
    }

    .book-info {
        position: static;  /* ✅ sticky 해제 */
    }

    .book-reviews {
        padding : 0px;
    }

    .back-to-list {
        margin-top : 0.25rem;
    }

    .book-reviews > h1 {
        padding-top : 1rem;
    }
}