/* Product Review Pro - Frontend Styles */
.prp-reviews-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f0;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.prp-reviews-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.prp-reviews-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Rating Snapshot */
.prp-rating-snapshot h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.prp-rating-snapshot p {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.prp-rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.prp-rating-bar:hover {
    opacity: 0.8;
}

.prp-rating-label {
    width: 50px;
    font-size: 13px;
    color: #333;
}

.prp-rating-progress {
    flex: 1;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    margin: 0 10px;
    overflow: hidden;
}

.prp-rating-fill {
    height: 100%;
    background: #8b7355;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.prp-rating-count {
    width: 30px;
    text-align: right;
    font-size: 13px;
    color: #666;
}

/* Overall Rating */
.prp-overall-rating {
    text-align: center;
}

.prp-overall-rating h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.prp-overall-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.prp-score-number {
    font-size: 48px;
    font-weight: 300;
    color: #333;
}

.prp-score-stars {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.prp-stars {
    color: #8b7355;
    font-size: 16px;
    letter-spacing: 2px;
}

.prp-review-count {
    font-size: 12px;
    color: #666;
}

.prp-recommend-text {
    font-size: 13px;
    color: #666;
    margin-top: 15px;
}

/* Review This Product */
.prp-write-review {
    text-align: center;
}

.prp-write-review h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.prp-star-select {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.prp-star-btn {
    width: 40px !important;
    height: 40px !important;
    border: 2px solid #8b7355 !important;
    background: #fff !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    color: #8b7355 !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.prp-star-btn:hover,
.prp-star-btn.active {
    background: #8b7355 !important;
    color: #fff !important;
}

.prp-write-review p {
    font-size: 12px;
    color: #888;
}

/* Reviews List */
.prp-reviews-list {
    margin-top: 20px;
}

.prp-review-item {
    background: #f5f5f0;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.prp-review-item:last-child {
    border-bottom: none;
}

.prp-review-stars {
    color: #8b7355;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.prp-review-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.prp-review-author {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.prp-review-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.prp-review-content {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

/* Pagination */
.prp-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.prp-page-info {
    font-size: 13px;
    color: #666;
}

.prp-page-nav {
    display: flex;
    gap: 10px;
}

.prp-page-btn {
    width: 40px !important;
    height: 40px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    color: #666 !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.prp-page-btn:hover:not(:disabled) {
    border-color: #8b7355 !important;
    color: #8b7355 !important;
}

.prp-page-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Modal */
.prp-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.prp-modal-overlay.active {
    display: flex;
}

.prp-modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
}

.prp-modal-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.prp-modal-product-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.prp-modal-product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.prp-modal-product-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.prp-modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 30px !important;
    height: 30px !important;
    border: none !important;
    background: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    color: #666 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.prp-modal-body {
    padding: 20px;
}

.prp-modal-section {
    margin-bottom: 25px;
}

.prp-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.prp-section-number {
    width: 24px;
    height: 24px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 10px;
}

.prp-section-title {
    font-size: 14px;
    color: #333;
}

.prp-section-status {
    margin-left: auto;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 3px;
    background: #e8f5e9;
    color: #2e7d32;
}

.prp-section-status.in-progress {
    background: #fff3e0;
    color: #e65100;
}

.prp-form-note {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
}

.prp-form-group {
    margin-bottom: 20px;
}

.prp-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.prp-form-group label span {
    color: #c00;
}

.prp-modal-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.prp-modal-star {
    width: 45px !important;
    height: 45px !important;
    border: 2px solid #8b7355 !important;
    background: #fff !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    color: #8b7355 !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.prp-modal-star:hover,
.prp-modal-star.active {
    background: #8b7355 !important;
    color: #fff !important;
}

.prp-rating-text {
    font-size: 13px;
    color: #666;
}

.prp-form-group input[type="text"],
.prp-form-group input[type="email"],
.prp-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.prp-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.prp-form-group input:focus,
.prp-form-group textarea:focus {
    outline: none;
    border-color: #8b7355;
}

.prp-char-count {
    text-align: right;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.prp-form-group .prp-link {
    float: right;
    font-size: 12px;
    color: #8b7355;
    text-decoration: none;
}

.prp-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.prp-checkbox-group input[type="checkbox"] {
    margin-top: 3px;
}

.prp-checkbox-group label {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.prp-checkbox-group a {
    color: #8b7355;
}

.prp-form-note-small {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
}

.prp-submit-btn {
    width: 100% !important;
    padding: 15px !important;
    background: #8b7355 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.prp-submit-btn:hover {
    background: #6d5a43 !important;
}

.prp-submit-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}

/* Responsive */
@media (max-width: 768px) {
    .prp-reviews-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .prp-modal {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
}
