﻿/*
===============================================================================
GEDIAN SPORTS
Club Coaches administration
===============================================================================
*/

.club-coaches-page {
    --club-coaches-navy: #0b294d;
    --club-coaches-navy-dark: #071a33;
    --club-coaches-green: #5b8c3b;
    --club-coaches-green-dark: #416c2a;
    --club-coaches-border: #e3eaf2;
    --club-coaches-muted: #68768a;
    --club-coaches-surface: #ffffff;
    --club-coaches-soft: #f5f8fb;
    color: var(--club-coaches-navy-dark);
}

.club-coaches-hero {
    display: flex;
    min-height: 178px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-radius: 25px;
    background: radial-gradient( circle at 15% 10%, rgba(255, 255, 255, .14), transparent 24rem), linear-gradient( 135deg, var(--club-coaches-navy-dark), var(--club-coaches-navy));
    color: #fff;
    box-shadow: 0 18px 45px rgba(7, 26, 51, .18);
}

.club-coaches-hero-club {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 20px;
}

.club-coaches-club-logo {
    display: grid;
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    overflow: hidden;
    place-items: center;
    border: 4px solid rgba(255, 255, 255, .78);
    border-radius: 25px;
    background: #fff;
    color: var(--club-coaches-navy);
    font-size: 2rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

    .club-coaches-club-logo img {
        width: 100%;
        height: 100%;
        padding: 8px;
        object-fit: contain;
    }

.club-coaches-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #b9d7a7;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.club-coaches-hero h1 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    font-weight: 950;
}

.club-coaches-hero p {
    margin: 6px 0 0;
    font-size: 1rem;
    font-weight: 800;
}

.club-coaches-hero small {
    display: block;
    margin-top: 3px;
    color: #cbd7e5;
    text-align: start;
}

.club-coaches-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.club-coaches-editor-card,
.club-coaches-list-section {
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--club-coaches-border);
    border-radius: 22px;
    background: var(--club-coaches-surface);
    box-shadow: 0 10px 30px rgba(7, 26, 51, .07);
}

.club-coaches-editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--club-coaches-border);
    background: linear-gradient( 135deg, rgba(91, 140, 59, .11), rgba(11, 41, 77, .03));
}

    .club-coaches-editor-heading > div:first-child > span {
        display: block;
        margin-bottom: 4px;
        color: var(--club-coaches-green-dark);
        font-size: .72rem;
        font-weight: 900;
    }

    .club-coaches-editor-heading h2,
    .club-coaches-section-heading h2 {
        margin: 0;
        color: var(--club-coaches-navy-dark);
        font-size: 1.25rem;
        font-weight: 950;
    }

    .club-coaches-editor-heading p,
    .club-coaches-section-heading p {
        margin: 6px 0 0;
        color: var(--club-coaches-muted);
        font-size: .84rem;
    }

.club-coaches-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(72px, 1fr));
    gap: 8px;
}

    .club-coaches-summary > div {
        min-width: 74px;
        padding: 10px 12px;
        border: 1px solid rgba(91, 140, 59, .24);
        border-radius: 14px;
        background: #fff;
        text-align: center;
    }

    .club-coaches-summary strong {
        display: block;
        color: var(--club-coaches-green-dark);
        font-size: 1.15rem;
        font-weight: 950;
    }

    .club-coaches-summary span {
        color: var(--club-coaches-muted);
        font-size: .68rem;
        font-weight: 800;
    }

.club-coaches-editor-form {
    padding: 24px;
}

    .club-coaches-editor-form .form-control,
    .club-coaches-editor-form .form-select {
        min-height: 46px;
        border-color: #d9e2ec;
        border-radius: 11px;
    }

        .club-coaches-editor-form .form-control:focus,
        .club-coaches-editor-form .form-select:focus {
            border-color: var(--club-coaches-green);
            box-shadow: 0 0 0 .22rem rgba(91, 140, 59, .12);
        }

.club-coaches-current-club-message {
    margin-top: 8px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1.65;
}

    .club-coaches-current-club-message.is-same-club {
        background: #edf7e8;
        color: #3e6928;
    }

    .club-coaches-current-club-message.is-other-club {
        background: #fff4df;
        color: #885e0d;
    }

.club-coaches-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--club-coaches-border);
}

.club-coaches-editor-tip {
    max-width: 650px;
    color: var(--club-coaches-muted);
    font-size: .78rem;
    line-height: 1.7;
}

    .club-coaches-editor-tip strong {
        color: var(--club-coaches-navy-dark);
    }

.club-coaches-action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.club-coaches-save-button {
    border-color: var(--club-coaches-green);
    background: var(--club-coaches-green);
    color: #fff;
    font-weight: 900;
}

    .club-coaches-save-button:hover,
    .club-coaches-save-button:focus {
        border-color: var(--club-coaches-green-dark);
        background: var(--club-coaches-green-dark);
        color: #fff;
    }

.club-coaches-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--club-coaches-border);
}

    .club-coaches-section-heading > div:first-child {
        display: flex;
        align-items: center;
        gap: 12px;
    }

.club-coaches-section-number {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 13px;
    background: var(--club-coaches-navy);
    color: #fff;
    font-weight: 950;
}

.is-history .club-coaches-section-number {
    background: var(--club-coaches-green);
}

