/**
 * Review Solicitation Styles
 * Sticky bottom nudge bar + inline quick-rate widget
 * Design language: matches tyre-summary-panel, tyre-detail-tabs, score-modal
 */

/* ==========================================================================
   Shared: Interactive Stars
   ========================================================================== */

.review-stars {
    display: inline-flex;
    gap: 4px;
    direction: rtl;
}

.review-stars__star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    line-height: 1;
}

.review-stars__star:hover,
.review-stars__star:hover ~ .review-stars__star {
    color: #f59e0b;
}

.review-stars__star:hover {
    transform: scale(1.15);
}

.review-stars__star--filled {
    color: #f59e0b;
}

.review-stars__label {
    direction: ltr;
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #f59e0b;
    min-height: 16px;
    text-align: center;
    transition: opacity 0.15s ease;
}

/* ==========================================================================
   Inline Quick-Rate Widget — compact single-row card
   ========================================================================== */

.quick-rate {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    margin-bottom: 16px;
    border-left: 4px solid var(--tyre-reviews-blue, #0db1e7);
}

/* Main row: text left, stars right */
.quick-rate__main {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
}

.quick-rate__prompt {
    flex: 1;
    min-width: 0;
}

.quick-rate__question {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.quick-rate__subtitle {
    font-size: 0.78rem;
    color: #64748b;
    margin: 2px 0 0 0;
}

/* Stars */
.quick-rate__stars-wrap {
    flex-shrink: 0;
    text-align: center;
}

.quick-rate__stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    direction: rtl;
}

.quick-rate__stars .review-stars__star {
    font-size: 26px;
    width: 38px;
    height: 38px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: color 0.15s ease, transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.quick-rate__stars .review-stars__star:hover,
.quick-rate__stars .review-stars__star:hover ~ .review-stars__star {
    color: #f59e0b;
    border-color: #fbbf24;
    background: #fffbeb;
}

.quick-rate__stars .review-stars__star:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.quick-rate__stars .review-stars__star--filled {
    color: #f59e0b;
    border-color: #fbbf24;
    background: #fffbeb;
}

/* Footer: social proof pills in a slim tinted strip */
.quick-rate__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.quick-rate__proof-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
}

.quick-rate__proof-item i {
    font-size: 0.68rem;
}

.quick-rate__proof-item:first-child {
    color: #166534;
}

.quick-rate__proof-item:first-child i {
    color: #16a34a;
}

.quick-rate__badge-teaser {
    color: #1e40af;
}

.quick-rate__badge-teaser i {
    color: #2563eb;
}

/* Separator dots between proof items */
.quick-rate__proof-item + .quick-rate__proof-item::before {
    content: "\00b7";
    margin-right: 4px;
    color: #cbd5e1;
    font-weight: 700;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
    .quick-rate__main {
        flex-direction: column;
        gap: 10px;
        padding: 12px 14px;
        text-align: center;
    }

    .quick-rate__stars .review-stars__star {
        font-size: 24px;
        width: 36px;
        height: 36px;
    }

    .quick-rate__footer {
        padding: 6px 14px;
        gap: 6px;
    }

    .quick-rate__proof-item {
        font-size: 0.68rem;
    }
}

/* ==========================================================================
   Sticky Bottom Nudge Bar
   ========================================================================== */

.review-nudge {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #1e293b;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.3);
    border-top: 3px solid var(--tyre-reviews-blue, #0db1e7);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding: 10px 16px;
}

.review-nudge--visible {
    transform: translateY(0);
}

.review-nudge__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.review-nudge__text {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
}

.review-nudge__stars {
    direction: rtl;
}

.review-nudge__stars .review-stars__star {
    font-size: 22px;
    width: 30px;
    height: 30px;
    color: #475569;
    transition: color 0.15s ease, transform 0.15s ease;
}

.review-nudge__stars .review-stars__star:hover,
.review-nudge__stars .review-stars__star:hover ~ .review-stars__star {
    color: #f59e0b;
}

.review-nudge__stars .review-stars__star--filled {
    color: #f59e0b;
}

.review-nudge__social {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-nudge__social i {
    margin-right: 3px;
}

.review-nudge__badge-teaser {
    color: #4ade80;
}

.review-nudge__badge-teaser i {
    color: #4ade80;
}

.review-nudge__dismiss {
    background: #334155;
    border: 1px solid #475569;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-left: auto;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.review-nudge__dismiss:hover {
    background: #475569;
    color: #ffffff;
}

/* Mobile */
@media (max-width: 768px) {
    .review-nudge {
        padding: 8px 12px;
    }

    .review-nudge__inner {
        gap: 10px;
    }

    .review-nudge__text {
        font-size: 12px;
    }

    .review-nudge__stars .review-stars__star {
        font-size: 18px;
        width: 26px;
        height: 26px;
    }

    .review-nudge__social {
        display: none;
    }
}
