﻿/* ===============================
   BASIS VAN DE PAGINA
================================= */

body {
    background: #f3f6fb;
}

* {
    box-sizing: border-box;
}

.draft-page {
    padding: 24px;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
}


/* ===============================
   BOVENSTE HEADER VAN DE DRAFT PAGINA
================================= */

.draft-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 28px;
    margin-bottom: 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.draft-page-header-left {
    flex: 1;
    min-width: 0;
}

.draft-page-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.78);
}

.draft-page-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.draft-page-header p {
    margin: 10px 0 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem;
    line-height: 1.6;
}

.draft-page-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 14px;
}


/* ===============================
   KNOPPEN BOVENAAN IN DE HEADER
================================= */

.draft-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.draft-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.2s ease;
}

    .draft-header-btn:hover {
        transform: translateY(-1px);
    }

.draft-header-btn-blue {
    background: #2563eb;
    color: white;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.draft-header-btn-white {
    background: white;
    color: #1e1b4b;
    border: 1px solid rgba(255, 255, 255, 0.7);
}


/* ===============================
   STATUS PILL: LIVE / DONE
================================= */

.draft-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

    .draft-status-pill.live {
        color: #ffffff;
        background: rgba(34, 197, 94, 0.18);
        border-color: rgba(134, 239, 172, 0.35);
    }

    .draft-status-pill.done {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.22);
    }

.draft-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}


/* ===============================
   MELDINGEN / ALERTS
================================= */

.draft-alert {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 700;
    border: 1px solid transparent;
}

.draft-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}


/* ===============================
   STATISTIEK KAARTEN BOVENAAN
================================= */

.draft-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.draft-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 20px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e7edf5;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    min-width: 0;
}

.draft-stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef4ff 0%, #dce9ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.draft-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.draft-stat-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8a94a6;
}

.draft-stat-value {
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 800;
    color: #111827;
    word-break: break-word;
}


/* ===============================
   ALGEMENE LAYOUT: MAIN + SIDEBAR
================================= */

.draft-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 340px;
    gap: 24px;
    align-items: start;
}

.draft-main-card,
.draft-side-card {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.draft-main-card {
    overflow: hidden;
    min-width: 0;
}


/* ===============================
   HEADER VAN DE SPELERSKAART
================================= */

.draft-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px 26px;
    border-bottom: 1px solid #edf2f7;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.draft-card-header-text {
    min-width: 0;
}

.draft-card-header h2 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.draft-card-header p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.draft-card-header-badge {
    padding: 10px 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}


/* ===============================
   DRAFT TABEL
================================= */

.draft-table-wrap {
    width: 100%;
    min-width: 0;
}

.draft-table {
    width: 100%;
    min-width: 0;
}

.draft-table-head {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) 120px minmax(280px, 2fr);
    gap: 18px;
    padding: 16px 26px;
    border-bottom: 1px solid #edf2f7;
    background: #f8fbff;
    color: #7b8798;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.draft-table-body {
    display: flex;
    flex-direction: column;
}

.draft-row {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) 120px minmax(280px, 2fr);
    gap: 18px;
    align-items: center;
    padding: 20px 26px;
    border-bottom: 1px solid #edf2f7;
    transition: background 0.2s ease, transform 0.2s ease;
    min-width: 0;
}

    .draft-row:last-child {
        border-bottom: none;
    }

    .draft-row:hover {
        background: #fafcff;
    }

    .draft-row.active {
        background: linear-gradient(90deg, #eef4ff 0%, #f8fbff 100%);
        border-left: 5px solid #2563eb;
        padding-left: 21px;
    }

    .draft-row.completed {
        background: #fcfefe;
    }

.draft-cell {
    min-width: 0;
}


/* ===============================
   SPELER INFO IN DE RIJ
================================= */

.draft-player-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.draft-player-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.draft-player-meta {
    min-width: 0;
}

.draft-player-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.draft-player-name {
    font-size: 1.08rem;
    font-weight: 800;
    color: #111827;
    word-break: break-word;
}

.draft-player-subtitle {
    display: inline-block;
    margin-top: 4px;
    color: #7b8798;
    font-size: 0.86rem;
    word-break: break-word;
}


/* ===============================
   BADGES: ACTIEF / KLAAR / WACHT
================================= */

.draft-inline-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

    .draft-inline-badge.active {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .draft-inline-badge.picked {
        background: #dcfce7;
        color: #166534;
    }

    .draft-inline-badge.waiting {
        background: #f3f4f6;
        color: #6b7280;
    }


/* ===============================
   PICKS AANTAL
================================= */

.draft-position-cell {
    display: flex;
    align-items: center;
}

.draft-position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 0.92rem;
}


/* ===============================
   SELECTIE FORMULIER VOOR RENNER
================================= */

.draft-selection-cell {
    min-width: 0;
}

.draft-pick-form {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.draft-search-input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 46px 0 16px;
    border-radius: 14px;
    border: 1px solid #d7e0ec;
    background: #ffffff;
    color: #111827;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .draft-search-input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
        background: #fcfdff;
    }

    .draft-search-input::placeholder {
        color: #94a3b8;
    }

.draft-search-input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
}


