/**
 * Rankings Pages Specific Styles
 * Shared across QB, RB, WR, TE rankings pages
 */

.main-content {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    min-height: calc(100vh - 100px);
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 20px;
}

.position-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.position-btn {
    padding: 10px 20px;
    background-color: #444;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.position-btn:hover {
    background-color: #555;
}

.position-btn.active {
    background-color: #b8efc0;
    color: #2a2a2a;
}

/* Rankings-specific: Scoring format buttons inside position-nav */
.scoring-buttons {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.scoring-btn {
    padding: 8px 14px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.scoring-btn:hover {
    background-color: #555;
}

.scoring-btn.active {
    background-color: #b8efc0;
    color: #2a2a2a;
}

.rankings-table {
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.table-header {
    background-color: #b8efc0;
    color: #2a2a2a;
    padding: 15px;
    display: grid;
    grid-template-columns: 65px 1fr 140px 100px;
    gap: 15px;
    font-weight: 600;
}

.table-row {
    padding: 15px;
    display: grid;
    grid-template-columns: 65px 1fr 140px 100px;
    gap: 15px;
    border-bottom: 1px solid #444;
    transition: background-color 0.2s ease;
}

.table-row:hover {
    background-color: #3a3a3a;
}

.table-row:last-child {
    border-bottom: none;
}

.rank {
    font-weight: 600;
    color: #b8efc0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #444;
    border: 2px solid #555;
}

.player-image.error {
    display: none;
}

.player-image-default {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #666;
}

.player-image-default svg {
    width: 18px;
    height: 18px;
    fill: #888;
}

.player-name {
    font-weight: 500;
}

.team {
    color: #aaa;
    font-size: 14px;
}

/* Rankings-specific: Team display */
.player-team {
    color: white;
}

.opponent-info {
    color: #aaa;
}

.fantasy-points {
    font-weight: 600;
    color: #b8efc0;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #aaa;
}

.error {
    text-align: center;
    padding: 40px;
    color: #f44336;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 16px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #555;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background-color: #b8efc0;
    color: #2a2a2a;
}

.pagination-info {
    color: #aaa;
    font-size: 14px;
}

@media (max-width: 768px) {
    .main-content {
        padding: 15px;
        min-height: calc(100vh - 200px);
    }

    .page-title {
        font-size: 28px;
    }

    .rankings-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-header,
    .table-row {
        grid-template-columns: 60px 1fr 100px 80px;
        gap: 10px;
        font-size: 14px;
    }

    .player-image {
        width: 28px;
        height: 28px;
    }

    .player-image-default {
        width: 28px;
        height: 28px;
    }

    .player-image-default svg {
        width: 16px;
        height: 16px;
    }

    .position-nav {
        gap: 10px;
    }

    .position-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .scoring-buttons {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}
