/**
 * Station Rating System - Radio Icons
 * Vintage radio icons instead of stars
 */

.rating-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rating-radios {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.rating-radio {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.rating-radio svg {
    width: 100%;
    height: 100%;
    fill: #d1d5db;
    transition: all 0.3s ease;
}

.rating-radio:hover svg,
.rating-radio.active svg {
    fill: #667eea;
    transform: scale(1.1);
}

.rating-radio.active svg {
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.rating-radios.interactive .rating-radio {
    cursor: pointer;
}

.rating-radios.interactive .rating-radio:hover {
    transform: translateY(-2px);
}

.rating-radios.readonly .rating-radio {
    cursor: default;
}

.rating-radios.readonly .rating-radio:hover {
    transform: none;
}

.rating-text {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
    margin-left: 6px;
}

.rating-average {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.rating-count {
    font-size: 13px;
    color: #6b7280;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-display-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rating-display-right {
    flex: 1;
}

.rating-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.rating-bar-label {
    width: 100px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #4b5563;
}

.rating-bar-label svg {
    width: 16px;
    height: 16px;
    fill: #667eea;
}

.rating-bar-wrapper {
    flex: 1;
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.rating-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.rating-bar-percentage {
    min-width: 35px;
    text-align: right;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.rating-widget {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rating-widget-header {
    text-align: center;
    margin-bottom: 20px;
}

.rating-widget-header h3 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 12px;
}

.rating-widget-interactive {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.rating-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.rating-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.rating-message {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
}

.rating-message.success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.rating-message.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.rating-message.info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.station-rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.station-rating-summary .rating-radios {
    display: inline-flex;
}

.station-rating-summary .rating-info {
    font-size: 13px;
    color: #6b7280;
}

.compact-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.compact-rating .rating-radio {
    width: 20px;
    height: 20px;
}

.compact-rating .rating-text {
    font-size: 12px;
}

.station-card .rating-container {
    margin-top: 8px;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .rating-radio {
        width: 24px;
        height: 24px;
    }
    
    .rating-widget {
        padding: 16px;
    }
    
    .rating-display {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rating-display-left {
        flex-direction: row;
        justify-content: space-between;
        padding-bottom: 16px;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 16px;
    }
    
    .rating-bar-label {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .rating-radio {
        width: 22px;
        height: 22px;
    }
    
    .compact-rating .rating-radio {
        width: 18px;
        height: 18px;
    }
}
