/* ============================================
   Product Reviews Pro - Frontend Styles
   ============================================ */

/* Rating Summary */
.prp-reviews-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.prp-rating-summary {
    display: flex;
    gap: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    margin-bottom: 30px;
}

.prp-summary-left {
    text-align: center;
    min-width: 200px;
}

.prp-average-number {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
}

.prp-stars-large {
    font-size: 24px;
    margin: 10px 0;
    color: #ffd700;
}

.prp-total-count {
    font-size: 14px;
    opacity: 0.9;
    margin: 5px 0;
}

.prp-recommendation {
    font-size: 13px;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: inline-block;
}

.prp-summary-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.prp-rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prp-star-label {
    min-width: 50px;
    font-size: 13px;
}

.prp-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
}

.prp-progress-fill {
    height: 100%;
    background: #ffd700;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.prp-count-label {
    min-width: 30px;
    text-align: right;
    font-size: 13px;
}

/* Filters */
.prp-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.prp-filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.prp-filter-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.prp-filter-btn:hover,
.prp-filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.prp-sort-dropdown select {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

/* Write Review Button */
.prp-write-review-section {
    text-align: center;
    margin-bottom: 30px;
}

.prp-btn-write-review {
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.prp-btn-write-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Review Items */
.prp-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.prp-review-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}

.prp-review-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.prp-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.prp-reviewer-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.prp-avatar img,
.prp-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.prp-avatar-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.prp-reviewer-name {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
}

.prp-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #22c55e;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 8px;
}

.prp-review-date {
    font-size: 12px;
    color: #888;
}

.prp-review-rating {
    color: #ffd700;
    font-size: 14px;
}

.prp-review-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.prp-review-content {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Media Gallery */
.prp-review-media {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.prp-media-item {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s;
}

.prp-media-item:hover {
    transform: scale(1.05);
}

.prp-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prp-video-item .prp-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Review Actions */
.prp-review-actions {
    display: flex;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.prp-review-actions button {
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.prp-review-actions button:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.prp-review-actions button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Replies */
.prp-review-replies {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 3px solid #e0e0e0;
}

.prp-reply-item {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.prp-admin-reply {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 1px solid #667eea30;
}

.prp-admin-badge {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 8px;
}

/* Modal */
.prp-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.prp-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: prpFadeIn 0.3s;
}

@keyframes prpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.prp-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: prpSlideUp 0.3s;
}

@keyframes prpSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.prp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.prp-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.prp-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.prp-modal-close:hover {
    color: #333;
}

.prp-modal-body {
    padding: 25px;
}

/* Form Styles */
.prp-form-group {
    margin-bottom: 20px;
}

.prp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.prp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.prp-form-group input,
.prp-form-group textarea,
.prp-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.prp-form-group input:focus,
.prp-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Star Rating Input */
.prp-star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.prp-star-rating-input input {
    display: none;
}

.prp-star-rating-input label {
    cursor: pointer;
    font-size: 28px;
    color: #ddd;
    transition: color 0.2s;
}

.pr