﻿/* =========================================================
   Gedian Sports - Coach Profile Edit
   ========================================================= */

.coach-edit-page {
    min-height: calc(100vh - 70px);
    background: radial-gradient( circle at top right, rgba(91, 140, 59, .12), transparent 28%), linear-gradient( 180deg, #f5f8f3 0%, #eef3f5 100%);
    color: #071a33;
    font-family: "Tajawal", sans-serif;
}

.coach-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 25px 27px;
    border: 1px solid #dfe7df;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(7, 26, 51, .07);
}

    .coach-edit-header h1 {
        margin: 5px 0 8px;
        color: #071a33;
        font-size: clamp(1.55rem, 3vw, 2.25rem);
        font-weight: 900;
    }

    .coach-edit-header p {
        margin: 0;
        color: #758493;
        font-size: .88rem;
    }

.coach-edit-eyebrow {
    color: #5b8c3b;
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.coach-edit-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid #d8e5d2;
    border-radius: 15px;
    background: #f8fcf5;
    box-shadow: 0 8px 20px rgba(7, 26, 51, .04);
}

.coach-edit-notice-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #5b8c3b;
    color: #fff;
    font-weight: 900;
}

.coach-edit-notice strong {
    display: block;
    color: #284e18;
    font-size: .86rem;
}

.coach-edit-notice p {
    margin: 4px 0 0;
    color: #667863;
    font-size: .76rem;
    line-height: 1.7;
}

.coach-edit-section {
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid #dfe7df;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(7, 26, 51, .07);
}

.coach-edit-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 22px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e8ede8;
}

.coach-edit-section-number {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 11px;
    background: #5b8c3b;
    color: #fff;
    font-size: .88rem;
    font-weight: 900;
    box-shadow: 0 7px 16px rgba(91, 140, 59, .22);
}

.coach-edit-section-heading h2 {
    margin: 0;
    color: #071a33;
    font-size: 1.04rem;
    font-weight: 900;
}

.coach-edit-section-heading p {
    margin: 5px 0 0;
    color: #82909d;
    font-size: .75rem;
}

.coach-edit-page .form-label {
    margin-bottom: 7px;
    color: #263c53;
    font-size: .78rem;
}

.coach-edit-page .form-control,
.coach-edit-page .form-select,
.coach-lookup-modal .form-control,
.coach-lookup-modal .form-select {
    min-height: 43px;
    border: 1px solid #d7e0d8;
    border-radius: 11px;
    background-color: #fff;
    color: #172f47;
    font-size: .8rem;
    box-shadow: none;
}

.coach-edit-page textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.8;
}

.coach-edit-page .form-control:focus,
.coach-edit-page .form-select:focus,
.coach-lookup-modal .form-control:focus,
.coach-lookup-modal .form-select:focus {
    border-color: #7fa963;
    box-shadow: 0 0 0 .18rem rgba(91, 140, 59, .14);
}

.coach-edit-page .input-group-text {
    border-color: #d7e0d8;
    background: #f6f8f5;
    color: #6c7a86;
    font-size: .75rem;
}

.coach-edit-page .form-text {
    margin-top: 6px;
    color: #8b97a2;
    font-size: .67rem;
}

.coach-availability-box {
    padding: 17px 18px;
    border: 1px solid #dce7d6;
    border-radius: 14px;
    background: #f8fcf5;
}

    .coach-availability-box .form-check {
        min-height: 24px;
        margin: 0;
    }

    .coach-availability-box .form-check-input {
        width: 2.3em;
        height: 1.2em;
        margin-left: 9px;
    }

        .coach-availability-box .form-check-input:checked {
            border-color: #5b8c3b;
            background-color: #5b8c3b;
        }

    .coach-availability-box .form-check-label {
        color: #284e18;
        font-size: .82rem;
    }

    .coach-availability-box p {
        margin: 7px 0 0;
        color: #71806d;
        font-size: .71rem;
        line-height: 1.65;
    }

.coach-club-selector {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
}

.coach-club-name {
    cursor: default;
    background: #fbfcfb !important;
    font-weight: 700;
}

.coach-lookup-button {
    border-color: #5b8c3b;
    background: #5b8c3b;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
}

    .coach-lookup-button:hover,
    .coach-lookup-button:focus {
        border-color: #48742f;
        background: #48742f;
        color: #fff;
    }

