﻿/* =========================================================
   GEDIAN SPORTS - PUBLIC SHOW COACHES
   Compact public directory aligned with ShowPlayers/ShowClubs
   ========================================================= */

.public-coaches-page {
    --green: #5B8C3B;
    --green-dark: #426b2d;
    --green-soft: #eef6e9;
    --navy: #17283b;
    --text: #425149;
    --muted: #7c8881;
    --border: #e0e7dd;
    --bg: #f6f8f4;
    min-height: 100vh;
    padding: 11px 0 52px;
    background: radial-gradient( circle at 5% 0%, rgba(91,140,59,.055), transparent 24rem), linear-gradient( 180deg, #fcfdfb 0%, var(--bg) 100%);
    color: var(--text);
    font-family: "Tajawal", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

    .public-coaches-page .container {
        max-width: 1320px;
    }


/* =========================================================
   Registration strip
   ========================================================= */

.coach-register-strip {
    min-height: 52px;
    padding: 7px 10px 7px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #dbe6d5;
    border-radius: 11px;
    background: linear-gradient( 90deg, #f3f9ef, #fbfdf9);
}

    .coach-register-strip > div {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.coach-register-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #fff;
    font-size: 1rem;
    box-shadow: 0 2px 7px rgba(36,64,24,.06);
}

.coach-register-strip strong {
    color: var(--navy);
    font-size: .88rem;
    font-weight: 900;
}

.coach-register-strip > div > span:last-child {
    overflow: hidden;
    color: #70806f;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coach-register-strip > a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 900;
}

    .coach-register-strip > a:hover {
        background: var(--green-dark);
    }


/* =========================================================
   Search
   ========================================================= */

.coaches-search-bar {
    margin-top: 8px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(15,23,42,.025);
}

.coaches-search-form {
    display: grid;
    grid-template-columns: minmax(190px,1.6fr) minmax(135px,1fr) minmax(125px,.85fr) minmax(140px,.9fr) minmax(130px,.85fr) auto auto;
    align-items: center;
    gap: 6px;
}

.coach-search-control {
    min-width: 0;
    height: 39px;
    display: flex;
    align-items: center;
    border: 1px solid #dfe5dc;
    border-radius: 8px;
    background: #fbfcfa;
}

.coach-search-text-control {
    padding-inline: 9px 3px;
    gap: 6px;
}

    .coach-search-text-control > span {
        flex: 0 0 auto;
        font-size: .82rem;
    }

.coach-search-control input,
.coach-search-control select {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #4c5a52;
    font-family: inherit;
    font-size: .78rem;
}

.coach-search-control select {
    padding-inline: 8px 25px;
}

.coach-search-control input::placeholder {
    color: #9ba49f;
}

.coaches-search-button,
.coaches-search-reset {
    height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 900;
}

.coaches-search-button {
    min-width: 61px;
    padding: 6px 11px;
    border: 0;
    background: var(--green);
    color: #fff;
    font-size: .78rem;
}

.coaches-search-reset {
    width: 39px;
    border: 1px solid #e2e6e0;
    background: #fff;
    color: #849087;
    text-decoration: none;
    font-family: Arial,sans-serif;
    font-size: 1.05rem;
}

    .coaches-search-reset:hover {
        background: #fff1ef;
        color: #a84e45;
    }


/* =========================================================
   Result line
   ========================================================= */

.coaches-result-line {
    min-height: 35px;
    padding: 5px 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #7f8a83;
    font-size: .75rem;
}

    .coaches-result-line > div {
        min-width: 0;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .coaches-result-line strong {
        color: var(--navy);
        font-family: Arial,sans-serif;
        font-size: .9rem;
    }

    .coaches-result-line i {
        color: #bcc3be;
        font-style: normal;
    }

    .coaches-result-line small {
        flex: 0 0 auto;
        color: #9a7b31;
        font-size: .7rem;
    }


/* =========================================================
   Cards
   ========================================================= */

.coaches-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 11px;
}

.coach-card {
    min-width: 0;
    overflow: hidden;
    display: block;
    border: 1px solid #dfe6dc;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(20,42,24,.035);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

    .coach-card[hidden] {
        display: none !important;
    }

    .coach-card:hover {
        color: inherit;
        border-color: #cbdcc2;
        box-shadow: 0 13px 30px rgba(49,83,34,.09);
        transform: translateY(-3px);
    }

.coach-card-photo {
    position: relative;
    height: 218px;
    overflow: hidden;
    background: linear-gradient( 145deg, #e7f0e2, #cfdcc8);
}

    .coach-card-photo > img,
    .coach-photo-placeholder {
        width: 100%;
        height: 100%;
    }

    .coach-card-photo > img {
        display: block;
        object-fit: cover;
        object-position: center top;
    }

.coach-photo-placeholder {
    display: grid;
    place-items: center;
    background: radial-gradient( circle at 50% 20%, rgba(255,255,255,.75), transparent 30%), linear-gradient( 145deg, #dae8d2, #b9cfad);
    color: var(--green-dark);
    font-size: 3rem;
    font-weight: 900;
}

.coach-card-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(9,30,20,0) 52%, rgba(9,30,20,.48) 100%);
    pointer-events: none;
}

.coach-card-badges {
    position: absolute;
    top: 9px;
    right: 9px;
    left: 9px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5px;
}

.coach-verified-badge,
.coach-available-badge {
    min-height: 24px;
    padding: 4px 7px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.coach-verified-badge {
    background: #e9f6e6;
    color: #4d7b37;
}

.coach-available-badge {
    margin-inline-start: auto;
    background: rgba(19,55,36,.82);
    color: #fff;
    backdrop-filter: blur(5px);
}

.coach-role-ribbon {
    position: absolute;
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 8px;
    overflow: hidden;
    border-radius: 7px;
    background: rgba(255,255,255,.92);
    color: var(--green-dark);
    font-size: .75rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coach-card-body {
    padding: 12px;
}

.coach-card-name {
    min-height: 48px;
}

    .coach-card-name h3 {
        margin: 0;
        overflow: hidden;
        color: var(--navy);
        font-size: 1rem;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .coach-card-name > span {
        display: block;
        margin-top: 2px;
        overflow: hidden;
        color: #919b95;
        font-size: .74rem;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: right;
    }

.coach-card-primary {
    min-height: 64px;
    margin-top: 7px;
    padding: 7px 0;
    display: grid;
    gap: 5px;
    border-top: 1px solid #edf0ed;
    border-bottom: 1px solid #edf0ed;
}

    .coach-card-primary span {
        overflow: hidden;
        color: #55635a;
        font-size: .78rem;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.coach-card-meta {
    min-height: 38px;
    padding: 7px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

    .coach-card-meta span {
        padding: 3px 6px;
        border-radius: 6px;
        background: #f3f6f1;
        color: #78847c;
        font-size: .7rem;
    }

.coach-card-footer {
    min-height: 57px;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #edf0ed;
}

    .coach-card-footer > div {
        min-width: 0;
    }

        .coach-card-footer > div > span,
        .coach-card-footer > div > strong {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .coach-card-footer > div > span {
            color: #929c96;
            font-size: .68rem;
        }

        .coach-card-footer > div > strong {
            margin-top: 2px;
            color: #4d5a52;
            font-size: .78rem;
            font-weight: 900;
        }

    .coach-card-footer > b {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: var(--green-dark);
        font-size: .74rem;
        font-weight: 900;
    }


/* =========================================================
   Empty / load more
   ========================================================= */

.coaches-message {
    min-height: 190px;
    padding: 24px;
    display: grid;
    place-items: center;
    align-content: center;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    text-align: center;
}

    .coaches-message > span {
        font-size: 1.8rem;
    }

    .coaches-message > strong {
        margin-top: 5px;
        color: var(--navy);
        font-size: 1rem;
    }

    .coaches-message > p {
        max-width: 520px;
        margin: 5px 0 10px;
        color: var(--muted);
        font-size: .8rem;
    }

    .coaches-message > a {
        min-height: 34px;
        padding: 6px 11px;
        display: inline-flex;
        align-items: center;
        border-radius: 8px;
        background: var(--green);
        color: #fff;
        text-decoration: none;
        font-size: .76rem;
        font-weight: 900;
    }

    .coaches-message.is-error {
        min-height: 90px;
        border-color: #efcfcb;
        background: #fff7f6;
        color: #9b473f;
        font-size: .82rem;
    }

.coaches-load-more {
    min-width: 170px;
    min-height: 40px;
    margin: 16px auto 0;
    padding: 7px 14px;
    display: block;
    border: 1px solid #cbdcc3;
    border-radius: 9px;
    background: #fff;
    color: var(--green-dark);
    font-family: inherit;
    font-size: .78rem;
    font-weight: 900;
    cursor: pointer;
}

    .coaches-load-more:hover {
        background: var(--green-soft);
    }


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199.98px) {
    .coaches-search-form {
        grid-template-columns: minmax(190px,1.5fr) repeat(4,minmax(120px,1fr)) auto auto;
    }

    .coaches-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media (max-width: 991.98px) {
    .coaches-search-form {
        grid-template-columns: minmax(200px,2fr) repeat(2,minmax(130px,1fr)) auto;
    }

    .coach-search-control:nth-of-type(4),
    .coach-search-control:nth-of-type(5) {
        grid-row: 2;
    }

    .coaches-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 767.98px) {
    .coach-register-strip > div > span:last-child {
        display: none;
    }

    .coaches-search-form {
        grid-template-columns: 1fr 1fr;
    }

    .coach-search-text-control {
        grid-column: 1 / -1;
    }

    .coach-search-control:nth-of-type(4),
    .coach-search-control:nth-of-type(5) {
        grid-row: auto;
    }

    .coaches-search-button {
        width: 100%;
    }

    .coaches-result-line {
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .public-coaches-page .container {
        padding-inline: 8px;
    }

    .coach-register-strip {
        min-height: 48px;
    }

        .coach-register-strip strong {
            font-size: .8rem;
        }

        .coach-register-strip > a {
            min-height: 32px;
            padding-inline: 9px;
            font-size: .72rem;
        }

    .coaches-search-form {
        grid-template-columns: 1fr;
    }

    .coach-search-text-control {
        grid-column: auto;
    }

    .coaches-search-reset {
        width: 100%;
    }

    .coaches-result-line {
        font-size: .7rem;
    }

    .coaches-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .coach-card-photo {
        height: 175px;
    }

    .coach-card-body {
        padding: 9px;
    }

    .coach-card-name h3 {
        font-size: .88rem;
    }

    .coach-card-primary span {
        font-size: .7rem;
    }

    .coach-card-footer {
        align-items: flex-end;
    }

        .coach-card-footer > b {
            font-size: 0;
        }

            .coach-card-footer > b span {
                font-size: .85rem;
            }
}

@media (max-width: 390px) {
    .coaches-grid {
        grid-template-columns: 1fr;
    }

    .coach-card-photo {
        height: 235px;
    }
}
