/* 리뷰 컨테이너 */
.bif-review-container {
    width: 100vw;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    margin-top: 120px;
}

.bif-review-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 리뷰 제목 */
.bif-review-header {
    text-align: left;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-left: 140px;
    margin-bottom: 20px;
}

.bif-review-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: #000000;
    margin: 0;
    letter-spacing: -0.5px;
    align-self: flex-end;
}

/* 리뷰 슬라이더 */
.bif-review-slider-container {
    width: 100%;
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.best-pagination {
    margin-bottom: 60px;
}

.bif-review-slider {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
}

.bif-review-slide-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.bif-review-item {
    min-width: 280px;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

.bif-review-stars {
    padding: 20px 20px 10px 5px;
    display: flex;
    align-items: center;
}

.bif-star {
    color: #BAD6FF;
    font-size: 16px;
}

.bif-star.filled {
    color: #BAD6FF;
}

.bif-review-rating,
.bif-gallery-rating {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #000000;
    margin-left: 5px;
}

.bif-review-content {
    border: none;
}

.bif-review-text {
    padding: 15px 20px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #000000;
    border: 1px solid #EAEAEA;
    line-height: 1.4;
}

.bif-review-image {
    width: 280px;
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #999999;
    border-bottom: 1px solid #EAEAEA;
    cursor: pointer;
}

.bif-review-image img {
    width: 280px;
    height: 200px;
}

.bif-review-author {
    padding: 15px 20px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #666666;
    text-align: center;
    position: relative;
}

.bif-review-author::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background-color: #EAEAEA;
}

/* 슬라이더 버튼 */
.bif-slider-prev,
.bif-slider-next {
    width: 50px;
    height: 50px;
    border: 1px solid #EAEAEA;
    background-color: #ffffff;
    border-radius: 50%;
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bif-slider-prev:hover,
.bif-slider-next:hover {
    background-color: #f5f5f5;
    color: #000000;
}

/* 갤러리 컨텐츠 */
.bif-gallery-content {
    width: 100%;
    margin-bottom: 60px;
}

.bif-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.bif-gallery-item {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

.bif-gallery-stars {
    padding: 20px 20px 10px 5px;
    display: flex;
    align-items: center;
}

.bif-gallery-text {
    padding: 15px 20px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #000000;
    border: 1px solid #EAEAEA;
    line-height: 1.4;
}

.bif-gallery-image {
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #999999;
    border-bottom: 1px solid #EAEAEA;
    cursor: pointer;
}

.bif-gallery-image img {
    width: 380px;
    height: 200px;
}

.bif-gallery-author {
    padding: 15px 20px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #666666;
    text-align: center;
    position: relative;
}

.bif-gallery-author::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background-color: #EAEAEA;
}

/* 반응형 */
@media (max-width: 768px) {
    .bif-review-slider-container {
        flex-direction: column;
        gap: 20px;
    }

    .bif-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .bif-review-item,
    .bif-gallery-item {
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .bif-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* 로그인 모달 */
.bif-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(81, 81, 81, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.bif-login-modal.show {
    display: flex;
}

.bif-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
}

.bif-modal-content {
    background-color: rgba(81, 81, 81, 0.9);
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 1001;
    width: 100vw;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bif-modal-text {
    font-family: 'Pretendard', sans-serif;
    font-weight: 200;
    font-size: 20px;
    color: #ffffff;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.bif-modal-login-btn {
    padding: 15px 40px;
    border: 1px solid #ffffff;
    background-color: transparent;
    color: #ffffff;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.bif-modal-login-btn:hover {
    background-color: #ffffff;
    color: #515151;
}

/* 반응형 */
@media (max-width: 768px) {
    .bif-modal-content {
        width: 80vw;
        padding: 30px;
    }

    .bif-modal-text {
        font-size: 18px;
    }

    .bif-modal-login-btn {
        font-size: 18px;
        padding: 12px 30px;
    }
}

/*=== 리뷰 상세===*/
.bif-profile-container {
    width: 100vw;
    min-height: 100vh;
    background-color: #ffffff;
    justify-content: center;
    padding: 40px 20px;
}

.bif-profile-wrapper {
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
}

/* 프로필 헤더 */
.bif-profile-header {}

.bif-profile-title {
    font-family: 'Dream Orphans', serif;
    font-weight: 400;
    font-size: 48px;
    color: #000000;
    margin: 0;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

/* 프로필 정보 영역 */
.bif-profile-info {
    background-image: url('/home_assets/img/main/community/review-detail-profile-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 40px;
    position: relative;
    border: 1px solid #EAEAEA;
    width: 1513px;
    height: 588px;
    margin: auto;
    margin-bottom: 80px;
    margin-top: 200px;
}

.bif-profile-image-section {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 30px;
}

.bif-profile-image {
    width: 353px;
    height: 421px;
    border: 1px solid #EAEAEA;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #666666;
}

.bif-profile-image img {
    width: 100%;
    height: 100%;
}

.bif-profile-details {
    color: #000;
}

.bif-profile-name {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.bif-profile-age {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.bif-profile-procedure {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 24px;
    opacity: 0.9;
}

/* 상세 내용 영역 */
.bif-profile-content {
    margin-bottom: 80px;
}

.bif-content-area {
    background-color: #ffffff;
    padding: 60px;
    width: 1514px;
    margin: auto;
}

.bif-content-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: #000000;
    margin: 0 0 40px 0;
    text-align: center;
    letter-spacing: -0.5px;
}

.bif-content-body {
    font-family: 'Pretendard', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #333333;
    line-height: 1.8;
}

.bif-content-body p {
    margin-bottom: 24px;
    text-align: justify;
}

.bif-content-image {
    margin: 40px 0;
    text-align: center;
}

.bif-content-img-placeholder {
    width: 100%;
    height: 400px;
    background-color: #f8f8f8;
    border: 2px dashed #EAEAEA;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #999999;
}

/* 하단 버튼 영역 */
.bif-profile-actions {
    display: flex;
    justify-content: center;
}

.bif-back-btn {
    width: 137px;
    height: 59px;
    padding: 15px 40px;
    border: 2px solid #EAEAEA;
    background-color: #B3B9C3;
    color: #ffffff;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bif-back-btn:hover {
    background-color: #f5f5f5;
    color: #000000;
    border-color: #CCCCCC;
}

/* 반응형 */
@media (max-width: 768px) {
    .bif-profile-wrapper {
        max-width: 100%;
    }

    .bif-profile-title {
        font-size: 36px;
    }

    .bif-profile-info {
        padding: 40px 20px;
    }

    .bif-profile-image-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .bif-profile-image {
        width: 150px;
        height: 200px;
    }

    .bif-profile-name {
        font-size: 24px;
    }

    .bif-profile-age,
    .bif-profile-procedure {
        font-size: 16px;
    }

    .bif-content-area {
        padding: 40px 20px;
    }

    .bif-content-title {
        font-size: 24px;
    }

    .bif-content-body {
        font-size: 14px;
    }
}

/* 로딩 오버레이 스타일 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.loading-spinner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 탭 전환 시 부드러운 효과 */
.bif-gallery-content {
    transition: opacity 0.3s ease;
}

.bif-gallery-content.loading {
    opacity: 0.6;
}