/* Trident Poker Series - Frontend Styles */

.tps-leaderboard {
    margin: 20px 0;
    max-width: 100%;
}

.tps-season-title {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Season Selector */
.tps-season-selector {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tps-season-selector label {
    margin-right: 10px;
    font-weight: 600;
    color: #333;
}

.tps-season-form {
    display: inline-block;
}

.tps-season-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.tps-points-prizes-display {
    background: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tps-points-prizes-display h3 {
    margin-top: 0;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.tps-points-prizes-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.tps-points-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tps-point-item {
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-weight: 600;
    flex: 0 1 calc(25% - 9px);
    text-align: center;
    box-sizing: border-box;
    color: #666;
}

.tps-table-container {
    margin: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 18px;
}

.tps-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    table-layout: auto;
}

.tps-leaderboard-table thead {
    background: #333;
    color: #fff;
}

.tps-leaderboard-table th,
.tps-leaderboard-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

/* Player name column stays left-aligned */
.tps-leaderboard-table th:nth-child(2),
.tps-leaderboard-table td:nth-child(2) {
    text-align: left;
}

.tps-leaderboard-table td:nth-child(2) {
     text-align: left;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

.tps-leaderboard-table td:nth-child(2) strong {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* Prize money column - header and cells right-aligned */
.tps-leaderboard-table th:nth-child(8),
.tps-leaderboard-table .tps-prize-money-cell {
    text-align: right;
    cursor: help;
}

/* Rank column - just big enough */
.tps-leaderboard-table th:nth-child(1),
.tps-leaderboard-table td:nth-child(1) {
    width: 5%;
    min-width: 60px;
}

/* Player name column */
.tps-leaderboard-table th:nth-child(2),
.tps-leaderboard-table td:nth-child(2) {
    width: 12%;
    min-width: 74px;
}

/* Paid column - just big enough */
.tps-leaderboard-table th:nth-child(3),
.tps-leaderboard-table td:nth-child(3) {
    width: 5%;
    min-width: 50px;
    text-align: center;
}

.tps-leaderboard-table.has-projections th.tps-data-column,
.tps-leaderboard-table.has-projections td.tps-data-column {
    width: 8.4%;
    min-width: 60px;
}

.tps-leaderboard-table.no-projections th.tps-data-column,
.tps-leaderboard-table.no-projections td.tps-data-column {
    width: 14.8%;
    min-width: 100px;
}

.tps-leaderboard-table thead th {
    font-weight: 600;
}

.tps-leaderboard-table tbody tr:hover {
    background: #f5f5f5;
}

.tps-winner {
    background: #fff9e6 !important;
    font-weight: 600;
}

.tps-winner td:first-child {
    color: #d4af37;
}

.tps-finish {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 12px;
    cursor: help;
    transition: all 0.2s;
    min-width: 45px;
    text-align: center;
}

/* Highlight finish position on hover */
.tps-finish:hover {
    background: #333 !important;
    color: #fff;
    transform: scale(1.1);
}

/* Highlight corresponding points in point system when hovering finish positions */
.tps-highlight-points {
    background: #333 !important;
    color: #fff !important;
    font-weight: 700;
}

.tps-finish-1 {
    background: #d4af37;
    color: #000;
}

.tps-finish-2 {
    background: #c0c0c0;
    color: #000;
}

.tps-finish-3 {
    background: #cd7f32;
    color: #fff;
}

.tps-finish-4,
.tps-finish-5,
.tps-finish-6,
.tps-finish-7,
.tps-finish-8 {
    background: #e8e8e8;
    color: #666;
}

.tps-finish-ns {
    background: #4a4a4a;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tps-table-container {
        margin: 0;
    }
    
    .tps-leaderboard-table {
        font-size: 14px;
        min-width: 600px;
    }
    
    .tps-leaderboard-table th,
    .tps-leaderboard-table td {
        padding: 8px 6px;
    }
    
    
    /* Make finish badges narrower on mobile */
    .tps-finish {
        padding: 4px 4px;
        min-width: 30px;
    }
}

.tps-view-simple .tps-leaderboard-table th,
.tps-view-simple .tps-leaderboard-table td {
    text-align: center;
}

/* Schedule Display */
.tps-schedule-display {
    background: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tps-schedule-display h3 {
    margin-top: 0;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.tps-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.tps-schedule-item {
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.tps-schedule-item.scheduled {
    border-color: #333;
    background: linear-gradient(135deg, #ececec 0%, #f9f9f9 100%);
}

.tps-schedule-item.upcoming {
    border-color: #333;
    background: linear-gradient(135deg, #ececec 0%, #f9f9f9 100%);
}

.tps-schedule-item.completed {
    border-color: #46b450;
    background: linear-gradient(135deg, #e8f8e8 0%, #f9f9f9 100%);
}

.tps-schedule-item.in-progress {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fff3e0 0%, #f9f9f9 100%);
}

.tps-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tps-schedule-header h4 {
    margin: 0;
    font-size: 18px;
    color: #23282d;
}

.tps-status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tps-status-badge.scheduled {
    background: #333;
    color: #fff;
}

.tps-status-badge.in-progress {
    background: #ff9800;
    color: #fff;
}

.tps-status-badge.upcoming {
    background: #333;
    color: #fff;
}

.tps-status-badge.completed {
    background: #46b450;
    color: #fff;
}

.tps-schedule-details p {
    margin: 8px 0;
    color: #666;
}

.tps-schedule-details strong {
    color: #23282d;
}

/* Deal indicator */
.tps-deal-indicator {
    display: inline-block;
    background: #333;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 5px;
    cursor: help;
    vertical-align: middle;
}

/* Prize tooltip */
.tps-prize-with-tooltip {
    cursor: help;
    /* border-bottom: 1px dashed #333; */
    position: relative;
}

/* .tps-prize-with-tooltip:hover styling removed - no longer needed */

.tps-season-prizes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.tps-prize-item {
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-weight: 600;
    flex: 0 1 calc(50% - 6px);
    text-align: center;
    box-sizing: border-box;
    color: #666;
}

.tps-prize-item--full {
    flex: 0 1 100%;
}

/* Prize display in schedule */
.tps-schedule-prizes {
    margin: 8px 0;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
}

.tps-deal-icon-frontend {
    display: inline-block;
    background: #333;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    cursor: help;
}

.tps-prize-box {
    flex: 1 1 0;
    background: #fff;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    text-align: center;
    min-width: 0;
}

.tps-season-deal-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    margin: 0;
}

@media (max-width: 768px) {
    .tps-schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .tps-points-prizes-grid {
        grid-template-columns: 1fr;
    }
}

.tps-column-min,
.tps-column-max {
    white-space: nowrap;
    font-weight: 400;
}

.tps-column-min.tps-min-eliminated {
    color: #b91c1c;
    font-weight: 600;
    cursor: help;
}

.tps-column-max.tps-max-top3 {
    color: #065f46;
    font-weight: 600;
    cursor: help;
}

.tps-column-worst {
    white-space: nowrap;
    font-weight: 400;
}

.tps-column-best {
    white-space: nowrap;
    font-weight: 400;
}

.tps-leaderboard-table .tps-column-min,
.tps-leaderboard-table .tps-column-max {
    text-align: center;
}

.tps-leaderboard-table tr.tps-winner .tps-column-min,
.tps-leaderboard-table tr.tps-winner .tps-column-max,
.tps-leaderboard-table tr.tps-winner .tps-column-worst,
.tps-leaderboard-table tr.tps-winner .tps-column-best {
    font-weight: 600;
}

.tps-leaderboard-table tr.tps-eliminated {
    background: #fff5f5;
}

.tps-leaderboard-table tr.tps-eliminated td {
    color: #9b1c1c;
}

.tps-leaderboard-table tr.tps-eliminated td strong {
    color: #9b1c1c;
}

.tps-leaderboard-table tr.tps-eliminated:hover {
    background: #fee2e2;
}

.tps-leaderboard-table tr.tps-top3-out {
    background: #fde2e2;
}

.tps-leaderboard-table tr.tps-top3-out td,
.tps-leaderboard-table tr.tps-top3-out td strong {
    color: #7f1d1d;
}

.tps-leaderboard-table tr.tps-top3-out:hover {
    background: #fbd5d5;
}

/* Projections legend */
.tps-projections-legend {
    margin-top: 15px;
    margin-left: auto;
    padding: 12px 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    width: fit-content;
}

.tps-projections-legend p {
    margin: 5px 0;
    color: #666;
}

.tps-projections-legend p:first-child {
    margin-top: 0;
}

.tps-projections-legend p:last-child {
    margin-bottom: 0;
}

.tps-legend-red {
    color: #b91c1c;
    font-weight: 600;
    font-size: 14px;
    margin-right: 5px;
}

.tps-legend-green {
    color: #065f46;
    font-weight: 600;
    font-size: 14px;
    margin-right: 5px;
}

