/* PurrPixels Breeding Team profile repair. Loaded after purrpixels.css. */

.breeding-team-profile-shell {
    width: min(1180px, calc(100% - 34px));
    margin: 0 auto;
    padding: 24px 0 60px;
}

.breeding-team-profile-loading,
.breeding-team-profile-error {
    padding: 34px 24px;
    border: 1px solid rgba(207, 186, 221, 0.7);
    border-radius: 20px;
    background: rgba(255,255,255,0.9);
    text-align: center;
    font-weight: 800;
    color: #6c5d72;
}

.breeding-team-profile-back {
    margin: 0 0 14px;
    padding: 9px 13px;
    border: 0;
    border-radius: 12px;
    background: rgba(245, 236, 250, 0.95);
    color: #6e5377;
    font-weight: 850;
    cursor: pointer;
}

.breeding-team-profile-hero {
    display: grid;
    grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    padding: 24px;
    border: 1px solid rgba(205, 185, 219, 0.72);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255,255,255,0.97), rgba(249,241,252,0.96));
    box-shadow: 0 18px 42px rgba(93, 75, 103, 0.10);
}

.breeding-team-profile-image-wrap {
    position: relative;
}

.breeding-team-profile-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(199, 177, 214, 0.72);
    background: #f6eef9;
}

.breeding-team-profile-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.breeding-team-profile-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 25% 20%, rgba(255,255,255,0.95), transparent 34%),
        linear-gradient(145deg, #f8effc, #eee2f4);
}

.breeding-team-profile-image-placeholder span {
    font-size: 64px;
    filter: grayscale(0.15);
}

.breeding-team-image-edit {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 9px 12px;
    border: 1px solid rgba(190, 167, 206, 0.85);
    border-radius: 12px;
    background: rgba(255,255,255,0.94);
    color: #644b6f;
    font-weight: 850;
    box-shadow: 0 7px 18px rgba(86, 65, 96, 0.12);
    cursor: pointer;
}

.breeding-team-profile-hero-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.breeding-team-profile-kicker,
.breeding-team-profile-card-kicker {
    color: #9b6c93;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: 0.11em;
}

.breeding-team-profile-hero h1 {
    margin: 8px 0 3px;
    color: #514356;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
}

.breeding-team-profile-cattery {
    color: #8a758e;
    font-size: 15px;
    font-weight: 800;
}

.breeding-team-profile-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.breeding-team-profile-facts > div {
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid rgba(218, 201, 226, 0.74);
    border-radius: 14px;
    background: rgba(255,255,255,0.74);
}

.breeding-team-profile-facts span,
.breeding-team-member-label {
    display: block;
    margin-bottom: 4px;
    color: #918397;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.breeding-team-profile-facts b {
    display: block;
    overflow: hidden;
    color: #5c4c62;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breeding-team-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.breeding-team-profile-card {
    padding: 20px;
    border: 1px solid rgba(211, 193, 222, 0.72);
    border-radius: 22px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 12px 30px rgba(91, 74, 100, 0.07);
}

.breeding-team-profile-card-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.breeding-team-profile-card-head h2,
.breeding-team-bank-summary h2 {
    margin: 4px 0 4px;
    color: #57485d;
    font-size: 20px;
}

.breeding-team-profile-card-head p,
.breeding-team-bank-summary p {
    max-width: 650px;
    margin: 0;
    color: #84788a;
    font-size: 12px;
    line-height: 1.5;
}

.breeding-team-profile-count {
    min-width: 38px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f4e9f8;
    color: #795f83;
    text-align: center;
    font-weight: 950;
}

.breeding-team-members-list,
.breeding-team-former-list {
    display: grid;
    gap: 9px;
}

.breeding-team-member-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.4fr) minmax(120px, 0.75fr) minmax(130px, 0.8fr);
    gap: 12px;
    align-items: center;
    padding: 11px;
    border: 1px solid rgba(224, 210, 232, 0.8);
    border-radius: 15px;
    background: #fdfbfe;
}

.breeding-team-member-main,
.breeding-team-former-player {
    display: flex;
    min-width: 0;
    gap: 10px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.breeding-team-member-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(209, 190, 219, 0.82);
    background: #f4eaf8;
}

.breeding-team-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breeding-team-member-avatar span {
    font-size: 20px;
}

.breeding-team-member-copy {
    min-width: 0;
}

