﻿/*
===============================================================================
GEDIAN SPORTS
Show Association Members
===============================================================================
*/

.association-members-page {
    --members-navy: #0f2747;
    --members-navy-dark: #071a33;
    --members-green: #5b8c3b;
    --members-green-dark: #416d2b;
    --members-border: #e2e9f0;
    --members-muted: #6a7889;
    color: var(--members-navy-dark);
}

.association-members-header {
    display: flex;
    min-height: 158px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    border-radius: 22px;
    background: radial-gradient( circle at top right, rgba(255,255,255,.13), transparent 25rem), linear-gradient( 135deg, var(--members-navy-dark), var(--members-navy));
    color: #fff;
    box-shadow: 0 15px 38px rgba(7, 26, 51, .16);
}

.association-members-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 17px;
}

.association-members-logo {
    display: grid;
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    overflow: hidden;
    place-items: center;
    border: 3px solid rgba(255,255,255,.84);
    border-radius: 20px;
    background: #fff;
    color: var(--members-navy);
    font-size: 1.6rem;
    font-weight: 950;
    box-shadow: 0 9px 23px rgba(0,0,0,.16);
}

    .association-members-logo img {
        width: 100%;
        height: 100%;
        padding: 7px;
        object-fit: contain;
    }

.association-members-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #bdd9ad;
    font-size: .72rem;
    font-weight: 900;
}

.association-members-header h1 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 950;
}

.association-members-association-name {
    margin: 5px 0 0;
    font-size: .9rem;
    font-weight: 850;
}

.association-members-term-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

    .association-members-term-line > * {
        display: inline-flex;
        min-height: 27px;
        align-items: center;
        padding: 0 9px;
        border: 1px solid rgba(255,255,255,.17);
        border-radius: 999px;
        background: rgba(255,255,255,.09);
        color: #e2eaf2;
        font-size: .68rem;
    }

    .association-members-term-line .is-current {
        border-color: rgba(185, 222, 163, .4);
        background: rgba(91, 140, 59, .42);
        color: #fff;
        font-weight: 900;
    }

.association-members-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.association-members-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.association-member-stat {
    padding: 17px 18px;
    border: 1px solid var(--members-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(7, 26, 51, .06);
}

    .association-member-stat strong {
        display: block;
        color: var(--members-green-dark);
        font-size: 1.45rem;
        font-weight: 950;
    }

    .association-member-stat span {
        color: var(--members-muted);
        font-size: .72rem;
        font-weight: 800;
    }

.association-members-card {
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--members-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(7, 26, 51, .07);
}

.association-members-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 21px;
    border-bottom: 1px solid var(--members-border);
    background: linear-gradient( 135deg, rgba(91, 140, 59, .09), rgba(15, 39, 71, .025));
}

    .association-members-card-heading > div:first-child {
        display: flex;
        align-items: center;
        gap: 11px;
    }

        .association-members-card-heading > div:first-child > span {
            display: grid;
            width: 39px;
            height: 39px;
            flex: 0 0 39px;
            place-items: center;
            border-radius: 12px;
            background: var(--members-navy);
            color: #fff;
            font-weight: 950;
        }

    .association-members-card-heading h2 {
        margin: 0;
        color: var(--members-navy-dark);
        font-size: 1.08rem;
        font-weight: 950;
    }

    .association-members-card-heading p {
        margin: 4px 0 0;
        color: var(--members-muted);
        font-size: .75rem;
    }

.association-member-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    padding: 20px;
}

.association-member-card {
    display: flex;
    min-width: 0;
    min-height: 320px;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--members-border);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 7px 20px rgba(7, 26, 51, .055);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

    .association-member-card:hover {
        transform: translateY(-4px);
        border-color: rgba(91, 140, 59, .55);
        color: inherit;
        box-shadow: 0 13px 28px rgba(7, 26, 51, .11);
    }

    .association-member-card.is-current-member {
        box-shadow: inset 0 4px 0 var(--members-green), 0 7px 20px rgba(7, 26, 51, .055);
    }

    .association-member-card.is-former-member {
        background: #fbfcfd;
        opacity: .82;
    }

.association-member-card-top {
    position: relative;
    display: flex;
    min-height: 122px;
    align-items: center;
    justify-content: center;
    padding: 18px 16px 10px;
    background: radial-gradient( circle at top right, rgba(91, 140, 59, .12), transparent 11rem), #f6f9fb;
}

