/* Professional Product Reviews System Styling */

/* Interactive Star Rating Form */
.rating-input-group {
    display: flex;
    flex-direction: row-reverse; /* Reverses the stars so hover ~ works correctly */
    justify-content: flex-end;
}

.rating-input-group input {
    display: none;
}

.rating-input-group label {
    cursor: pointer;
    font-size: 2rem;
    color: #4B5563; /* Gunmetal default */
    transition: color 0.2s ease-in-out;
}

/* Hover effects */
.rating-input-group label:hover,
.rating-input-group label:hover ~ label {
    color: #D4AF37; /* Gold */
}

/* Checked state */
.rating-input-group input:checked ~ label {
    color: #D4AF37; /* Gold */
}

/* Rating Distribution Bars */
.rating-bar-container {
    background-color: #1a1a1a;
    border-radius: 9999px;
    height: 8px;
    width: 100%;
    overflow: hidden;
}

.rating-bar-fill {
    background-color: #D4AF37;
    height: 100%;
    border-radius: 9999px;
    width: 0%; /* Initial state for animation */
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Review Cards */
.review-card {
    transition: background-color 0.3s ease;
}

.review-card:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.helpful-btn {
    transition: all 0.2s ease;
}

.helpful-btn:hover {
    color: #D4AF37;
    border-color: #D4AF37;
}

.helpful-btn.active {
    color: #D4AF37;
    border-color: #D4AF37;
    background-color: rgba(212, 175, 55, 0.1);
}

/* Custom Image Upload Input Styling */
.image-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.image-upload-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

/* Fullscreen Modal Image */
.review-modal-img {
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
}
