/* Review List Display Plugin Styles */

.review-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 필터 섹션 */
.review-filters {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.review-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.review-filter-form {
    margin: 0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 140px;
    flex: 1;
    max-width: 100%;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    display: block;
    transition: color 0.2s ease;
}

.filter-group:hover label {
    color: #007cba;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
    position: relative;
}

.filter-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    transform: translateY(-1px);
}

.filter-group select:hover,
.filter-group input[type="text"]:hover {
    border-color: #007cba;
}

/* 버튼 그룹 */
.filter-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-width: 200px;
    align-items: end;
}

.filter-submit {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    width: 120px;
}

.filter-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.filter-submit:hover::before {
    left: 100%;
}

.filter-submit:hover {
    background: linear-gradient(135deg, #005a87 0%, #004a6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
}

.filter-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
}

.filter-reset {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.filter-reset:hover {
    background: linear-gradient(135deg, #545b62 0%, #495057 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.filter-reset:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

/* 통계 섹션 - Review System 스타일 적용 */
.review-statistics {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 30px;
    background: white;
}

/* 총점 섹션 - Review System 스타일 */
.stat-item.summary-total-score {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-item.summary-total-score .stat-value {
    font-size: 3.8rem;
    font-weight: 700;
    color: #000;
    line-height: 1;
}

.stat-item.summary-total-score .stat-label {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: #333;
}

.stat-item.summary-total-score .review-count {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.75rem;
}

/* 평점 원형 스타일 */
.rating-circles {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
}

.rating-circles .circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.rating-circles .circle.filled {
    background-color: #28a745;
}

.rating-circles .circle.empty {
    background-color: #e9ecef;
}

/* 평점 분포 섹션 - Review System 스타일 */
.stat-item.summary-distribution {
    display: flex;
    flex-direction: column;
}

.stat-item.summary-distribution .dist-row {
    margin-bottom: 1.2rem;
}

.stat-item.summary-distribution .slider-label-container {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item.summary-distribution .custom-range-slider {
    height: 8px;
    position: relative;
    display: flex;
    align-items: center;
}

.stat-item.summary-distribution .slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    pointer-events: none;
}

.stat-item.summary-distribution .slider-track-fill {
    height: 100%;
    background-color: #28a745;
    border-radius: 4px;
}

/* 세부 평점 섹션 - Review System 스타일 */
.stat-item.summary-sub-ratings {
    display: flex;
    flex-direction: column;
}

.stat-item.summary-sub-ratings .sub-rating-item {
    margin-bottom: 1.2rem;
}

.stat-item.summary-sub-ratings .slider-label-container {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item.summary-sub-ratings .custom-range-slider {
    height: 8px;
    position: relative;
    display: flex;
    align-items: center;
}

.stat-item.summary-sub-ratings .slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    pointer-events: none;
}

.stat-item.summary-sub-ratings .slider-track-fill {
    height: 100%;
    background-color: #28a745;
    border-radius: 4px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.rating-label {
    min-width: 30px;
    color: #666;
}

.rating-count {
    font-weight: 600;
    color: #333;
}

/* 리뷰 리스트 */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-list-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s;
}

.review-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-product-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.product-image {
    flex-shrink: 0;
}

.product-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.product-details {
    flex: 1;
}

.product-title {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

.product-title a:hover {
    color: #007cba;
}

.product-price {
    font-size: 14px;
    color: #666;
}

/* 리뷰 내용 */
.review-content {
    flex: 1;
}

.review-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 18px;
    color: #ddd;
}

.star.filled {
    color: #ffc107;
}

.rating-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.review-text {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

/* 리뷰 사진 */
.review-photos {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.review-photo {
    position: relative;
}

.review-photo img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.more-photos {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #666;
    font-size: 12px;
    font-weight: 600;
}



/* 페이지네이션 */
.review-pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination-links {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-links a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination-links a:hover {
    background: #f8f9fa;
    border-color: #007cba;
    color: #007cba;
}

.pagination-links a.current {
    background: #007cba;
    border-color: #007cba;
    color: white;
}

.pagination-links .prev-page,
.pagination-links .next-page {
    font-weight: 500;
}

/* 빈 상태 */
.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-reviews p {
    margin: 0;
    font-size: 16px;
}

/* 라이트박스 스타일 - Review System과 동일 */
.review-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.review-lightbox.show {
    display: flex;
}

.review-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
}

.review-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background-color: rgba(0,0,0,0.3);
    padding: 0 1rem;
    user-select: none;
}

.lightbox-nav.prev {
    left: 10px;
}

.lightbox-nav.next {
    right: 10px;
}

/* 더보기 버튼 스타일 */
.load-more-container {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.load-more-button {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
    position: relative;
    overflow: hidden;
}

.load-more-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.load-more-button:hover::before {
    left: 100%;
}

.load-more-button:hover {
    background: linear-gradient(135deg, #005a87 0%, #004a6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
}

.load-more-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
}

.load-more-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.load-more-button.loading {
    background: #6c757d;
    cursor: wait;
}

.load-more-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .review-list-container {
        padding: 10px;
    }
    
    /* 필터 섹션 모바일 개선 */
    .review-filters {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        min-width: auto;
        width: 100%;
    }
    
    .filter-group label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .filter-group select,
    .filter-group input[type="text"] {
        padding: 10px 12px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .filter-submit,
    .filter-reset {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        margin-top: 5px;
    }
    
    /* 통계 섹션 모바일 개선 - Review System 스타일 */
    .review-statistics {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .review-statistics .summary-total-score {
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .review-statistics .summary-total-score .stat-value {
        font-size: 3rem;
    }
    
    .review-statistics .summary-total-score .stat-label {
        font-size: 0.9rem;
    }
    
    .review-statistics .summary-total-score .review-count {
        font-size: 0.8rem;
    }
    
    .review-statistics .summary-distribution,
    .review-statistics .summary-sub-ratings {
        gap: 1rem;
    }
    
    .review-statistics .dist-row,
    .review-statistics .sub-rating-item {
        margin-bottom: 1rem;
    }
    
    .review-statistics .slider-label-container {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .review-statistics .custom-range-slider {
        height: 6px;
    }
    
    .review-statistics .slider-track {
        height: 6px;
    }
    
    .review-statistics .rating-circles {
        gap: 3px;
        margin: 0.4rem 0;
    }
    
    .review-statistics .rating-circles .circle {
        width: 12px;
        height: 12px;
    }
    
    /* 리뷰 아이템 모바일 개선 */
    .review-list-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .review-product-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .product-image {
        align-self: center;
    }
    
    .product-image img {
        width: 70px;
        height: 70px;
    }
    
    .product-title {
        font-size: 15px;
    }
    
    .product-price {
        font-size: 13px;
    }
    
    .review-title {
        font-size: 16px;
        text-align: center;
    }
    
    .review-rating {
        justify-content: center;
        margin-bottom: 8px;
    }
    
    .stars {
        gap: 1px;
    }
    
    .star {
        font-size: 16px;
    }
    
    .rating-text {
        font-size: 13px;
    }
    
    .review-text {
        font-size: 14px;
        line-height: 1.5;
        text-align: left;
    }
    
    .review-photos {
        justify-content: center;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .review-photo img {
        width: 60px;
        height: 60px;
    }
    
    .more-photos {
        width: 60px;
        height: 60px;
        font-size: 11px;
    }
    

    
    /* 페이지네이션 모바일 개선 */
    .review-pagination {
        margin-top: 20px;
    }
    
    .pagination-links {
        gap: 3px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-links a {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 35px;
        text-align: center;
    }
    
    /* 빈 상태 모바일 개선 */
    .no-reviews {
        padding: 30px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .review-list-container {
        padding: 8px;
    }
    
    /* 필터 섹션 초소형 모바일 개선 */
    .review-filters {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .filter-row {
        gap: 8px;
    }
    
    .filter-group label {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .filter-group select,
    .filter-group input[type="text"] {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .filter-submit,
    .filter-reset {
        padding: 10px;
        font-size: 13px;
    }
    
    /* 통계 섹션 초소형 모바일 개선 - Review System 스타일 */
    .review-statistics {
        padding: 1rem;
        gap: 1rem;
        margin-bottom: 15px;
    }
    
    .review-statistics .summary-total-score {
        padding-bottom: 1rem;
    }
    
    .review-statistics .summary-total-score .stat-value {
        font-size: 2.5rem;
    }
    
    .review-statistics .summary-total-score .stat-label {
        font-size: 0.8rem;
    }
    
    .review-statistics .summary-total-score .review-count {
        font-size: 0.7rem;
    }
    
    .review-statistics .summary-distribution,
    .review-statistics .summary-sub-ratings {
        gap: 0.8rem;
    }
    
    .review-statistics .dist-row,
    .review-statistics .sub-rating-item {
        margin-bottom: 0.8rem;
    }
    
    .review-statistics .slider-label-container {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }
    
    .review-statistics .custom-range-slider {
        height: 5px;
    }
    
    .review-statistics .slider-track {
        height: 5px;
    }
    
    .review-statistics .rating-circles {
        gap: 2px;
        margin: 0.3rem 0;
    }
    
    .review-statistics .rating-circles .circle {
        width: 10px;
        height: 10px;
    }
    
    /* 리뷰 아이템 초소형 모바일 개선 */
    .review-list-item {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .review-product-info {
        gap: 8px;
    }
    
    .product-image img {
        width: 60px;
        height: 60px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 12px;
    }
    
    .review-title {
        font-size: 15px;
    }
    
    .star {
        font-size: 14px;
    }
    
    .rating-text {
        font-size: 12px;
    }
    
    .review-text {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .review-photos {
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .review-photo img {
        width: 50px;
        height: 50px;
    }
    
    .more-photos {
        width: 50px;
        height: 50px;
        font-size: 10px;
    }
    

    
    /* 페이지네이션 초소형 모바일 개선 */
    .pagination-links {
        gap: 2px;
    }
    
    .pagination-links a {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 30px;
    }
    
    /* 빈 상태 초소형 모바일 개선 */
    .no-reviews {
        padding: 25px 12px;
        font-size: 13px;
    }
    
    /* 더보기 버튼 모바일 개선 */
    .load-more-container {
        margin-top: 20px;
        padding: 15px 0;
    }
    
    .load-more-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}
