/* ── Referee Rater Widget — styled to match staceywest.net ── */

.rr-widget {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    background: #fff;
    border: 1px solid #ebebeb;
    border-top: 3px solid #e64946;
    padding: 20px 25px;
    margin: 24px 0;
    color: #000;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(50,50,50,.1);
}

/* Header */
.rr-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px dotted #ebebeb;
    padding-bottom: 12px;
}

.rr-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: #e64946;
    padding: 3px 8px;
    white-space: nowrap;
}

.rr-ref-name {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #000;
}

/* Score bar — used by profile shortcode */
.rr-bar-track {
    height: 4px;
    background: #ebebeb;
    overflow: hidden;
}

.rr-bar-fill {
    height: 100%;
    background: #e64946;
    transition: width .6s ease;
}

/* Score buttons */
.rr-score-picker { margin-bottom: 16px; }

.rr-score-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #979797;
    margin-bottom: 8px;
}

.rr-score-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.rr-score-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .1s linear;
    line-height: 1;
}

.rr-score-btn:hover {
    border-color: #e64946;
    color: #e64946;
    background: #fff5f5;
}

.rr-score-btn.selected {
    background: #e64946;
    color: #fff;
    border-color: #e64946;
}

/* Comment toggle */
.rr-comment-wrap { margin-bottom: 14px; }

.rr-comment-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.rr-comment-label {
    font-size: 13px;
    color: #979797;
}

.rr-comment-label em {
    font-style: italic;
    font-size: 12px;
}

/* Toggle switch */
.rr-toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.rr-toggle-switch input { display: none; }

.rr-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ddd;
    border-radius: 11px;
    cursor: pointer;
    transition: background .2s;
}

.rr-toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}

.rr-toggle-switch input:checked + .rr-toggle-slider { background: #e64946; }
.rr-toggle-switch input:checked + .rr-toggle-slider::before { transform: translateX(18px); }

/* Comment fields */
.rr-comment-input {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0,0,0,.1);
    color: #000;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 13px;
    padding: 8px 10px;
    resize: vertical;
    margin-bottom: 10px;
    box-sizing: border-box;
    transition: border-color .25s ease-in-out;
}

.rr-comment-input:focus {
    outline: none;
    border-color: #e64946;
}

/* Voter type */
.rr-voter-type-wrap { margin-bottom: 10px; }

.rr-voter-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #979797;
    margin-bottom: 6px;
}

.rr-voter-options {
    display: flex;
    gap: 14px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.rr-voter-opt {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
}

.rr-voter-opt input[type="radio"] { accent-color: #e64946; }

.rr-voter-name-input {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0,0,0,.1);
    color: #000;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 13px;
    padding: 8px 10px;
    box-sizing: border-box;
    transition: border-color .25s ease-in-out;
}

.rr-voter-name-input:focus { outline: none; border-color: #e64946; }

/* Submit button */
.rr-submit-btn {
    width: 100%;
    padding: 10px 15px;
    background: #e64946;
    color: #fff;
    border: none;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .1s linear;
}

.rr-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.rr-submit-btn:not(:disabled):hover {
    background: #2a2a2a;
}

/* Feedback */
.rr-feedback {
    margin-top: 8px;
    font-size: 13px;
    min-height: 18px;
    text-align: center;
}

.rr-feedback.success { color: #22c55e; }
.rr-feedback.error   { color: #e64946; }

/* Voted message */
.rr-voted-msg {
    text-align: center;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #ebebeb;
    color: #22c55e;
    font-weight: 700;
    font-size: 14px;
}

.rr-comment-item {
    padding: 10px 12px;
    background: #f9f9f9;
    border: 1px solid #ebebeb;
    border-left: 3px solid #e64946;
    margin-bottom: 8px;
}

.rr-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.rr-comment-score {
    font-size: 16px;
    font-weight: 700;
    color: #e64946;
}

.rr-comment-author {
    font-size: 12px;
    color: #979797;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rr-comment-text {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Voter badges */
.rr-badge-patreon {
    background: #f96854;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rr-badge-discord {
    background: #5865f2;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Error */
.rr-error {
    color: #e64946;
    font-size: 13px;
    padding: 10px 12px;
    border: 1px solid #e64946;
    background: #fff5f5;
}


/* ── Referee Profile (read-only) ── */
.rr-profile {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    margin: 24px 0;
    border-top: 2px solid #e64946;
    padding-top: 14px;
}

.rr-profile-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #e64946;
    margin-bottom: 2px;
}

.rr-profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0 0 14px;
    padding: 0;
    line-height: 1.2;
    border: none;
}

.rr-profile-no-data {
    color: #979797;
    font-size: 13px;
    margin: 0;
}

/* Hero score + bar */
.rr-profile-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px dotted #ebebeb;
    border-bottom: 1px dotted #ebebeb;
    margin-bottom: 16px;
}

.rr-profile-score-wrap {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-shrink: 0;
}

.rr-profile-score-big {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.rr-profile-score-denom {
    font-size: 16px;
    color: #979797;
    font-weight: 600;
}

.rr-profile-meta-wrap {
    flex: 1;
    min-width: 0;
}

.rr-profile-bar-track {
    height: 4px;
    background: #ebebeb;
    margin-bottom: 6px;
    overflow: hidden;
}

.rr-profile-bar-fill {
    height: 100%;
    transition: width .6s ease;
}

.rr-profile-meta-text {
    font-size: 12px;
    color: #979797;
}

/* Section title */
.rr-profile-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #979797;
    margin: 0 0 8px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #ebebeb;
}

/* Game breakdown */
.rr-profile-games {
    margin-bottom: 18px;
}

.rr-profile-game-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dotted #ebebeb;
    font-size: 13px;
}

.rr-profile-game-title {
    flex: 1;
    color: #000;
}

.rr-profile-game-score {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.rr-profile-game-votes {
    color: #979797;
    font-size: 12px;
    white-space: nowrap;
    min-width: 45px;
    text-align: right;
}

/* Comments */
.rr-profile-comments {
    margin-top: 4px;
}

.rr-profile-comment {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dotted #ebebeb;
    align-items: flex-start;
}

.rr-profile-comment-score {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    padding-top: 2px;
    min-width: 38px;
}

.rr-profile-comment-body {
    flex: 1;
    min-width: 0;
}

.rr-profile-comment-text {
    margin: 0 0 3px;
    font-size: 13px;
    color: #333;
    font-style: italic;
    line-height: 1.5;
}

.rr-profile-comment-attr {
    margin: 0;
    font-size: 11px;
    color: #979797;
}
