/* rb.bbs.star comment skin styles - extracted from cmt/basic/skin.php */

.rb-cmt-sort { display:flex; gap:6px; margin:10px 0 15px; }
.rb-cmt-sort-btn { padding:5px 12px; border:1px solid #ddd; border-radius:20px; background:#fff; color:#666; font-size:12px; cursor:pointer; transition:all 0.2s; }
.rb-cmt-sort-btn.active { background:#25282B; color:#fff; border-color:#25282B; }

.nickname-suggest-btn {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 1px solid var(--text-primary) !important;
    color: var(--text-primary) !important;
}

.comment-info-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.comment_star_rating_wrap {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-point-message {
    white-space: nowrap;
}

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

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

.comment-star-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
}

.comment-star-rating-stars .star {
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.comment-star-rating-stars .star:hover {
    transform: scale(1.2);
}

.comment-star-rating-stars .star.filled {
    color: #FF7F60;
}

.comment-star-rating-stars .star.empty {
    color: #A7B3BA;
}

.comment-star-score {
    font-size: 14px;
    font-weight: bold;
    color: #FF7F60;
    min-width: 20px;
}

.comment_rating_display {
    margin-top: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 127, 96, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 127, 96, 0.2);
    border-left: 3px solid #FF7F60;
}

.comment_rating_label {
    font-size: 12px;
    color: #2F2F2F;
    margin-right: 8px;
    font-weight: 500;
}

.comment_rating_stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.comment_rating_stars .star {
    font-size: 24px;
    line-height: 1;
}

.comment_rating_stars .star.filled {
    color: #FF7F60;
}

.comment_rating_stars .star.half {
    color: #FF7F60;
    opacity: 0.6;
}

.comment_rating_stars .star.empty {
    color: #A7B3BA;
}

.rating_value {
    font-size: 14px;
    font-weight: bold;
    color: #FF7F60;
    margin-left: 8px;
}

.rb-mention-dropdown { position:absolute; background:#fff; border:1px solid #ddd; border-radius:8px; box-shadow:0 4px 12px rgba(0,0,0,0.1); max-height:150px; overflow-y:auto; z-index:9999; display:none; min-width:120px; }
.rb-mention-item { padding:6px 12px; cursor:pointer; font-size:13px; }
.rb-mention-item:hover, .rb-mention-item.active { background:#f5f5f5; }

@media (max-width: 768px) {
    .comment-info-line {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .comment_star_rating_wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        white-space: normal;
    }

    .comment_star_rating_wrap .font-B {
        white-space: normal;
    }

    .comment-point-message {
        white-space: normal;
        flex-basis: 100%;
        width: 100%;
        display: block;
        margin-top: 6px;
    }

    .comment-star-rating-stars {
        position: relative;
        padding: 8px 0;
        user-select: none;
        -webkit-user-select: none;
        touch-action: pan-x;
        cursor: grab;
    }

    .comment-star-rating-stars:active {
        cursor: grabbing;
    }

    .comment-star-rating-stars .star {
        font-size: 32px;
        padding: 4px 2px;
        transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
        -webkit-tap-highlight-color: transparent;
        will-change: transform, color;
    }

    .comment-star-rating-stars .star:active {
        transform: scale(0.95);
    }

    .comment-star-rating-stars.dragging .star {
        transition: all 0.1s cubic-bezier(0.4, 0.0, 0.2, 1);
    }

    .comment-star-rating-stars.dragging {
        background: rgba(255, 127, 96, 0.05);
    }

    .comment-star-score {
        font-size: 20px;
        min-width: 32px;
        font-weight: bold;
        color: #FF7F60;
        transition: all 0.15s cubic-bezier(0.4, 0.0, 0.2, 1);
        will-change: transform;
    }

    .comment-star-rating-stars::after {
        content: "좌우로 슬라이드하여 별점 조절";
        position: absolute;
        bottom: -20px;
        left: 0;
        right: 0;
        font-size: 11px;
        color: #7A7A7A;
        text-align: center;
        opacity: 0.7;
    }

    .comment_rating_display {
        padding: 8px 12px;
    }

    .comment_rating_stars .star {
        font-size: 28px;
    }

    .rating_value {
        font-size: 18px;
        margin-left: 6px;
    }

    .comment-star-rating-stars.dragging {
        background: rgba(255, 127, 96, 0.1);
        border-radius: 8px;
        transform: scale(1.02);
        transition: all 0.1s ease;
    }

    @keyframes starPulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }

    @keyframes scoreBounce {
        0% { transform: scale(1); }
        50% { transform: scale(1.2); }
        100% { transform: scale(1); }
    }

    @keyframes starGlow {
        0% { text-shadow: 0 0 5px rgba(255, 127, 96, 0.5); }
        50% { text-shadow: 0 0 15px rgba(255, 127, 96, 0.8); }
        100% { text-shadow: 0 0 5px rgba(255, 127, 96, 0.5); }
    }

    .comment-star-rating-stars .star.pulse {
        animation: starPulse 0.3s ease;
    }

    .comment-star-score.pulse {
        animation: scoreBounce 0.3s ease;
    }

    .comment-star-rating-stars .star.preview-filled {
        animation: starGlow 0.5s ease;
    }
}
