/* NFL PFR shortcode tables – matches PFR screenshot (light gray headers, clean borders) */

.nfl-pfr-shortcode {
    margin: 1.5em 0;
}

.nfl-pfr-title {
    font-size: 1.25rem;
    margin-bottom: 0.75em;
    font-weight: 600;
}

.nfl-pfr-table-wrap {
    overflow-x: auto;
    margin-bottom: 1.5em;
    border: 1px solid #c4c4c4;
    background: #fff;
}

.nfl-pfr-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
}

.nfl-pfr-stats-table caption {
    text-align: left;
    font-weight: 700;
    padding: 0.5em 0.6em 0.4em;
    caption-side: top;
    background: #f0f0f0;
    border-bottom: 1px solid #c4c4c4;
    font-size: 0.9375rem;
}

/* PFR-style header: light gray/silver, dark text (per screenshot) */
.nfl-pfr-stats-table thead th {
    background: #e0e0e0;
    color: #000;
    padding: 0.45em 0.6em;
    text-align: right;
    white-space: nowrap;
    border: 1px solid #c4c4c4;
    border-bottom: 2px solid #b0b0b0;
    font-weight: 700;
}

.nfl-pfr-stats-table thead th:first-child {
    text-align: left;
}

/* Sortable header – clickable */
.nfl-pfr-stats-table thead th.nfl-pfr-sortable {
    cursor: pointer;
    user-select: none;
    padding-right: 1.25em;
    position: relative;
}

.nfl-pfr-stats-table thead th.nfl-pfr-sortable:hover {
    background: #d0d0d0;
}

.nfl-pfr-stats-table thead th.nfl-pfr-sortable::after {
    content: "⇅";
    opacity: 0.6;
    font-size: 0.75em;
    position: absolute;
    right: 0.4em;
    top: 50%;
    transform: translateY(-50%);
}

.nfl-pfr-stats-table thead th.nfl-pfr-sortable[data-sort="asc"]::after {
    content: "↑";
    opacity: 1;
}

.nfl-pfr-stats-table thead th.nfl-pfr-sortable[data-sort="desc"]::after {
    content: "↓";
    opacity: 1;
}

/* Body – white and very light gray alternating, subtle horizontal lines */
.nfl-pfr-stats-table tbody tr:nth-child(even) {
    background: #f5f5f5;
}

.nfl-pfr-stats-table tbody tr:nth-child(odd) {
    background: #fff;
}

.nfl-pfr-stats-table tbody tr:hover {
    background: #ebebeb;
}

.nfl-pfr-stats-table tbody td {
    padding: 0.35em 0.6em;
    text-align: right;
    border-bottom: 1px solid #d8d8d8;
    border-right: 1px solid #e8e8e8;
    font-weight: normal;
}

.nfl-pfr-stats-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    border-right: 1px solid #e0e0e0;
}

.nfl-pfr-stats-table tbody td:last-child {
    border-right: none;
}

.nfl-pfr-no-data {
    color: #666;
    font-style: italic;
}

.nfl-pfr-team-tables .nfl-pfr-table-wrap {
    margin-bottom: 1em;
}

.nfl-pfr-subtitle {
    margin: 1em 0 0.5em;
    font-size: 1.1rem;
}

/* Highlighted team row (e.g. in team-centric shortcodes) */
.nfl-pfr-team-highlight tbody tr.nfl-pfr-highlight-row {
    background: #d4e8ff;
    font-weight: 500;
}

/* Combined layout: section label row (e.g. "Passing", "Rushing" above stat columns) */
.nfl-pfr-stats-table thead tr.nfl-pfr-combined-section-row th.nfl-pfr-section-header {
    background: #c8c8c8;
    color: #000;
    font-weight: 700;
    text-align: center;
    border: 1px solid #b0b0b0;
    padding: 0.35em 0.5em;
}
