/* =========================================================
DRAFT DAY TOOL
========================================================= */

.draft-page {
padding-bottom: 5rem;
}

/* =========================================================
PAGE HEADER
========================================================= */

.draft-header {
padding: 3rem 0 2rem;
}

.draft-header-content {
max-width: 760px;
}

.section-eyebrow,
.panel-eyebrow {
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-size: 0.8rem;
font-weight: 700;
letter-spacing: 0.08em;
color: var(--text-primary);
text-transform: uppercase;
margin-bottom: 0.75rem;
}

.draft-header h1 {
margin-bottom: 1rem;
}

.draft-header p {
max-width: 650px;
margin: 0;
font-size: 1.05rem;
}

/* =========================================================
DRAFT OVERVIEW
========================================================= */

.draft-overview {
margin-bottom: 1.5rem;
}

.draft-overview-card {
display: flex;
align-items: center;
gap: 2rem;
padding: 1.5rem 2rem;
}

.overview-item {
display: flex;
flex-direction: column;
gap: 0.25rem;
color:var(--text-primary);
}

.overview-label {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
}

.overview-value {
font-size: 1.25rem;
}

.draft-status {
display: inline-flex;
align-items: center;
gap: 0.4rem;
}

.overview-divider {
width: 1px;
height: 42px;
}

.draft-reset-button {
margin-left: auto;
}

/* =========================================================
MAIN WORKSPACE
========================================================= */

.draft-workspace {
display: grid;
grid-template-columns: minmax(0, 1fr) 360px;
gap: 1.5rem;
align-items: start;
}

/* =========================================================
PANELS
========================================================= */

.draft-panel {
overflow: hidden;
}
.draft-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    width: 100%;
}
.draft-panel-header {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;

    padding: 1.5rem;
}

.draft-panel-header.compact {
    padding-bottom: 1.25rem;
}

.draft-panel-header h2 {
    margin: 0;
    font-size: 1.35rem;
}

.draft-panel-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;

    width: 100%;
}

.modal-body, #resetDraftModalLabel {
    color: var(--primary);
}

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

    width: fit-content;
    margin-top: 0.3rem;
    padding: 0.18rem 0.4rem;

    border-radius: 999px;

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

    color: var(--primary);

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

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.panel-eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    color: var(--text-primary);
}


/* =========================================================
SEARCH
========================================================= */

.draft-search {
    position: relative;
    width: min(320px, 100%);
}

.draft-search i {
position: absolute;
left: 0.9rem;
top: 50%;
transform: translateY(-50%);
pointer-events: none;
}

.draft-search input {
width: 100%;
padding: 0.65rem 0.75rem 0.65rem 2.4rem;
border-radius: 0.5rem;
border: 1px solid;
font-size: 0.9rem;
}

.draft-search input:focus {
outline: none;
}

/* =========================================================
POSITION FILTERS
========================================================= */

.position-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}


.position-filter {

    padding: .55rem 1rem;

    border-radius: 999px;

    border: 1px solid var(--border-color);

    background: transparent;

    cursor: pointer;

    transition: .2s;

}

.position-filter.active {

    background: var(--primary);

    color: white;

}

.position-filter:hover {
transform: translateY(-1px);
}

/* =========================================================
AVAILABLE PLAYERS
========================================================= */

.available-players {
padding: 0 1.5rem 1.5rem;
min-height: 400px;
}

.draft-empty-state {
min-height: 350px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 3rem;
}

.draft-empty-state i {
font-size: 2.5rem;
margin-bottom: 1rem;
}

.draft-empty-state h3 {
font-size: 1.1rem;
margin-bottom: 0.5rem;
}

.draft-empty-state p {
max-width: 400px;
margin: 0;
}

/* =========================================================
SIDEBAR
========================================================= */

.draft-sidebar {
    position: sticky;

    top: 1.5rem;

    max-height: calc(100vh - 3rem);

    overflow-y: auto;
}

/* =========================================================
ROSTER
========================================================= */

