/* ═══════════════════════════════════════════════════════════
   PGH GAME REVIEWS
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

.pghr-wrap {
    --ra: #c0392b;
    --border: #e5e7eb;
    --bg: #f9fafb;
    --text: #1a1a1a;
    --muted: #6b7280;
    --gold: #f59e0b;
    --green: #16a34a;
    --radius: 10px;

    font-family: 'DM Sans', sans-serif;
    width: 100%;
    color: var(--text);
}

/* ── HEADER ────────────────────────────────────────────── */
.pghr-header {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #1a1a1a;
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pghr-header-left { display: flex; align-items: center; gap: 16px; }

.pghr-avg-score {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.pghr-stars { font-size: 20px; color: var(--gold); letter-spacing: 2px; }
.pghr-review-count { font-size: 13px; color: #888; margin-top: 4px; }

/* Rating breakdown bars */
.pghr-breakdown { flex: 1; min-width: 200px; }
.pghr-breakdown-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 12px;
    color: #aaa;
}
.pghr-breakdown-bar-bg {
    flex: 1;
    background: rgba(255,255,255,.1);
    border-radius: 20px;
    height: 6px;
    overflow: hidden;
}
.pghr-breakdown-bar {
    background: var(--gold);
    height: 100%;
    border-radius: 20px;
    transition: width .4s ease;
}
.pghr-breakdown-count { min-width: 20px; text-align: right; }

/* ── SECTION TITLE ─────────────────────────────────────── */
.pghr-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ra);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── WRITE FORM ────────────────────────────────────────── */
.pghr-write-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.pghr-field { margin-bottom: 14px; }

.pghr-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 5px;
}

.pghr-field label small { font-weight: 400; text-transform: none; letter-spacing: 0; }

.pghr-field input[type=text],
.pghr-field textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
    resize: vertical;
}

.pghr-field input:focus, .pghr-field textarea:focus { border-color: var(--ra); }
.pghr-field input[readonly] { background: #f9fafb; cursor: default; }

/* Star picker */
.pghr-star-picker { display: flex; gap: 6px; margin-bottom: 4px; }

.pghr-star-pick {
    font-size: 28px;
    cursor: pointer;
    color: #d1d5db;
    transition: color .1s, transform .1s;
    line-height: 1;
}

.pghr-star-pick:hover,
.pghr-star-pick.active { color: var(--gold); transform: scale(1.15); }

/* ── BUTTON ────────────────────────────────────────────── */
.pghr-btn {
    display: inline-block;
    padding: 9px 20px;
    background: var(--ra);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background .15s;
    text-decoration: none;
}

.pghr-btn:hover { background: #a93226; }
.pghr-btn:disabled { opacity: .5; cursor: not-allowed; }

.pghr-msg {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    min-height: 18px;
}
.pghr-msg.ok  { color: var(--green); }
.pghr-msg.err { color: var(--ra); }

.pghr-login-prompt { text-align: center; padding: 8px 0; }

/* ── REVIEWS LIST ──────────────────────────────────────── */
.pghr-reviews-list { display: flex; flex-direction: column; gap: 12px; }

.pghr-loading { text-align: center; padding: 30px; color: var(--muted); font-size: 13px; }

/* ── REVIEW CARD ───────────────────────────────────────── */
.pghr-review-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: box-shadow .15s;
}

.pghr-review-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }

.pghr-review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pghr-review-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.pghr-review-meta { flex: 1; min-width: 0; }
.pghr-review-name { font-size: 13px; font-weight: 700; color: var(--text); }
.pghr-review-name a { color: var(--ra); text-decoration: none; }
.pghr-review-name a:hover { text-decoration: underline; }
.pghr-review-time { font-size: 11px; color: var(--muted); }

.pghr-review-stars {
    font-size: 16px;
    color: var(--gold);
    letter-spacing: 1px;
    margin-left: auto;
    flex-shrink: 0;
}

.pghr-review-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 10px;
}

.pghr-review-foot {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pghr-helpful-btn {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--muted);
    transition: all .15s;
    font-family: 'DM Sans', sans-serif;
}

.pghr-helpful-btn:hover { border-color: var(--ra); color: var(--ra); }
.pghr-helpful-btn.pghr-helpful-active { background: #fee2e2; border-color: var(--ra); color: var(--ra); }

.pghr-score-badge { font-size: 11px; color: var(--muted); margin-left: auto; }

/* ── NO REVIEWS ────────────────────────────────────────── */
.pghr-empty {
    text-align: center;
    padding: 30px;
    color: var(--muted);
    font-size: 14px;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 600px) {
    .pghr-header     { flex-direction: column; align-items: flex-start; padding: 16px; }
    .pghr-avg-score  { font-size: 36px; }
    .pghr-breakdown  { width: 100%; }
}
