/* Review System Styles */

/* Loading spinner */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Review message styles */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Star rating styles */
.list-star .icon-star-o {
    color: #d2d2d2;
}

.list-star .icon-star {
    color: #ff6f61;
}

/* Review form validation */
.form-review input:invalid,
.form-review textarea:invalid {
    border-color: #dc3545;
}

.form-review input:valid,
.form-review textarea:valid {
    border-color: #28a745;
}

/* Review item hover effect */
.review-item:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin: -10px;
    transition: all 0.3s ease;
}

/* Rating breakdown animation */
.rating-bar .value {
    transition: width 0.5s ease-in-out;
}

/* Submit button loading state */
#submit-review-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Review count badge */
.count-star {
    background-color: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.875rem;
}

/* Average rating highlight */
.rating-average {
    font-weight: 600;
    color: #ff6f61;
}

/* Review date styling */
.review-date {
    color: #6c757d;
    font-style: italic;
}

/* Review author name */
.review-author {
    color: #495057;
    font-weight: 500;
}

/* Review text */
.review-content .text {
    line-height: 1.6;
    color: #6c757d;
}

/* Form field focus states */
.form-review input:focus,
.form-review textarea:focus {
    border-color: #ff6f61;
    box-shadow: 0 0 0 0.2rem rgba(255, 111, 97, 0.25);
    outline: none;
}

/* Star rating hover effect */
.list-rating-check label:hover,
.list-rating-check label:hover ~ label {
    color: #ff6f61;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* Review submission success animation */
@keyframes reviewSubmitted {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.review-submitted {
    animation: reviewSubmitted 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wd-customer-review {
        flex-direction: column;
        gap: 20px;
    }
    
    .review-heading {
        max-width: 100%;
    }
    
    .group-2-ip {
        grid-template-columns: 1fr;
    }
    
    .review-item {
        flex-direction: column;
        text-align: center;
    }
    
    .review-avt {
        margin: 0 auto 15px;
    }
} 