/* BMG User Rating Styles */
.bmg-user-rating-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 1px solid #34495e;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.bmg-user-rating-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #f1c40f, #27ae60, #3498db);
}

.bmg-user-rating-section h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.bmg-user-rating-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #e74c3c;
    border-radius: 1px;
}

/* Average Rating Display */
.average-rating {
    background: rgba(52, 73, 94, 0.8);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #4a5f7a;
}

.average-label {
    font-weight: 600;
    color: #bdc3c7;
    margin-right: 8px;
}

.average-value {
    font-size: 18px;
    font-weight: bold;
    color: #f39c12;
    margin-right: 8px;
}

.rating-count {
    color: #95a5a6;
    font-size: 14px;
}

/* Rating Form */
.rating-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.rating-input-container {
    width: 100%;
    max-width: 400px;
}

/* Star Rating Styles */
.star-rating {
    text-align: center;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* User Rating Stars - Make selectors specific to user rating section */
.bmg-user-rating-section .star {
    font-size: 32px;
    color: #95a5a6;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}

.bmg-user-rating-section .star:hover {
    transform: scale(1.1);
    color: #f39c12;
}

.bmg-user-rating-section .star.filled {
    color: #f39c12;
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.bmg-user-rating-section .star:active {
    transform: scale(0.95);
}

/* Number Rating Styles */
.number-rating {
    text-align: center;
}

.rating-number {
    width: 120px;
    padding: 12px 15px;
    border: 2px solid #4a5f7a;
    border-radius: 8px;
    background: rgba(52, 73, 94, 0.8);
    color: white;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.rating-number:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    background: rgba(52, 73, 94, 1);
}

.rating-number::placeholder {
    color: #95a5a6;
}

/* Rating Text */
.rating-text {
    font-size: 14px;
    color: #bdc3c7;
    margin-top: 5px;
    font-style: italic;
}

/* Submit Button */
.submit-rating-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    min-width: 150px;
}

.submit-rating-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.submit-rating-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.submit-rating-btn:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.submit-rating-btn.active {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.submit-rating-btn.active:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Rating Messages */
.rating-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    min-height: 20px;
    transition: all 0.3s ease;
}

.rating-message.success {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid #27ae60;
    color: #2ecc71;
}

.rating-message.error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* Read-only Rating Display */
.rating-completed {
    text-align: center;
    padding: 20px;
    background: rgba(52, 73, 94, 0.8);
    border-radius: 8px;
    border: 1px solid #4a5f7a;
}

.rating-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(39, 174, 96, 0.2);
    border-radius: 6px;
    border: 1px solid #27ae60;
}

.status-icon {
    font-size: 18px;
    color: #2ecc71;
    font-weight: bold;
}

.status-text {
    color: #2ecc71;
    font-weight: 600;
}

/* Read-only Star Display */
.readonly-stars {
    text-align: center;
}

.stars-display {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.stars-display .star {
    font-size: 32px;
    color: #95a5a6;
    cursor: default;
}

.stars-display .star.filled {
    color: #f39c12;
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.stars-display .star.half {
    color: #f39c12;
    position: relative;
}

.stars-display .star.half::after {
    content: "☆";
    position: absolute;
    left: 0;
    color: #95a5a6;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.stars-display .star.empty {
    color: #95a5a6;
}

/* Prevent hover effects on read-only stars */
.stars-display.readonly .star {
    cursor: default !important;
    pointer-events: none !important;
}

.stars-display.readonly .star:hover {
    transform: none !important;
    color: inherit !important;
    animation: none !important;
}

.stars-display.readonly .star.filled:hover {
    color: #f39c12 !important;
}

.stars-display.readonly .star.half:hover {
    color: #f39c12 !important;
}

.stars-display.readonly .star.empty:hover {
    color: #95a5a6 !important;
}

/* Read-only Number Display */
.readonly-number {
    text-align: center;
}

.number-display {
    margin-bottom: 10px;
}

.number-display .rating-value {
    font-size: 32px;
    font-weight: bold;
    color: #f39c12;
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

.number-display .rating-max {
    font-size: 18px;
    color: #95a5a6;
    margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bmg-user-rating-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .bmg-user-rating-section h3 {
        font-size: 18px;
    }
    
    .stars {
        gap: 6px;
    }
    
    .star {
        font-size: 28px;
    }
    
    .rating-number {
        width: 100px;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .submit-rating-btn {
        padding: 10px 25px;
        font-size: 14px;
        min-width: 120px;
    }
    
    .average-rating {
        padding: 12px;
    }
    
    .average-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .bmg-user-rating-section {
        padding: 15px;
    }
    
    .stars {
        gap: 4px;
    }
    
    .star {
        font-size: 24px;
    }
    
    .rating-number {
        width: 80px;
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .submit-rating-btn {
        padding: 8px 20px;
        font-size: 12px;
        min-width: 100px;
    }
}

/* Animation for star hover effects */
@keyframes starGlow {
    0% { text-shadow: 0 0 5px rgba(243, 156, 18, 0.5); }
    50% { text-shadow: 0 0 15px rgba(243, 156, 18, 0.8); }
    100% { text-shadow: 0 0 5px rgba(243, 156, 18, 0.5); }
}

.bmg-user-rating-section .star:hover {
    animation: starGlow 1s ease-in-out infinite;
}

 