﻿.player-transfer-heading {
    align-items: center;
}

    .player-transfer-heading small {
        display: block;
        margin-top: 4px;
        color: #758094;
        font-size: 0.78rem;
    }

.player-transfer-empty {
    padding: 28px 18px;
}

.player-transfer-list {
    display: grid;
    gap: 14px;
}

.player-transfer-card {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
}

.player-transfer-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

    .player-transfer-card-header form {
        margin: 0;
    }

.player-transfer-type-area {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.player-transfer-type-badge,
.player-transfer-status-badge,
.player-transfer-official-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
}

.player-transfer-type-badge {
    background: #edf4e8;
    color: #47702f;
}

.player-transfer-status-badge.is-pending {
    background: #fff4d6;
    color: #916900;
}

.player-transfer-status-badge.is-approved {
    background: #e1f5e6;
    color: #23713a;
}

.player-transfer-status-badge.is-rejected {
    background: #fde7e7;
    color: #a93636;
}

.player-transfer-status-badge.is-disputed {
    background: #eee8ff;
    color: #6544a5;
}

.player-transfer-official-badge {
    background: #e7efff;
    color: #275ba4;
}

.player-transfer-movement {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 15px;
    border-radius: 13px;
    background: #f8fafc;
}

.player-transfer-club {
    min-width: 0;
}

    .player-transfer-club span {
        display: block;
        margin-bottom: 3px;
        color: #8993a2;
        font-size: 0.72rem;
        font-weight: 700;
    }

    .player-transfer-club strong {
        display: block;
        overflow: hidden;
        color: #182236;
        font-size: 0.94rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.player-transfer-arrow {
    color: #5b8c3b;
    font-size: 1.5rem;
    font-weight: 900;
}

.player-transfer-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

    .player-transfer-details div {
        padding: 10px 12px;
        border: 1px solid #edf0f3;
        border-radius: 10px;
    }

    .player-transfer-details span {
        display: block;
        margin-bottom: 3px;
        color: #8791a0;
        font-size: 0.7rem;
        font-weight: 700;
    }

    .player-transfer-details strong {
        color: #344155;
        font-size: 0.82rem;
    }

.player-transfer-announcement {
    margin: 15px 0 5px;
    color: #172135;
    font-size: 0.96rem;
    font-weight: 900;
}

.player-transfer-public-note {
    margin: 0;
    color: #647084;
    font-size: 0.84rem;
    line-height: 1.8;
}

.player-transfer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.profile-transfer-dialog {
    width: calc(100% - 1rem);
    max-width: 1100px;
    height: calc(100vh - 1rem);
    height: calc(100dvh - 1rem);
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
    margin: 0.5rem auto;
}

.profile-transfer-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 18px;
}

    .profile-transfer-form .modal-header,
    .profile-transfer-form .modal-footer {
        flex: 0 0 auto;
    }

    .profile-transfer-form .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .profile-transfer-form .modal-footer {
        background: #ffffff;
    }

.profile-transfer-modal-subtitle {
    margin: 5px 0 0;
    color: #748094;
    font-size: 0.8rem;
}

.player-transfer-review-note {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid #dceacf;
    border-right: 4px solid #5b8c3b;
    border-radius: 11px;
    background: #f5faf2;
    color: #4c613f;
    font-size: 0.84rem;
    line-height: 1.7;
}

.profile-transfer-form-section {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #e3e8ee;
    border-radius: 15px;
    background: #ffffff;
}

    .profile-transfer-form-section h3 {
        margin: 0 0 15px;
        color: #1f2a3b;
        font-size: 1rem;
        font-weight: 900;
    }

.player-transfer-club-builder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.transfer-club-picker {
    padding: 14px;
    border: 1px solid #dfe5eb;
    border-radius: 13px;
    background: #fafcfd;
}

    .transfer-club-picker.is-disabled {
        opacity: 0.58;
        background: #f1f3f5;
    }

.transfer-club-picker-label {
    display: block;
    margin-bottom: 9px;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 900;
}

.transfer-club-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
}

.transfer-club-search-results {
    display: grid;
    gap: 6px;
    max-height: 220px;
    margin-top: 8px;
    overflow-y: auto;
}

.transfer-club-result {
    display: flex;
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #e3e8ee;
    border-radius: 9px;
    background: #ffffff;
    text-align: right;
}

    .transfer-club-result:hover {
        border-color: #94b47e;
        background: #f5faf2;
    }

    .transfer-club-result span {
        display: grid;
        gap: 2px;
    }

    .transfer-club-result strong {
        color: #263246;
        font-size: 0.8rem;
    }

    .transfer-club-result small {
        color: #7f8997;
        font-size: 0.69rem;
    }

.transfer-club-result-message {
    padding: 9px;
    color: #7b8797;
    font-size: 0.76rem;
    text-align: center;
}

.transfer-club-clear-button {
    width: 100%;
    margin-top: 8px;
}

.player-transfer-direction-preview {
    display: grid;
    place-items: center;
    min-height: 140px;
    text-align: center;
}

    .player-transfer-direction-preview span {
        color: #5b8c3b;
        font-size: 2rem;
        font-weight: 900;
    }

    .player-transfer-direction-preview strong {
        color: #667286;
        font-size: 0.72rem;
        line-height: 1.5;
    }

.player-transfer-guidance {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #f2f5f7;
    color: #667286;
    font-size: 0.78rem;
}

@media (max-width: 767.98px) {
    .player-transfer-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-transfer-club-builder {
        grid-template-columns: 1fr;
    }

    .player-transfer-direction-preview {
        min-height: auto;
        padding: 3px;
    }

        .player-transfer-direction-preview span {
            transform: rotate(-90deg);
        }

    .profile-transfer-dialog {
        width: calc(100% - 0.5rem);
        height: calc(100dvh - 0.5rem);
        max-height: calc(100dvh - 0.5rem);
        margin: 0.25rem auto;
    }

    .profile-transfer-form {
        border-radius: 13px;
    }

        .profile-transfer-form .modal-body {
            padding: 13px;
        }

    .profile-transfer-form-section {
        padding: 14px;
    }

    .profile-transfer-form .modal-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

        .profile-transfer-form .modal-footer .btn {
            width: 100%;
            margin: 0;
        }
}

@media (max-width: 480px) {
    .player-transfer-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-transfer-details {
        grid-template-columns: 1fr;
    }
}
