/*
 * CSS for Quote Rating Container
 */

.quote-rating-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.quote-rating-container:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.rating-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rating-wrapper label {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 140px;
}

.rating-icon {
    font-size: 1.2em;
    filter: drop-shadow(0 0 2px rgba(255,215,0,0.5));
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
}

.rating-slider {
    width: 120px;
    height: 6px;
    background: #dee2e6;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.rating-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.rating-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.rating-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 600;
    color: #495057;
    min-width: 45px;
}

.community-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 15px;
    font-size: 0.9em;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.community-label {
    color: #6c757d;
    font-weight: 500;
}

.community-value {
    color: #28a745;
    font-weight: 600;
}

.community-count {
    color: #6c757d;
    font-size: 0.85em;
}

.rating-value {
    font-size: 1.1em;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.save-status {
    min-width: 100px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.saving {
    color: #007bff;
    animation: pulse 1s infinite;
}

.saved {
    color: #28a745;
    font-weight: 600;
}

.error {
    color: #dc3545;
    font-weight: 600;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .rating-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .rating-wrapper label {
        min-width: auto;
        justify-content: center;
    }
    
    .slider-container {
        min-width: auto;
        justify-content: center;
    }
    
    .community-rating {
        font-size: 0.8em;
        padding: 4px 8px;
        justify-content: center;
    }
    
    .save-status {
        text-align: center;
        min-width: auto;
    }
}
