/* e.store.rating.css - Store Rating Section Styles */

.store-rating-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.store-rating-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.store-rating-header .store-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    text-align: right;
}

.store-rating-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.average-rating-section,
.user-rating-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-label {
    font-weight: 500;
    color: #495057;
    min-width: 100px;
}

/* Rating Stars Styles */
.rating-stars {
    display: inline-flex;
    gap: 3px;
    direction: rtl;
}

.rating-stars i {
    font-size: 1.2rem;
    color: #ddd;
    cursor: default;
    transition: color 0.2s ease;
}

/* Readonly Stars */
.rating-stars.readonly i {
    cursor: default;
}

.rating-stars.readonly .star-filled {
    color: #ffc107;
}

/* Interactive Stars */
.rating-stars.interactive {
    cursor: pointer;
}

.rating-stars.interactive i {
    cursor: pointer;
    color: #ddd;
}

.rating-stars.interactive i:hover {
    color: #ffc107;
    transform: scale(1.1);
}

.rating-stars.interactive .star-filled {
    color: #ffc107;
}

.rating-stars.interactive .star-hover {
    color: #ffc107;
}

.rating-stars.interactive i.star-hover {
    color: #ffc107;
}

.rating-stars.interactive i.star-hover.star-filled {
    color: #ff9800;
}

/* Rating Value and Count */
.rating-value {
    font-weight: 600;
    color: #212529;
    font-size: 1.1rem;
}

.rating-count {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Loading State */
.rating-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.rating-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .store-rating-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .store-rating-header .store-name {
        font-size: 1.25rem;
    }
    
    .average-rating-section,
    .user-rating-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .rating-label {
        min-width: auto;
    }
    
    .rating-stars i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .store-rating-section {
        padding: 12px;
    }
    
    .store-rating-header .store-name {
        font-size: 1.1rem;
    }
    
    .rating-stars i {
        font-size: 0.9rem;
    }
}