.club-coaches-count-badge {
    display: grid;
    min-width: 42px;
    height: 36px;
    padding: 0 12px;
    place-items: center;
    border-radius: 999px;
    background: #eef4f9;
    color: var(--club-coaches-navy);
    font-weight: 950;
}

.club-coaches-current-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    padding: 20px;
}

.club-coach-current-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 16px;
    border: 1px solid var(--club-coaches-border);
    border-radius: 18px;
    background: linear-gradient( 180deg, #fff, #f9fbfd);
    text-align: center;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

    .club-coach-current-card:hover {
        transform: translateY(-3px);
        border-color: rgba(91, 140, 59, .52);
        box-shadow: 0 13px 28px rgba(7, 26, 51, .1);
    }

.club-coach-profile-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: inherit;
}

.club-coach-current-photo {
    position: relative;
    z-index: 2;
    display: grid;
    width: 92px;
    height: 92px;
    overflow: hidden;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #e8f2e3;
    color: var(--club-coaches-green-dark);
    font-size: 1.45rem;
    font-weight: 950;
    box-shadow: 0 8px 22px rgba(7, 26, 51, .14);
    pointer-events: none;
}

    .club-coach-current-photo img,
    .club-coach-history-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.club-coach-current-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    margin-top: 12px;
    pointer-events: none;
}

.club-coach-current-status {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #e9f5e3;
    color: var(--club-coaches-green-dark);
    font-size: .65rem;
    font-weight: 900;
}

.club-coach-current-copy h3 {
    margin: 8px 0 0;
    overflow: hidden;
    color: var(--club-coaches-navy-dark);
    font-size: 1rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-coach-current-copy small {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--club-coaches-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-coach-current-copy strong {
    display: block;
    margin-top: 8px;
    color: var(--club-coaches-green-dark);
    font-size: .82rem;
}

.club-coach-current-copy p {
    margin: 3px 0 0;
    color: var(--club-coaches-muted);
    font-size: .75rem;
}

.club-coach-current-period {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 11px;
    border-radius: 11px;
    background: #f0f4f8;
    font-size: .72rem;
    pointer-events: none;
}

    .club-coach-current-period span {
        color: var(--club-coaches-muted);
    }

.club-coach-edit-button {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-top: 10px;
}

.club-coaches-empty {
    padding: 54px 20px;
    text-align: center;
}

    .club-coaches-empty.is-small {
        padding: 38px 20px;
    }

    .club-coaches-empty > div {
        font-size: 2rem;
    }

    .club-coaches-empty h3 {
        margin: 10px 0 5px;
        font-size: 1rem;
        font-weight: 950;
    }

    .club-coaches-empty p {
        margin: 0;
        color: var(--club-coaches-muted);
        font-size: .82rem;
    }

.club-coaches-history-table-wrap {
    padding: 0 20px 20px;
}

.club-coaches-history-table thead th {
    padding: 15px 12px;
    border-bottom-width: 1px;
    background: #f3f7fa;
    color: var(--club-coaches-navy);
    font-size: .75rem;
    font-weight: 950;
    white-space: nowrap;
}

.club-coaches-history-table tbody td {
    padding: 13px 12px;
    border-color: #edf1f5;
    color: #344256;
    font-size: .78rem;
    vertical-align: middle;
}

.club-coach-history-person {
    display: inline-flex;
    min-width: 190px;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

    .club-coach-history-person:hover strong {
        color: var(--club-coaches-green-dark);
        text-decoration: underline;
    }

.club-coach-history-photo {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    overflow: hidden;
    place-items: center;
    border-radius: 50%;
    background: #e8f2e3;
    color: var(--club-coaches-green-dark);
    font-weight: 950;
}

.club-coach-history-person strong,
.club-coach-history-person small {
    display: block;
    text-align: start;
}

.club-coach-history-person small {
    margin-top: 2px;
    color: var(--club-coaches-muted);
}

.club-coach-sport-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf3f9;
    color: var(--club-coaches-navy);
    font-size: .7rem;
    font-weight: 900;
    white-space: nowrap;
}

.club-coach-period-text {
    color: var(--club-coaches-navy-dark);
    font-size: .74rem;
    white-space: nowrap;
}

.club-coach-notes {
    display: block;
    max-width: 280px;
    overflow: hidden;
    color: var(--club-coaches-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .club-coaches-current-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .club-coaches-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .club-coaches-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .club-coaches-editor-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .club-coaches-action-buttons {
        justify-content: flex-start;
    }

    .club-coaches-current-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .club-coaches-hero {
        min-height: auto;
        padding: 20px;
        border-radius: 18px;
    }

    .club-coaches-club-logo {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
        border-radius: 18px;
    }

    .club-coaches-editor-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .club-coaches-editor-form {
        padding: 18px;
    }

    .club-coaches-summary {
        width: 100%;
    }

    .club-coaches-current-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .club-coaches-section-heading {
        padding: 17px;
    }

    .club-coaches-history-table-wrap {
        padding: 0 12px 14px;
    }

    .club-coaches-action-buttons,
    .club-coaches-action-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .club-coaches-hero-club {
        align-items: flex-start;
    }

    .club-coaches-hero-actions,
    .club-coaches-hero-actions .btn {
        width: 100%;
    }

    .club-coaches-club-logo {
        width: 66px;
        height: 66px;
        flex-basis: 66px;
    }
}
