.modern-rating-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    margin: 8px 0;
}

.modern-rating-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rating-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}

.rating-icon {
    color: #f59e0b;
    font-size: 1rem;
}

.user-rating-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f0f9ff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.user-rating-badge i {
    color: #10b981;
    font-size: 0.8rem;
}

.rating-stars-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars-wrapper {
    display: flex;
    gap: 4px;
    align-items: center;
}

.star-button {
    background: none;
    border: none;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.star-button:hover:not(:disabled) {
    background: #fef3c7;
    transform: scale(1.1);
}

.star-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.star-button i {
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.star-default i {
    color: #d1d5db;
}

.star-hover i {
    color: #f59e0b;
    transform: scale(1.1);
}

.star-rated i {
    color: #f59e0b;
    animation: starPop 0.2s ease;
}

@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.rating-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.8rem;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rating-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.average-rating,
.total-ratings {
    text-align: center;
}

.rating-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f59e0b;
}

.rating-label {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 2px;
}

.rating-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
}

.rating-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 8px;
    padding: 8px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.rating-hint i {
    color: #f59e0b;
    font-size: 0.9rem;
}

/* Dark Mode Styles */
[data-theme="dark"] .modern-rating-container {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .modern-rating-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #4b5563;
}

[data-theme="dark"] .rating-title {
    color: #f3f4f6;
}

[data-theme="dark"] .user-rating-badge {
    background: #1e3a8a;
    color: #93c5fd;
    border-color: #3b82f6;
}

[data-theme="dark"] .rating-stats {
    background: #374151;
    border-color: #4b5563;
}

[data-theme="dark"] .rating-label {
    color: #9ca3af;
}

[data-theme="dark"] .rating-divider {
    background: #4b5563;
}

[data-theme="dark"] .rating-hint {
    background: #374151;
    border-color: #4b5563;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-rating-container {
        padding: 12px;
        margin: 6px 0;
    }
    
    .rating-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .stars-wrapper {
        gap: 2px;
    }
    
    .star-button {
        min-width: 28px;
        min-height: 28px;
    }
    
    .star-button i {
        font-size: 1rem;
    }
    
    .rating-stats {
        gap: 12px;
        padding: 6px 10px;
    }
    
    .rating-number {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .rating-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .rating-divider {
        width: 32px;
        height: 1px;
    }
} 