/**
 * Review Pro Public Styles
 */

/* Container */
.review-pro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

/* Reviews Title */
.review-pro-reviews-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.review-pro-reviews-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ffc107;
    border-radius: 3px;
}

/* Reviews Summary */
.review-pro-reviews-summary {
    display: flex;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-pro-reviews-summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.review-pro-reviews-summary-left {
    flex: 0 0 35%;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #eee;
}

.review-pro-reviews-summary-right {
    flex: 0 0 65%;
    padding-left: 30px;
}

.review-pro-overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.review-pro-rating-number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #333;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.review-pro-rating-stars {
    margin-bottom: 15px;
    transform: scale(1.2);
}

.review-pro-rating-count {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Parameter Averages */
.review-pro-parameter-averages {
    margin-top: 10px;
}

.review-pro-parameter-average {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.review-pro-parameter-name {
    width: 120px;
    font-size: 15px;
    color: #555;
    font-weight: 600;
}

.review-pro-parameter-bar {
    flex: 1;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 15px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.review-pro-parameter-bar-fill {
    height: 100%;
    background-color: #ffc107;
    border-radius: 5px;
    transition: width 1s ease-in-out;
    background-image: linear-gradient(to right, #ffca28, #ffa000);
}

.review-pro-parameter-value {
    width: 30px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-align: right;
}

/* Yellow Button Style */
.review-pro-btn-yellow {
    background-color: #ffc107 !important;
    color: #333 !important;
    border: none !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.review-pro-btn-yellow:hover {
    background-color: #ffb300 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4) !important;
}

.review-pro-btn-yellow:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(255, 193, 7, 0.3) !important;
}

.review-pro-btn-yellow: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.7s ease;
    z-index: -1;
}

.review-pro-btn-yellow:hover:before {
    left: 100%;
}

/* Write Review Button */
.review-pro-write-review-button {
    text-align: center;
    margin-bottom: 40px;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.pulse-animation:hover {
    animation: none;
}

/* Reviews Filter */
.review-pro-reviews-filter {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.review-pro-reviews-sort select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.review-pro-reviews-sort select:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
    outline: none;
}

/* Reviews Masonry */
.review-pro-reviews-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Review Item */
.review-pro-review-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #ffc107;
}

.review-pro-review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.review-pro-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.review-pro-reviewer {
    display: flex;
    align-items: center;
}

.review-pro-reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #ffc107;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.review-pro-reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-pro-reviewer-info {
    display: flex;
    flex-direction: column;
}

.review-pro-reviewer-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 3px;
}

.review-pro-review-date {
    font-size: 13px;
    color: #888;
}

.review-pro-review-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.review-pro-stars {
    display: flex;
    margin-bottom: 5px;
}

.review-pro-star {
    color: #ffc107;
    font-size: 20px;
    margin-right: 2px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.review-pro-star:last-child {
    margin-right: 0;
}

.review-pro-star-empty {
    color: #e0e0e0;
}

.review-pro-verified-badge {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #ffc107;
    font-weight: 600;
    margin-top: 5px;
    background-color: rgba(255, 193, 7, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.review-pro-verified-icon {
    margin-right: 4px;
    font-weight: bold;
}

.review-pro-review-content-wrapper {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.review-pro-review-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.review-pro-review-content {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.review-pro-review-content p {
    margin-bottom: 12px;
}

.review-pro-review-content p:last-child {
    margin-bottom: 0;
}

/* Load More */
.review-pro-load-more {
    text-align: center;
    margin-top: 30px;
}

/* No Reviews */
.review-pro-no-reviews {
    text-align: center;
    padding: 50px 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    grid-column: 1 / -1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.review-pro-no-reviews p {
    font-size: 18px;
    color: #666;
}

/* Review Popup */
.review-pro-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.review-pro-popup.review-pro-popup-active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.review-pro-popup-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    max-width: 750px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.review-pro-popup-close {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ffc107;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-weight: bold;
    border: 2px solid #fff;
    line-height: 0;
}

.review-pro-popup-close:hover {
    color: #333;
}

.review-pro-popup-close:before {
    content: "×";
    position: relative;
    top: -5px; /* Fine-tune vertical alignment */
}

/* Form Styles */
.review-pro-form {
    margin-top: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: transform 0.3s ease;
}

.review-pro-form:hover {
    transform: translateY(-5px);
}

.review-pro-form-header {
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.review-pro-form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.review-pro-form-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 12px;
}

.review-pro-form-header-decoration {
    width: 60px;
    height: 3px;
    background-color: #ffc107;
    margin: 0 auto;
    border-radius: 3px;
}

.review-pro-form-wrapper {
    margin-top: 20px;
}

.review-pro-form-field {
    margin-bottom: 20px;
}

.review-pro-form-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.review-pro-form-field label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.review-pro-form-field input[type="text"],
.review-pro-form-field input[type="email"],
.review-pro-form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.review-pro-form-field input[type="text"]:focus,
.review-pro-form-field input[type="email"]:focus,
.review-pro-form-field textarea:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
    outline: none;
}

.review-pro-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.review-pro-form-help {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

/* Star Rating Input */
.review-pro-overall-rating-field {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.review-pro-overall-rating-field label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.rating-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    margin: 15px 0 0 0;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    cursor: pointer;
    width: 50px;
    height: 50px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" fill="%23e0e0e0"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 42px;
    transition: all 0.3s ease;
    transform-origin: center;
    margin-bottom:0;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" fill="%23ffc107"/></svg>');
    transform: scale(1.1);
}

.rating-description {
    font-size: 16px;
    color: #666;
    margin-top: 12px;
    min-height: 20px;
    transition: all 0.3s ease;
}

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

/* Parameter Rating */
.review-pro-parameters-section {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.review-pro-parameters-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.review-pro-parameters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.review-pro-parameter-field {
    margin-bottom: 10px;
    background-color: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-pro-parameter-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
    padding: 0 15px;
}

.review-pro-parameter-rating {
    display: flex;
    justify-content: space-between;
}

.review-pro-param-rating-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.review-pro-param-rating-label input {
    display: none;
}

.review-pro-param-rating-label span {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #666;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.review-pro-param-rating-label:hover span {
    transform: scale(1.1);
    background-color: #ffe082;
    color: #333;
}

.review-pro-param-rating-label input:checked + span {
    background-color: #ffc107;
    color: #333;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(255, 193, 7, 0.3);
}

/* Error Messages */
.review-pro-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.review-pro-message-error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.review-pro-message-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4CAF50;
}

.review-pro-form-error {
    color: #c62828;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
}

.review-pro-form-error:before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #f44336;
    color: white;
    border-radius: 50%;
    margin-right: 6px;
    font-size: 12px;
    font-weight: bold;
}

.review-pro-form-error-summary {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.review-pro-form-error-summary p {
    font-weight: 600;
    color: #c62828;
    margin-bottom: 10px;
}

.review-pro-form-error-summary ul {
    margin: 0;
    padding-left: 20px;
}

.review-pro-form-error-summary li {
    color: #c62828;
    font-size: 14px;
    margin-bottom: 6px;
}

/* Thank You Message */
.review-pro-thank-you {
    text-align: center;
    padding: 30px 20px;
}

.review-pro-thank-you-icon {
    width: 60px;
    height: 60px;
    background-color: #ffc107;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.review-pro-thank-you-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.review-pro-thank-you-message {
    font-size: 16px;
    color: #666;
    max-width: 500px;
    margin: 0 auto 15px;
    line-height: 1.5;
}

.review-pro-thank-you-actions {
    margin: 25px 0;
}

.review-pro-popup-close-btn {
    margin-top: 25px;
}

.review-pro-thank-you-close {
    background-color: #f5f5f5;
    color: #333;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-pro-thank-you-close:hover {
    background-color: #e0e0e0;
}

.review-pro-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

/* Loading Overlay */
.review-pro-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(3px);
}

.review-pro-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.review-pro-loading {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 193, 7, 0.2);
    border-top: 4px solid #ffc107;
    border-radius: 50%;
    animation: review-pro-spin 1s linear infinite;
}

@keyframes review-pro-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .review-pro-reviews-summary {
        flex-direction: column;
    }
    
    .review-pro-reviews-summary-left {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 30px;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 30px;
    }
    
    .review-pro-reviews-summary-right {
        flex: 0 0 100%;
        padding-left: 0;
        padding-top: 20px;
    }
    
    .review-pro-reviews-masonry {
        grid-template-columns: 1fr;
    }
    
    .review-pro-parameter-averages {
        margin-bottom: 15px;
    }
    
    .review-pro-parameter-name {
        width: 120px;
    }
    
    .review-pro-popup-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .review-pro-parameters-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .review-pro-reviews-title {
        font-size: 28px;
    }
    
    .review-pro-review-header {
        flex-direction: column;
    }
    
    .review-pro-review-rating {
        align-items: flex-start;
        margin-top: 15px;
    }
    
    .review-pro-overall-rating {
        flex-direction: column;
        align-items: center;
    }
    
    .review-pro-rating-number {
        margin-bottom: 15px;
    }
    
    .review-pro-rating-stars {
        margin-bottom: 15px;
    }
    
    .review-pro-write-review-button button {
        width: 100%;
    }
    
    
    .review-pro-form-title {
        font-size: 22px;
    }
}