.breeding-team-member-name {
    overflow: hidden;
    color: #5d4a63;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breeding-team-member-cattery {
    overflow: hidden;
    margin-top: 2px;
    color: #96859a;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breeding-team-member-detail b {
    color: #68566e;
    font-size: 12px;
}

.breeding-team-role-select {
    width: 100%;
    max-width: 180px;
    padding: 8px 9px;
    border: 1px solid rgba(203, 182, 215, 0.9);
    border-radius: 10px;
    background: #fff;
    color: #65536a;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.breeding-team-owner-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8f0fa;
    color: #826f87;
    font-size: 11px;
    line-height: 1.45;
}

.breeding-team-bank-summary {
    position: sticky;
    top: 14px;
}

.breeding-team-bank-balances {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.breeding-team-bank-balances > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 11px;
    border-radius: 12px;
    background: #f8f2fa;
}

.breeding-team-bank-balances span {
    color: #8e7e93;
    font-size: 11px;
    font-weight: 800;
}

.breeding-team-bank-balances b {
    color: #5c4a62;
    font-size: 14px;
}

.breeding-team-history-card {
    margin-top: 18px;
}

.breeding-team-former-row {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(230px, 0.9fr) minmax(180px, 0.65fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(225, 211, 232, 0.82);
    border-radius: 15px;
    background: #fdfbfe;
}

.breeding-team-former-dates {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.breeding-team-former-dates span {
    color: #95879a;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.breeding-team-former-dates b {
    display: block;
    margin-top: 3px;
    color: #66566b;
    font-size: 11px;
}

.breeding-team-cats-bred {
    text-align: right;
}

.breeding-team-cats-bred strong {
    display: block;
    color: #6b5274;
    font-size: 23px;
    line-height: 1;
}

.breeding-team-cats-bred span {
    display: block;
    margin-top: 4px;
    color: #948497;
    font-size: 10px;
    line-height: 1.25;
}

.breeding-team-profile-empty {
    padding: 19px 14px;
    border: 1px dashed rgba(205, 187, 215, 0.9);
    border-radius: 14px;
    color: #927f96;
    text-align: center;
    font-size: 12px;
    font-weight: 750;
}

@media (max-width: 820px) {
    .breeding-team-profile-shell {
        width: min(100% - 18px, 680px);
        padding-top: 12px;
    }

    .breeding-team-profile-hero {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 14px;
        border-radius: 20px;
    }

    .breeding-team-profile-image {
        aspect-ratio: 16 / 9;
    }

    .breeding-team-profile-hero h1 {
        font-size: 28px;
    }

    .breeding-team-profile-facts {
        margin-top: 15px;
    }

    .breeding-team-profile-grid {
        grid-template-columns: 1fr;
    }

    .breeding-team-bank-summary {
        position: static;
    }

    .breeding-team-member-row {
        grid-template-columns: 1fr 1fr;
    }

    .breeding-team-member-main {
        grid-column: 1 / -1;
    }

    .breeding-team-former-row {
        grid-template-columns: 1fr;
    }

    .breeding-team-cats-bred {
        padding-top: 8px;
        border-top: 1px solid rgba(225, 211, 232, 0.82);
        text-align: left;
    }

    .breeding-team-cats-bred strong,
    .breeding-team-cats-bred span {
        display: inline;
    }

    .breeding-team-cats-bred span {
        margin-left: 6px;
    }
}

@media (max-width: 520px) {
    body.purr-mobile-game .breeding-team-profile-shell,
    .breeding-team-profile-shell {
        width: calc(100% - 12px);
        padding-bottom: 34px;
    }

    .breeding-team-profile-back {
        margin-left: 3px;
    }

    .breeding-team-profile-image {
        border-radius: 16px;
    }

    .breeding-team-image-edit {
        right: 7px;
        bottom: 7px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .breeding-team-profile-facts {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .breeding-team-profile-facts > div {
        padding: 10px;
    }

    .breeding-team-profile-card {
        padding: 13px;
        border-radius: 17px;
    }

    .breeding-team-profile-card-head {
        gap: 10px;
    }

    .breeding-team-profile-card-head h2,
    .breeding-team-bank-summary h2 {
        font-size: 17px;
    }

    .breeding-team-member-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .breeding-team-member-main {
        grid-column: auto;
    }

    .breeding-team-member-detail {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-top: 7px;
        border-top: 1px solid rgba(231, 220, 236, 0.9);
    }

    .breeding-team-member-label {
        margin: 0;
    }

    .breeding-team-role-select {
        width: auto;
        min-width: 135px;
    }

    .breeding-team-created-open {
        font-size: 22px;
    }
}

.breeding-team-bank-manager {
    display: grid;
    gap: 9px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid rgba(223, 208, 230, 0.9);
}

.breeding-team-bank-manager label {
    display: grid;
    gap: 5px;
}

.breeding-team-bank-manager label > span {
    color: #8e7d93;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.breeding-team-bank-manager select,
.breeding-team-bank-manager input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid rgba(203, 183, 214, 0.9);
    border-radius: 10px;
    background: #fff;
    color: #635269;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
}

.breeding-team-bank-manager-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.breeding-team-bank-manager > button {
    padding: 9px 11px;
    border: 0;
    border-radius: 11px;
    background: #765d7f;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.breeding-team-bank-message {
    min-height: 14px;
    color: #8a657e;
    font-size: 10px;
    line-height: 1.4;
}

@media (max-width: 520px) {
    .breeding-team-bank-manager-row {
        grid-template-columns: 1fr;
    }
}


/* The generic site-wide h1 rule draws a green/gold accent line.
   Team profile headings intentionally do not use it. */
.breeding-team-profile-hero h1::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* ===== Breeding Team invitation flow ===== */
.breeding-team-invitations-card {
    margin: 18px 0;
    padding: 22px;
    border: 1px solid rgba(211, 193, 222, 0.78);
    border-radius: 24px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 14px 32px rgba(91, 74, 100, 0.08);
}

.breeding-team-invite-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.breeding-team-invite-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 15px;
    border: 1px solid rgba(220, 201, 231, 0.82);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(250,244,253,0.94));
}

.breeding-team-invite-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #f5e9fa;
    font-size: 23px;
}

.breeding-team-invite-copy {
    min-width: 0;
}

.breeding-team-invite-name {
    color: #5b465f;
    font-size: 18px;
    font-weight: 950;
}

.breeding-team-invite-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 5px;
    color: #817385;
    font-size: 12px;
}

