/**
 * One Elementor - One Review Product Widget
 * Modern & Beautiful Review System
 */

/* ========================================
   Main Container
======================================== */
.oe-review-wrapper {
    width: 100%;
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
}

/* Title */
.oe-review-title {
    margin: 0 0 30px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333333;
}

/* ========================================
   Rating Summary
======================================== */
.oe-review-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    border-radius: 12px;
    margin-bottom: 30px;
}

/* Score Section */
.oe-review-summary-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.oe-review-score-number {
    font-size: 56px;
    font-weight: 700;
    color: #333333;
    line-height: 1;
    margin-bottom: 10px;
}

.oe-review-summary-score .oe-review-stars {
    margin-bottom: 8px;
}

.oe-review-count {
    font-size: 14px;
    color: #666666;
}

/* Rating Bars */
.oe-review-summary-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oe-review-bar-item {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    gap: 15px;
}

.oe-review-bar-label {
    font-size: 14px;
    font-weight: 500;
    color: #666666;
}

.oe-review-bar {
    height: 10px;
    background-color: #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.oe-review-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFB800 0%, #FFA000 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.oe-review-bar-count {
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    text-align: right;
}

/* ========================================
   Stars Display
======================================== */
.oe-review-stars {
    display: flex;
    gap: 4px;
    align-items: center;
}

.oe-review-stars svg {
    width: 20px;
    height: 20px;
}

.oe-review-stars .star-filled {
    fill: #FFB800;
}

.oe-review-stars .star-empty {
    fill: #E0E0E0;
}

/* ========================================
   Reviews List
======================================== */
.oe-review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.oe-review-empty {
    padding: 40px;
    text-align: center;
    color: #999999;
    font-size: 16px;
    background-color: #F8F9FA;
    border-radius: 12px;
}

/* Review Item */
.oe-review-item {
    padding: 25px;
    background-color: #FFFFFF;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.oe-review-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Review Header */
.oe-review-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.oe-review-avatar {
    flex-shrink: 0;
}

.oe-review-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.oe-review-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.oe-review-author {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.oe-review-date {
    font-size: 13px;
    color: #999999;
}

/* Review Content */
.oe-review-content {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
}

.oe-review-content p {
    margin: 0;
}

/* ========================================
   Review Form
======================================== */
.oe-review-form {
    padding: 30px;
    background-color: #F8F9FA;
    border-radius: 12px;
    margin-top: 30px;
}

.oe-review-form-title {
    margin: 0 0 25px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
}

.oe-review-form-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Rating Input */
.oe-review-rating-input label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
}

.oe-review-stars-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}

.oe-review-stars-input input[type="radio"] {
    display: none;
}

.oe-review-stars-input label {
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
}

.oe-review-stars-input label svg {
    width: 40px;
    height: 40px;
    fill: #E0E0E0 !important;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Hover effect - fill current and all previous stars */
.oe-review-stars-input label:hover svg {
    fill: #FFB800 !important;
    transform: scale(1.15);
}

.oe-review-stars-input label:hover ~ label svg {
    fill: #FFB800 !important;
    transform: scale(1.1);
}

/* Selected state */
.oe-review-stars-input input[type="radio"]:checked ~ label svg {
    fill: #FFB800 !important;
}

/* Hover class from JS */
.oe-review-stars-input label.hover svg {
    fill: #FFB800 !important;
    transform: scale(1.1);
}

/* Textarea */
.oe-review-textarea label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
}

.oe-review-textarea textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background-color: #FFFFFF;
}

.oe-review-textarea textarea:focus {
    outline: none;
    border-color: #FFB800;
    box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.1);
}

.oe-review-textarea textarea::placeholder {
    color: #AAAAAA;
}

.oe-review-stars-input label svg path {
    color: #bbbbbb !important;
    fill: #bbbbbb !important;
}

.oe-review-stars-input label:hover svg path,
.oe-review-stars-input label:hover ~ label svg path {
    color: #f5c518 !important;
    fill: #f5c518 !important;
}

.oe-review-stars-input input:checked + label svg path,
.oe-review-stars-input input:checked ~ label svg path {
    color: #f5c518 !important;
    fill: #f5c518 !important;
}

.oe-review-stars-input input {
    position: absolute;
    left: -9999px;
}

/* Submit Button */
.oe-review-submit {
    align-self: flex-start;
    padding: 16px 40px;
    background: #38a000;
    background-color: rgb(56, 160, 0);
    color: #FFFFFF !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.oe-review-submit:hover {
    background: linear-gradient(135deg, #45A049 0%, #3D8B40 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
}

.oe-review-submit:active {
    transform: translateY(0);
}

.oe-review-submit.submitting {
    opacity: 0.7;
    cursor: wait;
}

/* Review Message */
.oe-review-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
}

.oe-review-message-success {
    background-color: #D4EDDA;
    border: 1px solid #C3E6CB;
    color: #155724;
}

.oe-review-message-error {
    background-color: #F8D7DA;
    border: 1px solid #F5C6CB;
    color: #721C24;
}

/* Required */
.required {
    color: #FF6B6B;
}

/* Login Required */
.oe-review-login-required {
    padding: 30px;
    background-color: #FFF3CD;
    border: 1px solid #FFE69C;
    border-radius: 12px;
    text-align: center;
}

.oe-review-login-required p {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #856404;
}

.oe-review-login-link {
    display: inline-block;
    padding: 10px 24px;
    background-color: #FF6B6B;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.oe-review-login-link:hover {
    background-color: #FF5252;
    transform: translateY(-2px);
}

/* ========================================
   Responsive Design
======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .oe-review-summary {
        grid-template-columns: 180px 1fr;
        gap: 30px;
        padding: 25px;
    }

    .oe-review-score-number {
        font-size: 48px;
    }

    .oe-review-wrapper {
        padding: 25px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .oe-review-summary {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }

    .oe-review-summary-score {
        padding-bottom: 20px;
        border-bottom: 2px solid #E0E0E0;
    }

    .oe-review-score-number {
        font-size: 42px;
    }

    .oe-review-wrapper {
        padding: 20px;
    }

    .oe-review-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .oe-review-item {
        padding: 20px;
    }

    .oe-review-form {
        padding: 20px;
    }

    .oe-review-stars-input label svg {
        width: 28px;
        height: 28px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .oe-review-wrapper {
        padding: 15px;
    }

    .oe-review-score-number {
        font-size: 36px;
    }

    .oe-review-bar-item {
        grid-template-columns: 50px 1fr 35px;
        gap: 10px;
    }

    .oe-review-bar-label {
        font-size: 13px;
    }

    .oe-review-avatar img {
        width: 40px;
        height: 40px;
    }

    .oe-review-author {
        font-size: 15px;
    }

    .oe-review-content {
        font-size: 14px;
    }

    .oe-review-stars-input label svg {
        width: 24px;
        height: 24px;
    }
}