/* ===============================
   OUDE CUSTOM DROPDOWN STYLING
================================= */

.draft-search-select {
    position: relative;
    width: 100%;
    min-width: 0;
    flex: 1;
}

.draft-search-select-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.draft-search-toggle {
    position: absolute;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .draft-search-toggle:hover {
        background: #f1f5f9;
        color: #1d4ed8;
    }

.draft-search-select.open .draft-search-toggle {
    transform: rotate(180deg);
}

.draft-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.16);
}

.draft-search-select.open .draft-search-dropdown {
    display: block;
}

.draft-search-option {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: background 0.18s ease, color 0.18s ease;
}

    .draft-search-option:hover {
        background: #eef4ff;
    }

.draft-search-option-name {
    color: #111827;
    font-size: 0.94rem;
    font-weight: 600;
}

.draft-search-empty {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px 14px;
    color: #94a3b8;
    font-size: 0.92rem;
    font-weight: 600;
}


/* ===============================
   PICK BUTTON
================================= */

.draft-pick-button {
    height: 50px;
    padding: 0 20px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

    .draft-pick-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
    }


/* ===============================
   LEGE STATE EN GEKOZEN RENNER
================================= */

.draft-empty-state {
    color: #8a94a6;
    font-weight: 600;
    word-break: break-word;
}

.draft-picked-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #166534;
    font-size: 0.98rem;
    font-weight: 800;
    flex-wrap: wrap;
    word-break: break-word;
}

.draft-picked-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.78rem;
    font-weight: 900;
    flex-shrink: 0;
}


/* ===============================
   RECHTER SIDEBAR
================================= */

.draft-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.draft-side-card {
    padding: 22px;
}

.draft-side-highlight {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.draft-side-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

    .draft-side-card-header h3 {
        margin: 0;
        font-size: 1.12rem;
        font-weight: 800;
        color: #111827;
    }

.draft-mini-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

    .draft-mini-status.live {
        background: #ecfdf3;
        color: #166534;
    }

    .draft-mini-status.done {
        background: #eff6ff;
        color: #1d4ed8;
    }


/* ===============================
   NU AAN DE BEURT BLOK
================================= */

.draft-current-turn-box {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
    margin-bottom: 18px;
}

.draft-current-turn-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin-bottom: 8px;
}

.draft-current-turn-name {
    font-size: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    word-break: break-word;
}


/* ===============================
   INFO LIJST IN SIDEBAR
================================= */

.draft-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.draft-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #edf2f7;
    color: #4b5563;
    font-size: 0.96rem;
}

    .draft-info-item:last-child {
        border-bottom: none;
    }

    .draft-info-item strong {
        color: #111827;
        font-size: 1rem;
        font-weight: 800;
    }


/* ===============================
   PROGRESS BAR IN SIDEBAR
================================= */

.draft-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.draft-progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #e8eef7;
    overflow: hidden;
}

.draft-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

.draft-progress-text {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 700;
}


/* ===============================
   TIP KAART
================================= */

.draft-tip-card {
    background: linear-gradient(180deg, #fffdf5 0%, #fffaf0 100%);
    border-color: #f7e6b5;
}

.draft-tip-title {
    margin-bottom: 10px;
    font-weight: 800;
    color: #9a6700;
    font-size: 1rem;
}

.draft-tip-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.94rem;
}


/* ===============================
   RESPONSIVE VOOR GROTE SCHERMEN
================================= */

@media (max-width: 1400px) {
    .draft-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 1250px) {
    .draft-layout {
        grid-template-columns: 1fr;
    }

    .draft-sidebar {
        order: -1;
    }
}


/* ===============================
   RESPONSIVE VOOR TABLET
================================= */

