/*
 * Ref Watch — Stylesheet
 * File: refwatch.css
 * Enqueued by terracepulse-refwatch.php
 * Light theme to match Final Whistle WordPress frontend.
 */

/* -----------------------------------------------------------------------
   Ref Watch Season Ratings Table  ([refwatch_table] shortcode)
----------------------------------------------------------------------- */

.tp-refwatch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    margin: 24px 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.tp-refwatch-table thead {
    background: #0d1528;
    color: #ffffff;
}

.tp-refwatch-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f5c842;
    white-space: nowrap;
}

.tp-refwatch-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.tp-refwatch-table tbody tr:last-child {
    border-bottom: none;
}

.tp-refwatch-table tbody tr:hover {
    background: #f9f9f9;
}

.tp-refwatch-table tbody td {
    padding: 11px 16px;
    color: #222222;
    vertical-align: middle;
    white-space: nowrap;
}

/* Rank column */
.tp-refwatch-table tbody td:first-child {
    font-weight: 700;
    color: #888888;
    width: 36px;
}

/* Referee name column */
.tp-refwatch-table tbody td:nth-child(2) {
    font-weight: 600;
    color: #0d1528;
}

/* Rating column — highlight it */
.tp-refwatch-table tbody td:nth-child(4) strong {
    color: #e63946;
    font-size: 1.05em;
}

/* No data message */
.tp-refwatch-table-wrap p {
    color: #888;
    font-style: italic;
}

/* -----------------------------------------------------------------------
   Referee Rating Widget  ([referee_rating] shortcode)
----------------------------------------------------------------------- */

.tp-referee-rating {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #e63946;
    border-radius: 6px;
    padding: 20px 24px;
    margin: 32px 0;
    max-width: 540px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.tp-referee-rating h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1em;
    font-weight: 700;
    color: #0d1528;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-referee-rating h4::before {
    content: '🟨';
    font-size: 1em;
}

/* TBC state */
.tp-tbc-notice {
    color: #888888;
    font-size: 0.88em;
    font-style: italic;
    margin: 0;
}

/* Blocked / already voted messages */
.tp-blocked,
.tp-voted {
    color: #555555;
    font-size: 0.9em;
    margin: 0 0 6px;
}

.tp-result {
    font-size: 0.9em;
    color: #444444;
    margin: 6px 0 0;
}

.tp-result strong {
    color: #e63946;
}

/* Prompt text */
.tp-referee-rating > p:not(.tp-blocked):not(.tp-voted):not(.tp-result):not(.tp-tbc-notice) {
    font-size: 0.88em;
    color: #555555;
    margin: 0 0 10px;
}

/* Slider */
.tp-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    cursor: pointer;
    margin: 4px 0 8px;
}

.tp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e63946;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.1s;
}

.tp-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.tp-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e63946;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Slider value display */
#tp-slider-val-display {
    font-weight: 700;
    font-size: 1.1em;
    color: #0d1528;
}

/* Submit button */
.tp-submit-btn {
    margin-top: 12px;
    background: #e63946;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 9px 22px;
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.15s, transform 0.1s;
}

.tp-submit-btn:hover {
    background: #c0303b;
    transform: translateY(-1px);
}

/* Thank you / post-vote message */
.tp-referee-rating p.tp-thankyou {
    color: #2e7d32;
    font-weight: 600;
    font-size: 0.9em;
    margin: 0 0 6px;
}

/* -----------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------- */
@media (max-width: 600px) {
    .tp-refwatch-table thead th,
    .tp-refwatch-table tbody td {
        padding: 9px 10px;
        font-size: 0.85em;
    }

    .tp-referee-rating {
        padding: 16px;
    }
}