.coach-section-helper {
    margin-top: 10px;
    color: #8a96a1;
    font-size: .68rem;
    line-height: 1.6;
}

.coach-media-edit-box {
    height: 100%;
    padding: 17px;
    border: 1px solid #e0e7e1;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #fafcf9);
}

    .coach-media-edit-box h3 {
        margin: 0 0 13px;
        color: #102840;
        font-size: .88rem;
        font-weight: 900;
    }

.coach-media-preview,
.coach-media-video {
    display: block;
    width: 100%;
    height: 215px;
    border: 1px solid #dde5df;
    border-radius: 13px;
    background: #edf2ee;
    object-fit: cover;
}

.coach-banner-preview {
    object-fit: cover;
}

.coach-media-video {
    background: #071a33;
}

.coach-media-placeholder {
    display: grid;
    width: 100%;
    height: 215px;
    place-items: center;
    border: 1px dashed #cbd7cc;
    border-radius: 13px;
    background: linear-gradient( 135deg, #f7faf5, #eef4eb);
    color: #85928c;
    font-size: .76rem;
    text-align: center;
}

.coach-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 4px 0 20px;
}

    .coach-edit-actions .btn {
        min-height: 43px;
        border-radius: 11px;
        font-size: .8rem;
        font-weight: 800;
    }

.coach-edit-page .btn-primary {
    border-color: #5b8c3b;
    background: #5b8c3b;
}

    .coach-edit-page .btn-primary:hover,
    .coach-edit-page .btn-primary:focus {
        border-color: #48742f;
        background: #48742f;
    }

/* =========================================================
   Club lookup modal
   ========================================================= */

.coach-lookup-modal {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 26px 75px rgba(7, 26, 51, .24);
}

    .coach-lookup-modal .modal-header {
        border-bottom: 0;
        background: linear-gradient( 135deg, #071a33, #0e3a64);
        color: #fff;
    }

    .coach-lookup-modal .modal-title {
        font-size: 1rem;
        font-weight: 900;
    }

    .coach-lookup-modal .modal-header .btn-close {
        filter: invert(1);
    }

.coach-lookup-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 16px;
}

    .coach-lookup-filter-grid label {
        display: block;
        margin-bottom: 7px;
        color: #31465c;
        font-size: .75rem;
        font-weight: 800;
    }

.coach-lookup-table-wrapper {
    overflow: auto;
    max-height: 430px;
    border: 1px solid #dde5df;
    border-radius: 13px;
}

.coach-lookup-table {
    margin: 0;
    font-size: .76rem;
}

    .coach-lookup-table thead {
        position: sticky;
        z-index: 1;
        top: 0;
        background: #f1f5ef;
    }

    .coach-lookup-table th {
        padding: 12px;
        border-bottom: 1px solid #dce5dc;
        color: #294117;
        font-weight: 900;
        white-space: nowrap;
    }

    .coach-lookup-table td {
        padding: 12px;
        color: #46596c;
        vertical-align: middle;
    }

.coach-lookup-result-row {
    cursor: pointer;
    transition: .16s ease;
}

    .coach-lookup-result-row:hover,
    .coach-lookup-result-row:focus {
        outline: 0;
        background: #f2f8ee;
    }

.coach-lookup-message {
    padding: 28px !important;
    color: #8996a1 !important;
    text-align: center;
}

/* =========================================================
   Validation
   ========================================================= */

.coach-edit-page .input-validation-error {
    border-color: #dc3545;
}

.coach-edit-page .field-validation-error {
    display: block;
    margin-top: 6px;
}

.coach-edit-page .was-validated .form-control:invalid,
.coach-edit-page .was-validated .form-select:invalid {
    border-color: #dc3545;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 767.98px) {
    .coach-edit-page {
        padding-top: 4px;
    }

    .coach-edit-header {
        align-items: stretch;
        flex-direction: column;
        padding: 20px;
        border-radius: 16px;
    }

        .coach-edit-header .btn {
            align-self: flex-start;
        }

    .coach-edit-section {
        padding: 18px;
        border-radius: 16px;
    }

    .coach-club-selector {
        grid-template-columns: 1fr;
    }

    .coach-lookup-filter-grid {
        grid-template-columns: 1fr;
    }

    .coach-edit-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

        .coach-edit-actions .btn {
            width: 100%;
        }

    .coach-media-preview,
    .coach-media-video,
    .coach-media-placeholder {
        height: 200px;
    }
}
