/* アプリ評価システムのスタイル - シンプル版 */

.star-rating-container {
    margin-bottom: 1rem;
}

.star-rating-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937 !important;
    margin-bottom: 8px;
}

.star-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-rating-stars {
    display: flex;
    gap: 4px;
}

.star-rating-item {
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s ease;
    color: #6b7280 !important; /* 初期状態のグレー */
    user-select: none;
    line-height: 1;
    opacity: 0.8;
}

.star-rating-item:hover {
    color: #fde047 !important; /* ホバー時の明るい黄色 */
    opacity: 1;
    transform: scale(1.1);
}

.star-rating-item.highlighted {
    color: #fde047 !important; /* ハイライト時の黄色 */
    opacity: 1;
}

.star-rating-item.selected {
    color: #eab308 !important; /* 選択時の濃い黄色 */
    opacity: 1;
}

.rating-display {
    font-size: 14px;
    color: #6b7280 !important;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

/* ダークモード対応 */
.dark .star-rating-label {
    color: #ffffff !important;
}

.dark .rating-display {
    color: #d1d5db !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .star-rating-item {
        font-size: 28px;
    }
    
    .star-rating-stars {
        gap: 6px;
    }
}

/* アクセシビリティ対応 */
.star-rating-item:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 2px;
}

/* アニメーション効果 */
@keyframes starPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.star-rating-item.selected {
    animation: starPulse 0.3s ease;
}

/* デバッグ用（開発時のみ） */
.debug .star-rating-item {
    border: 1px solid red;
}

.debug .star-rating-item.highlighted {
    border-color: yellow;
}

.debug .star-rating-item.selected {
    border-color: orange;
}