.breeding-team-invite-meta b {
    color: #69566e;
}

.breeding-team-invite-actions {
    display: flex;
    gap: 8px;
}

.breeding-team-invite-actions button,
.breeding-team-invite-player-button {
    border: 1px solid rgba(191, 165, 205, 0.82);
    border-radius: 12px;
    padding: 9px 13px;
    background: rgba(255,255,255,0.96);
    color: #654b6e;
    font-weight: 900;
    cursor: pointer;
}

.breeding-team-invite-actions .accept,
.breeding-team-invite-player-button {
    border-color: rgba(126, 190, 167, 0.78);
    background: rgba(240, 252, 247, 0.96);
}

.breeding-team-invite-actions .decline {
    border-color: rgba(220, 174, 186, 0.78);
    background: rgba(255, 246, 249, 0.96);
}

.breeding-team-invite-actions button:hover:not(:disabled),
.breeding-team-invite-player-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(90, 70, 100, 0.10);
}

.breeding-team-invite-actions button:disabled,
.breeding-team-invite-player-button:disabled {
    opacity: 0.55;
    cursor: default;
}

.breeding-team-profile-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.breeding-team-invite-only-note {
    flex: 1 1 auto;
    color: #847489;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.breeding-teams-page-actions-single {
    align-items: center;
}

.breeding-team-invite-modal {
    position: relative;
}

.breeding-team-invite-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 0;
    border-radius: 50%;
    background: #f4eaf8;
    color: #71567a;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

#breedingTeamInviteMessage.success {
    color: #477864;
}

@media (max-width: 760px) {
    .breeding-team-invitations-card {
        padding: 16px;
        border-radius: 20px;
    }

    .breeding-team-invite-card {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 13px;
    }

    .breeding-team-invite-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: 20px;
    }

    .breeding-team-invite-actions {
        grid-column: 1 / -1;
        width: 100%;
    }

    .breeding-team-invite-actions button {
        flex: 1 1 0;
    }

    .breeding-team-profile-card-head {
        flex-direction: column;
    }

    .breeding-team-profile-head-actions {
        width: 100%;
        justify-content: space-between;
    }

    .breeding-team-invite-player-button {
        flex: 1 1 auto;
    }

    .breeding-teams-page-actions-single {
        flex-direction: column;
        align-items: stretch;
    }

    .breeding-team-invite-only-note {
        text-align: center;
    }
}
