/* SEO Star Rating Component CSS */
/* 為 seo-star-rating.blade.php 提供星級評分樣式 */

.seo-star-rating {
    display: inline-flex;
    align-items: center;
    font-family: inherit;
}

.stars-display {
    display: flex;
    align-items: center;
}

.star-icon {
    display: inline-block;
    line-height: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 響應式字體大小 */
.seo-star-rating.text-xs .star-icon {
    font-size: 0.75rem;
}

.seo-star-rating.text-sm .star-icon {
    font-size: 0.875rem;
}

.seo-star-rating.text-base .star-icon {
    font-size: 1rem;
}

.seo-star-rating.text-lg .star-icon {
    font-size: 1.125rem;
}

.seo-star-rating.text-2xl .star-icon {
    font-size: 1.5rem;
}

/* 提升可訪問性 */
.seo-star-rating:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 星星懸停效果（用於互動式評分組件） */
.seo-star-rating.interactive .star-icon:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.seo-star-rating.interactive .star-icon:hover i {
    color: #fbbf24 !important;
} 