/**
 * starRatingPopup.css - Star Rating Popup Styles
 *
 * Works with the TitleRating component for all scoring types:
 *   - simple: thumbs UI
 *   - standard: 5-star UI
 *   - advanced: 10-star UI
 *
 * LIKE ROW (POPUP ONLY):
 *   The like row styles are specific to the popup mode.
 *   Inline rating components handle likes differently with their own styles.
 */

.star-rating-popup {
    position: fixed;
    z-index: 1080; /* Above Bootstrap modals (1055) for rating interactions */
    display: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    padding: 16px 20px;
    min-width: 280px;
}

.star-rating-popup.show {
    display: block;
    animation: starPopupFadeIn 0.15s ease;
}

@keyframes starPopupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.star-rating-popup-content {
    text-align: center;
}

.star-rating-popup .star-rating-component {
    padding: 4px 0;
}

/* Override title-rating styles when inside popup - BIGGER */
.star-rating-popup .title-rating {
    width: 100%;
}

.star-rating-popup .title-rating-stars {
    font-size: 1.5rem;
    gap: 4px;
}

.star-rating-popup .title-rating-star {
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.star-rating-popup .title-rating-star:hover {
    transform: scale(1.15);
}

.star-rating-popup .title-rating-star.star-small {
    font-size: 1.25rem;
}

.star-rating-popup .title-rating-label {
    font-size: 0.95rem;
    margin-top: 8px;
}

.star-rating-popup .title-rating-thumbs {
    gap: 12px;
}

.star-rating-popup .title-rating-thumb {
    padding: 12px 16px;
    min-width: 70px;
}

.star-rating-popup .thumb-emoji {
    font-size: 1.5rem;
}

.star-rating-popup .thumb-label {
    font-size: 0.75rem;
}

/* ================================================================
   LIKE ROW STYLES - POPUP ONLY
   These styles are specifically for the popup's like row.
   Inline rating components should use their own like styles.
   ================================================================ */

.star-rating-like-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.star-rating-like-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.star-rating-like-row .like-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

.star-rating-like-row .like-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--mv-border-color);
    background: #fff;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.15s ease;
}

.star-rating-like-row .like-btn i {
    font-size: 1.25rem;
}

.star-rating-like-row .like-btn:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

/* Dislike button active state */
.star-rating-like-row .like-btn-dislike.active {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.star-rating-like-row .like-btn-dislike.active:hover {
    background: #bb2d3b;
    border-color: #bb2d3b;
}

/* Like button active state */
.star-rating-like-row .like-btn-like.active {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.star-rating-like-row .like-btn-like.active:hover {
    background: #157347;
    border-color: #157347;
}

/* ================================================================
   INSTAGRAM ROW - Bottom-right of popup
   ================================================================ */

.star-rating-instagram-row {
    margin-top: 8px;
    text-align: right;
}

.star-rating-instagram-btn {
    font-size: 0.85rem;
    padding: 2px 8px;
}

/* ================================================================
   MOBILE ADJUSTMENTS - BIGGER POPUP ON MOBILE
   ================================================================ */

@media (max-width: 576px) {
    .star-rating-popup {
        min-width: 300px;
        padding: 20px 24px;
        left: 50% !important;
        transform: translateX(-50%);
        max-width: calc(100vw - 32px);
    }

    .star-rating-popup .title-rating-stars {
        font-size: 1.75rem;
        gap: 6px;
    }

    .star-rating-popup .title-rating-star {
        font-size: 1.75rem;
    }

    .star-rating-popup .title-rating-star.star-small {
        font-size: 1.4rem;
    }

    .star-rating-popup .title-rating-label {
        font-size: 1rem;
        margin-top: 10px;
    }

    .star-rating-popup .title-rating-thumbs {
        gap: 14px;
    }

    .star-rating-popup .title-rating-thumb {
        padding: 14px 18px;
        min-width: 75px;
    }

    .star-rating-popup .thumb-emoji {
        font-size: 1.75rem;
    }

    .star-rating-popup .thumb-label {
        font-size: 0.8rem;
    }

    /* Like row on mobile - BIGGER */
    .star-rating-like-row {
        margin-top: 16px;
        padding-top: 16px;
    }

    .star-rating-like-buttons {
        gap: 20px;
    }

    .star-rating-like-row .like-label {
        font-size: 1rem;
    }

    .star-rating-like-row .like-btn {
        width: 52px;
        height: 52px;
    }

    .star-rating-like-row .like-btn i {
        font-size: 1.5rem;
    }
}

/* ========================================
   DARK MODE OVERRIDES
   ======================================== */

[data-bs-theme="dark"] .star-rating-popup {
    background: var(--mv-bg-dropdown);
    box-shadow: var(--mv-shadow-lg);
}
[data-bs-theme="dark"] .star-rating-like-row {
    border-top-color: var(--mv-border-color);
}
[data-bs-theme="dark"] .star-rating-like-row .like-label {
    color: var(--mv-text-secondary);
}
[data-bs-theme="dark"] .star-rating-like-row .like-btn {
    border-color: var(--mv-border-color);
    background: var(--mv-bg-card);
    color: var(--mv-text-muted);
}
[data-bs-theme="dark"] .star-rating-like-row .like-btn:hover {
    border-color: #6c757d;
    background: var(--mv-bg-surface);
}