@media (max-width: 992px) {
    .draft-page {
        padding: 18px;
    }

    .draft-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .draft-card-header {
        padding: 20px;
    }

    .draft-table-head,
    .draft-row {
        grid-template-columns: minmax(180px, 1.5fr) 90px minmax(220px, 1.7fr);
        gap: 14px;
        padding-left: 20px;
        padding-right: 20px;
    }

        .draft-row.active {
            padding-left: 15px;
        }

    .draft-page-header {
        padding: 22px;
    }

        .draft-page-header h1 {
            font-size: 1.7rem;
        }
}


/* ===============================
   RESPONSIVE VOOR MOBIEL
================================= */

@media (max-width: 768px) {
    .draft-page {
        padding: 14px;
    }

    .draft-page-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 20px;
    }

        .draft-page-header h1 {
            font-size: 1.55rem;
        }

        .draft-page-header p {
            font-size: 0.92rem;
        }

    .draft-page-header-right {
        width: 100%;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .draft-header-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .draft-header-btn {
        flex: 1;
    }

    .draft-status-pill {
        width: auto;
        max-width: 100%;
    }

    .draft-stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .draft-stat-card {
        padding: 18px;
        border-radius: 18px;
    }

    .draft-stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .draft-stat-value {
        font-size: 1.4rem;
    }

    .draft-card-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .draft-card-header-badge {
        align-self: flex-start;
    }

    .draft-table-head {
        display: none;
    }

    .draft-table-wrap {
        padding: 14px;
    }

    .draft-table {
        background: transparent;
    }

    .draft-table-body {
        gap: 14px;
    }

    .draft-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
        border: 1px solid #e7edf5;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    }

        .draft-row:last-child {
            border-bottom: 1px solid #e7edf5;
        }

        .draft-row.active {
            border-left: 5px solid #2563eb;
            padding-left: 12px;
        }

    .draft-cell {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

        .draft-cell::before {
            content: attr(data-label);
            font-size: 0.72rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: #94a3b8;
        }

    .draft-player-cell {
        flex-direction: row;
        align-items: center;
    }

    .draft-position-cell {
        align-items: flex-start;
    }

    .draft-selection-cell {
        width: 100%;
    }

    .draft-pick-form {
        flex-direction: column;
        align-items: stretch;
    }

    .draft-pick-button {
        width: 100%;
    }

    .draft-search-dropdown {
        max-height: 240px;
    }

    .draft-side-card {
        padding: 18px;
    }

    .draft-current-turn-name {
        font-size: 1.25rem;
    }
}


/* ===============================
   RESPONSIVE VOOR KLEINE GSM
================================= */

@media (max-width: 480px) {
    .draft-page {
        padding: 12px;
    }

    .draft-page-header {
        padding: 16px;
        gap: 14px;
    }

    .draft-page-kicker {
        font-size: 0.7rem;
    }

    .draft-page-header h1 {
        font-size: 1.35rem;
    }

    .draft-page-header p {
        margin-top: 8px;
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .draft-status-pill {
        padding: 10px 14px;
        font-size: 0.82rem;
    }

    .draft-stat-card {
        padding: 16px;
        gap: 12px;
    }

    .draft-stat-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 1.05rem;
    }

    .draft-stat-label {
        font-size: 0.7rem;
    }

    .draft-stat-value {
        font-size: 1.2rem;
    }

    .draft-card-header {
        padding: 16px;
    }

        .draft-card-header h2 {
            font-size: 1.1rem;
        }

        .draft-card-header p {
            font-size: 0.85rem;
        }

    .draft-table-wrap {
        padding: 12px;
    }

    .draft-row {
        padding: 14px;
        border-radius: 16px;
    }

    .draft-player-avatar {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .draft-player-name {
        font-size: 0.98rem;
    }

    .draft-player-subtitle {
        font-size: 0.8rem;
    }

    .draft-inline-badge {
        font-size: 0.66rem;
        padding: 4px 8px;
    }

    .draft-position-badge {
        font-size: 0.84rem;
        padding: 7px 12px;
    }

    .draft-search-input,
    .draft-pick-button {
        height: 46px;
    }

    .draft-side-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .draft-info-item {
        font-size: 0.9rem;
    }

        .draft-info-item strong {
            font-size: 0.95rem;
        }

    .draft-current-turn-box {
        padding: 16px;
        border-radius: 16px;
    }

    .draft-current-turn-name {
        font-size: 1.1rem;
    }

    .draft-tip-card p,
    .draft-progress-text {
        font-size: 0.86rem;
    }
}