.association-member-photo {
    display: grid;
    width: 94px;
    height: 94px;
    overflow: hidden;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #e8f1e3;
    color: var(--members-green-dark);
    font-size: 1.55rem;
    font-weight: 950;
    box-shadow: 0 7px 18px rgba(7, 26, 51, .13);
}

    .association-member-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.association-member-card-badges {
    position: absolute;
    top: 11px;
    inset-inline-end: 11px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.association-member-badge {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    font-size: .59rem;
    font-weight: 900;
}

    .association-member-badge.is-verified {
        background: #e5f3de;
        color: #3f6d2a;
    }

    .association-member-badge.is-voting {
        background: #e7f0fa;
        color: #315f8e;
    }

.association-member-card-body {
    flex: 1;
    padding: 15px 16px 12px;
    text-align: center;
}

.association-member-role {
    color: var(--members-green-dark);
    font-size: .82rem;
    font-weight: 950;
}

.association-member-role-en {
    min-height: 17px;
    margin-top: 2px;
    color: #8390a0;
    font-size: .62rem;
    text-align: center;
}

.association-member-card h3 {
    margin: 12px 0 0;
    color: var(--members-navy-dark);
    font-size: .98rem;
    font-weight: 950;
}

.association-member-name-en {
    margin-top: 3px;
    color: var(--members-muted);
    font-size: .68rem;
    text-align: center;
}

.association-member-period {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 13px;
}

    .association-member-period span {
        padding: 4px 7px;
        border-radius: 8px;
        background: #f1f5f8;
        color: #667487;
        font-size: .61rem;
        font-weight: 750;
    }

.association-member-card-footer {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 13px;
    border-top: 1px solid var(--members-border);
    background: #fbfcfd;
}

.association-membership-status {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    font-size: .61rem;
    font-weight: 900;
}

    .association-membership-status.is-active {
        background: #e7f4e0;
        color: #3e7027;
    }

    .association-membership-status.is-resigned,
    .association-membership-status.is-completed {
        background: #eef1f4;
        color: #596775;
    }

    .association-membership-status.is-removed {
        background: #fde9e9;
        color: #a33434;
    }

    .association-membership-status.is-suspended {
        background: #fff1d8;
        color: #8b5d08;
    }

.association-member-edit-hint {
    color: var(--members-navy);
    font-size: .63rem;
    font-weight: 900;
}

.association-members-empty {
    padding: 50px 20px;
    text-align: center;
}

    .association-members-empty > div {
        font-size: 2.1rem;
    }

    .association-members-empty h3 {
        margin: 10px 0 5px;
        font-size: 1rem;
        font-weight: 950;
    }

    .association-members-empty p {
        margin: 0 0 14px;
        color: var(--members-muted);
        font-size: .79rem;
    }

.association-member-form-body {
    padding: 21px;
}

.association-member-form .form-control,
.association-member-form .form-select {
    min-height: 45px;
    border-color: #d8e1eb;
    border-radius: 10px;
}

.association-member-form textarea.form-control {
    min-height: auto;
}

.association-member-form .form-control:focus,
.association-member-form .form-select:focus {
    border-color: var(--members-green);
    box-shadow: 0 0 0 .2rem rgba(91, 140, 59, .12);
}

.association-member-voting-switch {
    width: 100%;
    padding: 13px 14px 13px 48px;
    border: 1px solid var(--members-border);
    border-radius: 11px;
    background: #f8fafc;
}

.association-member-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 21px;
    border-top: 1px solid var(--members-border);
    background: #fbfcfd;
}

.association-member-form-note {
    max-width: 690px;
    color: var(--members-muted);
    font-size: .72rem;
    line-height: 1.7;
}

    .association-member-form-note strong {
        color: var(--members-navy-dark);
    }

@media (max-width: 1199.98px) {
    .association-member-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .association-members-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .association-members-header-actions {
        width: 100%;
    }

    .association-members-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .association-member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .association-member-form-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .association-members-header {
        min-height: auto;
        padding: 18px;
        border-radius: 17px;
    }

    .association-members-identity {
        align-items: flex-start;
    }

    .association-members-logo {
        width: 66px;
        height: 66px;
        flex-basis: 66px;
        border-radius: 15px;
    }

    .association-members-header-actions,
    .association-members-header-actions .btn {
        width: 100%;
    }

    .association-members-summary {
        grid-template-columns: 1fr 1fr;
    }

    .association-members-card-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

        .association-members-card-heading .btn {
            width: 100%;
        }

    .association-member-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .association-member-form-body {
        padding: 16px;
    }

    .association-member-form-actions {
        padding: 15px 16px;
    }

        .association-member-form-actions > div:last-child,
        .association-member-form-actions > div:last-child .btn {
            width: 100%;
        }
}
