/* ==============================
   Profeat Reviews — Dark Theme
   ============================== */

/* ---------- Stars ---------- */

.profeat-stars {
    display: inline-flex;
    gap: 2px;
    vertical-align: middle;
}

.profeat-star {
    font-size: 20px;
    line-height: 1;
}

.profeat-stars-sm .profeat-star {
    font-size: 15px;
}

.profeat-star-filled {
    color: #f5a623;
}

.profeat-star-empty {
    color: #444;
}

/* ---------- Tab Summary ---------- */

.profeat-reviews-tab {
    max-width: 700px;
}

.profeat-reviews-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 12px;
}

.profeat-reviews-avg {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profeat-reviews-avg-number {
    font-size: 28px;
    font-weight: 700;
    color: #f5a623;
}

.profeat-reviews-count {
    color: #999;
    font-size: 14px;
}

/* ---------- Shared Rating Summary ---------- */

.profeat-rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.profeat-rating-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.profeat-rating-summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.profeat-rating-summary-count {
    font-size: 13px;
    font-weight: 500;
    color: #9f9aaf;
    white-space: nowrap;
}

.profeat-profile-rating-summary {
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(112, 49, 237, 0.22);
    border-radius: 999px;
    background: rgba(112, 49, 237, 0.08);
}

.profeat-profile-rating-summary:hover {
    border-color: rgba(112, 49, 237, 0.38);
    background: rgba(112, 49, 237, 0.12);
}

@media (min-width: 782px) {
    #item-header #item-header-content .bb-user-content-wrap {
        display: grid;
        grid-template-columns: max-content max-content;
        column-gap: 15px;
        row-gap: 12px;
        align-items: center;
        justify-content: start;
        width: fit-content;
        max-width: 100%;
    }

    #item-header #item-header-content .bb-user-content-wrap > .member-title-wrap {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    #item-header #item-header-content .bb-user-content-wrap > #profeat-bio,
    #item-header #item-header-content .bb-user-content-wrap > .item-meta {
        grid-column: 1 / -1;
    }

    #item-header #item-header-content .bb-user-content-wrap > .profeat-profile-rating-summary {
        grid-column: 2;
        grid-row: 1;
        margin-top: 18px;
        align-self: center;
        justify-self: start;
    }
}

.profeat-reviews-empty-text {
    color: #888;
    font-size: 14px;
}

/* ---------- Section Titles ---------- */

.profeat-reviews-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #ccc;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Pending Reviews ---------- */

.profeat-reviews-pending {
    margin-bottom: 28px;
    padding: 16px 20px;
    background: #1a1a2e;
    border: 1px solid #7031ed33;
    border-radius: 12px;
}

.profeat-review-pending-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a3e;
}

.profeat-review-pending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profeat-review-pending-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.profeat-review-pending-avatar img {
    border-radius: 50%;
    display: block;
}

.profeat-review-pending-name {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 14px;
}

.profeat-review-pending-title {
    color: #888;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Review Item ---------- */

.profeat-review-item {
    padding: 16px 20px;
    margin-bottom: 12px;
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 12px;
    transition: border-color 0.2s;
}

.profeat-review-item:hover {
    border-color: #3a3a4e;
}

.profeat-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.profeat-review-avatar img {
    border-radius: 50%;
    display: block;
}

.profeat-review-meta {
    flex: 1;
    min-width: 0;
}

.profeat-review-author {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 14px;
    text-decoration: none;
}

.profeat-review-author:hover {
    color: #7031ed;
}

.profeat-review-date {
    font-size: 12px;
    color: #777;
}

.profeat-review-rating {
    flex-shrink: 0;
}

/* Post-feat badge */
.profeat-review-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #7031ed;
    background: rgba(112, 49, 237, 0.12);
    border: 1px solid rgba(112, 49, 237, 0.25);
    border-radius: 20px;
    margin-bottom: 6px;
}

.profeat-review-comment {
    color: #bbb;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 6px;
}

/* ---------- Review Modal ---------- */

#profeat-review-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
}

#profeat-review-modal .profeat-deal-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

#profeat-review-modal .profeat-deal-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 480px;
    width: 90%;
    background: #111111;
    border-radius: 12px;
    padding: 20px 22px 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#profeat-review-modal .profeat-deal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

#profeat-review-modal .profeat-deal-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
}

#profeat-review-modal .profeat-deal-modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#profeat-review-modal .profeat-deal-modal-close:hover {
    color: #fff;
}

#profeat-review-modal .profeat-deal-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

#profeat-review-modal .profeat-deal-input {
    width: 100%;
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 8px;
    color: #e0e0e0;
    padding: 10px 12px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

#profeat-review-modal .profeat-deal-input:focus {
    border-color: #7031ed;
    outline: none;
}

/* ---------- Star Input (Modal) ---------- */

.profeat-review-star-input {
    display: inline-flex;
    gap: 6px;
    cursor: pointer;
}

.profeat-star-select {
    font-size: 28px;
    color: #444;
    transition: color 0.15s, transform 0.15s;
    user-select: none;
}

.profeat-star-select:hover,
.profeat-star-select.hovered {
    color: #f5a623;
    transform: scale(1.15);
}

.profeat-star-select.selected {
    color: #f5a623;
}

/* ---------- Review Form ---------- */

.profeat-review-form-group {
    margin-bottom: 16px;
}

.profeat-review-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 6px;
}

.profeat-review-feedback {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

.profeat-review-feedback.success {
    background: rgba(76, 175, 80, 0.12);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.profeat-review-feedback.error {
    background: rgba(244, 67, 54, 0.12);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* ---------- Deal Card Review Button ---------- */

.profeat-deal-review-action {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #2a2a3e;
}

.profeat-deal-review-done {
    font-size: 13px;
    color: #4caf50;
    font-weight: 500;
}

/* ---------- Small button variant ---------- */

.profeat-btn-sm {
    padding: 5px 14px !important;
    font-size: 12px !important;
}
