/* =========================================================
   PREDICTION RESULTS
   ========================================================= */

.prediction-results-page {
    padding: 3rem 0 5rem;
}


/* Header */

.prediction-results-header {
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    margin-bottom: 1.5rem;

    color: var(--text-secondary);
    text-decoration: none;

    font-size: 0.9rem;
    font-weight: 600;
}

.back-link:hover {
    color: var(--primary);
}

.prediction-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.prediction-heading-row h1 {
    margin-bottom: 0.75rem;
}

.prediction-heading-row p {
    margin: 0;
}

.rookie-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;

    width: fit-content;
    padding: 0.2rem 0.45rem;

    border-radius: 999px;

    background: color-mix(
        in srgb,
        var(--primary) 12%,
        transparent
    );

    color: var(--primary);

    font-size: 0.65rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}
/* Position navigation */
.prediction-position {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
}
.prediction-position-navigation {
    margin-bottom: 1.5rem;
}

.prediction-position-navigation-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.75rem;

    overflow-x: auto;
}

.prediction-nav-link {
    flex: 0 0 auto;

    padding: 0.55rem 0.9rem;

    border-radius: 999px;

    color: var(--text-secondary);
    text-decoration: none;

    font-size: 0.85rem;
    font-weight: 700;
}

.prediction-nav-link:hover {
    color: var(--text-primary);
}

.prediction-nav-link.active {
    background: var(--primary);
    color: #fff;
}


/* Panel */

.prediction-rankings-panel {
    overflow: hidden;
}

.prediction-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 1.5rem;
}

.prediction-panel-header h2 {
    margin: 0;
}

.prediction-count {
    padding: 0.4rem 0.7rem;

    border-radius: 999px;

    background: var(--bg-secondary);
    color: var(--text-secondary);

    font-size: 0.75rem;
    font-weight: 700;
}


/* Table */

.prediction-table-wrapper {
    overflow-x: auto;
}

.prediction-table {
    width: 100%;
    min-width: 760px;

    border-collapse: collapse;
}

.prediction-table th {
    padding: 0.75rem 1rem;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 0.7rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prediction-table td {
    padding: 0.9rem 1rem;

    border-bottom: 1px solid var(--border);
}

.prediction-table tbody tr {
    transition: background-color 0.2s ease;
}

.prediction-table tbody tr:hover {
    background: var(--bg-secondary);
}

.prediction-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: var(--bg-secondary);

    font-weight: 800;
    color: var(--primary);
}

.prediction-player-name {
    color: var(--text-primary);
}

.prediction-player {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.prediction-player-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.projected-points {
    color: var(--primary);
}

.movement {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;

    min-width: 58px;
    padding: 0.35rem 0.55rem;

    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 800;
}

.movement.rookie {
    background: color-mix(
        in srgb,
        var(--primary) 12%,
        transparent
    );

    color: var(--primary);
}

.movement.positive {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.movement.negative {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.movement.neutral {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.not-available {
    color: var(--text-secondary);
}

.prediction-empty-state {
    padding: 3rem;
    text-align: center;
}


/* Responsive */

@media (max-width: 768px) {

    .prediction-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media print {

    .back-link,
    #download-pdf,
    .prediction-position-navigation {
        display: none;
    }

}