.roster-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 32px;
height: 32px;
padding: 0 0.5rem;
color:var(--text-primary);
border-radius: 999px;
font-size: 0.8rem;
font-weight: 700;
}

.roster-group {
color:var(--text-primary);
padding: 0 1.5rem 1.25rem;
}

.roster-position-header {
display: flex;
align-items: center;
justify-content: space-between;
padding-bottom: 0.5rem;
margin-bottom: 0.5rem;
border-bottom: 1px solid;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
}

.roster-players {
display: flex;
flex-direction: column;
gap: 0.4rem;
}

.roster-player {

    display: flex;

    flex-direction: column;

    gap: .75rem;

}

.return-player-button {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: .5rem;

    width: 100%;

    padding: .55rem;

    border: none;

    border-radius: .5rem;

    cursor: pointer;

    background: var(--surface-secondary);

    color: var(--text-secondary);

    transition: .2s;

}

.return-player-button:hover {

    background: var(--primary);

    color: white;

}

.roster-empty {
font-size: 0.8rem;
padding: 0.5rem 0;
}

/* =========================================================
DRAFTED BY OTHERS
========================================================= */

.others-list {
padding: 0 1.5rem 1.5rem;
max-height: 300px;
overflow-y: auto;
color:var(--text-primary);
}

/* =========================================================
RESPONSIVE
========================================================= */

@media (max-width: 992px) {


.draft-workspace {
    grid-template-columns: 1fr;
}

.draft-sidebar {
    position: static;
}


}

@media (max-width: 768px) {


.draft-overview-card {
    flex-wrap: wrap;
    gap: 1rem;
}

.overview-divider {
    display: none;
}

    .draft-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

.draft-reset-button {
align-self: flex-start;
}

.draft-panel-header {
    flex-direction: column;
    align-items: stretch;
}

.draft-search {
    width: 100%;
}

    .draft-panel-heading-row {
        flex-direction: column;
        align-items: stretch;
    }

}

@media (max-width: 576px) {


.draft-header {
    padding-top: 2rem;
}

.draft-header h1 {
    font-size: 2rem;
}

.position-filters {
    overflow-x: auto;
}

.position-filter {
    flex: 0 0 auto;
}


}
/* =========================================================
PLAYER LIST
========================================================= */

.draft-player {
display: grid;
grid-template-columns: 45px minmax(0, 1fr) 130px 90px;
align-items: center;
gap: 1rem;
color: var(--text-primary);


padding: 0.9rem 1rem;

border-top: 1px solid;

transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;


}

.draft-player:first-child {
border-top: none;
}

.draft-player:hover {
/*transform: translateX(3px);*/
}

.draft-player-rank {
font-size: 0.8rem;
font-weight: 700;
text-align: center;
}

.draft-player-info {
min-width: 0;
}

.draft-player-name {
font-weight: 700;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.draft-player-position {
margin-top: 0.15rem;
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
}

.draft-player-points {
display: flex;
flex-direction: column;
text-align: right;
}

.draft-player-points strong {
font-size: 0.95rem;
}

.draft-player-points span {
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.04em;
}

.draft-player-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.35rem;


border: none;
border-radius: 0.4rem;

padding: 0.5rem 0.7rem;

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

cursor: pointer;

transition:
    transform 0.15s ease,
    opacity 0.15s ease;


}

.draft-player-button:hover {
/*transform: translateY(-1px);*/
opacity: 0.9;
}

.return-player-button {

    border: none;

    background: transparent;

    color: var(--text-secondary);

    cursor: pointer;

    padding: .35rem;

    border-radius: .5rem;

    transition: .2s;

}

.return-player-button:hover {

    background: var(--surface-hover);

    color: var(--primary);

}

/* =========================================================
PLAYER LIST — MOBILE
========================================================= */

@media (max-width: 576px) {


.draft-player {
    grid-template-columns: 35px minmax(0, 1fr) auto;
    gap: 0.75rem;
}

.draft-player-points {
    display: none;
}

.draft-player-button {
    padding: 0.45rem 0.55rem;
}


}
