/* Google Rating Plugin Styles */

.google-rating-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.google-rating-stars {
    display: flex;
    gap: 2px;
    align-items: center;
}

.google-rating-star {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: #ddd;
    transition: all 0.2s ease;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.google-rating-star.filled {
    background: #ffd700;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.google-rating-star.half-filled {
    background: linear-gradient(90deg, #ffd700 50%, #ddd 50%);
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.google-rating-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

.google-rating-count {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.google-rating-error {
    color: #d63384;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    display: inline-block;
    margin: 5px 0;
}

/* Hover effects for better UX */
.google-rating-container:hover .google-rating-star.filled {
    background: #ffed4a;
    transform: scale(1.1);
}

.google-rating-container:hover .google-rating-star.half-filled {
    background: linear-gradient(90deg, #ffed4a 50%, #ddd 50%);
    transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .google-rating-container {
        gap: 6px;
    }
    
    .google-rating-star {
        width: 14px;
        height: 14px;
    }
    
    .google-rating-text {
        font-size: 13px;
    }
    
    .google-rating-count {
        font-size: 11px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .google-rating-text {
        color: #e0e0e0;
    }
    
    .google-rating-count {
        color: #b0b0b0;
    }
    
    .google-rating-star {
        background: #555;
    }
}

/* Accessibility improvements */
.google-rating-container[aria-label] {
    outline: none;
}

.google-rating-container:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Admin styles */
.google-rating-usage-guide {
    max-width: 800px;
}

.google-rating-example-box {
    margin: 15px 0 !important;
    padding: 15px !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.google-rating-example-box h3 {
    margin-top: 0 !important;
    color: #0073aa;
    font-size: 16px;
}

.google-rating-example-box code {
    display: block !important;
    padding: 10px !important;
    background: #f1f1f1 !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    font-family: 'Courier New', Courier, monospace !important;
    word-break: break-all;
    color: #333;
    overflow-x: auto;
}

.google-rating-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 3px;
    border-left: 3px solid #0073aa;
}

.google-rating-params-list {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
}

.google-rating-params-list li {
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.google-rating-params-list li:last-child {
    border-bottom: none;
}

.google-rating-info-box {
    background: #fff !important;
    padding: 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    margin: 15px 0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.google-rating-info-box h3 {
    color: #0073aa;
    margin-top: 0;
}

.google-rating-info-box ol {
    padding-left: 20px;
}

.google-rating-info-box ol li {
    margin: 8px 0;
    line-height: 1.5;
}
