/**
 * JobVisitors — Reviews CSS
 * Star rating UI, review form modal, review cards, mini ratings.
 *
 * @package JobVisitors
 * @since 1.0.0
 */

/* ═══ Review Form Modal ═══ */
.jv-review-form-wrap {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.jv-review-form {
    background: var(--card);
    border-radius: 24px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.jv-review-form__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.jv-review-form__header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
}
.jv-review-form__close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s;
}
.jv-review-form__close:hover {
    color: var(--text);
    background: var(--bg);
}
.jv-review-form__group {
    margin-bottom: 18px;
}
.jv-review-form__group label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sec);
    margin-bottom: 8px;
}
.jv-review-form__group label .required {
    color: #EF4444;
}
.jv-review-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.jv-review-form__note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ═══ Star Rating Input ═══ */
.jv-star-rating {
    display: flex;
    gap: 4px;
}
.jv-star-input {
    font-size: 28px;
    color: var(--border);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    line-height: 1;
}
.jv-star-input.hover,
.jv-star-input.selected {
    color: #F59E0B;
    transform: scale(1.1);
}
.jv-star-rating--sm .jv-star-input {
    font-size: 20px;
}

/* Detailed Ratings Grid */
.jv-review-form__ratings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg);
    border-radius: 14px;
}
.jv-review-form__mini-rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.jv-review-form__mini-rating label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
}

/* ═══ Messages ═══ */
.jv-review-form__message {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 16px;
}
.jv-review-form__message--success {
    background: rgba(16,185,129,0.1);
    color: #10B981;
    border: 1px solid rgba(16,185,129,0.2);
}
.jv-review-form__message--error {
    background: rgba(239,68,68,0.1);
    color: #EF4444;
    border: 1px solid rgba(239,68,68,0.2);
}
.jv-review-form__message--info {
    background: rgba(59,130,246,0.1);
    color: #3B82F6;
    border: 1px solid rgba(59,130,246,0.2);
}

/* ═══ Review Card Additions ═══ */
.jv-review-card__role {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.jv-review-card__ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.jv-review-mini-rating {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg);
    padding: 3px 10px;
    border-radius: 100px;
}

/* ═══ Responsive ═══ */
@media (max-width: 600px) {
    .jv-review-form {
        padding: 24px 18px;
    }
    .jv-review-form__row {
        grid-template-columns: 1fr;
    }
    .jv-review-form__ratings-grid {
        grid-template-columns: 1fr;
    }
}
