/**
 * VikVek Reviews - Frontend Styles
 */

/* Reviews Section */
.vvr-reviews-section {
    margin-top: 40px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vvr-reviews-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.vvr-average-rating {
    font-size: 1.2rem;
    color: #f59e0b;
}

.vvr-review-count {
    color: #9ca3af;
    font-weight: normal;
    font-size: 0.9rem;
}

/* Notice */
.vvr-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.vvr-notice-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

/* Review Form */
.vvr-review-form-wrapper {
    background: rgba(30, 30, 45, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

.vvr-review-form-wrapper h3 {
    margin-top: 0;
    margin-bottom: 25px;
}

.vvr-form-group {
    margin-bottom: 20px;
}

.vvr-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.vvr-form-group .required {
    color: #ef4444;
}

/* Star Rating Input */
.vvr-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.vvr-star-rating input {
    display: none;
}

.vvr-star-rating label {
    cursor: pointer;
    font-size: 32px;
    color: #4b5563;
    transition: color 0.2s ease;
    margin: 0;
}

.vvr-star-rating input:checked~label,
.vvr-star-rating label:hover,
.vvr-star-rating label:hover~label {
    color: #f59e0b;
}

/* Textarea */
.vvr-review-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.vvr-review-form textarea:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
}

/* Checkbox */
.vvr-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.vvr-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
}

.vvr-help-text {
    margin: 5px 0 0 28px;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Submit Button */
.vvr-submit-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vvr-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Reviews List */
.vvr-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vvr-review-item {
    background: rgba(30, 30, 45, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
}

.vvr-review-header {
    margin-bottom: 15px;
}

.vvr-review-rating {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.vvr-star {
    color: #4b5563;
}

.vvr-star-filled {
    color: #f59e0b;
}

.vvr-review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.vvr-reviewer-name {
    font-weight: 600;
    color: #fff;
}

.vvr-verified-badge {
    margin-left: 5px;
}

.vvr-review-date {
    color: #9ca3af;
}

.vvr-verified-purchase {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.vvr-review-content {
    color: #e5e7eb;
    line-height: 1.7;
}

.vvr-review-content p {
    margin: 0;
}

.vvr-no-reviews {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .vvr-reviews-section {
        padding: 30px 0;
    }

    .vvr-review-form-wrapper {
        padding: 20px;
    }

    .vvr-star-rating label {
        font-size: 28px;
    }
}