/**
 * OOI Platform V1 - Carte OOI claire.
 */

.ooi-identity-ooi-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 29%);
    width: 100%;
    max-width: 980px;
    min-height: 390px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(72, 65, 54, .14);
    border-radius: 28px;
    background: linear-gradient(135deg, #fbf8f2 0%, #f2ece3 68%, #e8ece7 100%);
    box-shadow: 0 24px 58px rgba(55, 49, 40, .11);
    color: #10243f;
    isolation: isolate;
}

.ooi-identity-ooi-card__background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ooi-identity-ooi-card__background span {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: .10;
}

.ooi-identity-ooi-card__background span:nth-child(1) {
    top: -170px;
    right: 20%;
    width: 330px;
    height: 330px;
    background: #7270ac;
}

.ooi-identity-ooi-card__background span:nth-child(2) {
    right: -100px;
    bottom: -150px;
    width: 310px;
    height: 310px;
    background: #80c5cf;
}

.ooi-identity-ooi-card__background span:nth-child(3) {
    bottom: -180px;
    left: 3%;
    width: 270px;
    height: 270px;
    background: #ffab4e;
}

.ooi-identity-ooi-card__main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 26px;
    padding: clamp(28px, 4vw, 48px);
}

.ooi-identity-ooi-card__identity {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 25px;
    align-items: center;
}

.ooi-identity-ooi-card__portrait {
    display: flex;
    width: 132px;
    height: 132px;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    background: conic-gradient(#80c5cf, #7270ac, #aacF80, #80c5cf);
    box-shadow: 0 13px 30px rgba(53, 64, 70, .14);
}

.ooi-identity-ooi-card__portrait-image,
.ooi-identity-ooi-card__initials {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    border: 5px solid #fbf8f2;
    border-radius: 50%;
}

.ooi-identity-ooi-card__portrait-image { object-fit: cover; }

.ooi-identity-ooi-card__initials {
    background: #7270ac;
    color: #fff;
    font-size: 36px;
    font-weight: 900;
}

.ooi-identity-ooi-card__identity-content { min-width: 0; }

.ooi-identity-ooi-card__type {
    display: inline-flex;
    margin-bottom: 7px;
    color: #7270ac;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ooi-identity-ooi-card__name {
    margin: 0;
    color: #10243f;
    font-size: clamp(30px, 3.5vw, 46px);
    font-weight: 850;
    line-height: 1.02;
}

.ooi-identity-ooi-card__profession {
    margin-top: 10px;
    color: #a7611c;
    font-size: 17px;
    font-weight: 800;
}

.ooi-identity-ooi-card__location {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin-top: 9px;
    color: #617083;
    font-size: 13px;
    font-weight: 700;
}

.ooi-identity-ooi-card__level { max-width: 540px; }

.ooi-identity-ooi-card__level-heading {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #617083;
    font-size: 12px;
    font-weight: 800;
}

.ooi-identity-ooi-card__level-heading strong { color: #62853a; }

.ooi-identity-ooi-card__progress {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(16, 36, 63, .09);
}

.ooi-identity-ooi-card__progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7270ac, #80c5cf, #aacf80);
}

.ooi-identity-ooi-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.ooi-identity-ooi-card__action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid rgba(114, 112, 172, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    color: #59579a;
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
}

.ooi-identity-ooi-card__action--primary {
    border-color: #80c5cf;
    background: #80c5cf;
    color: #10243f;
}

.ooi-identity-ooi-card__action:hover,
.ooi-identity-ooi-card__action:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(55, 49, 40, .10);
}

.ooi-identity-ooi-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(16, 36, 63, .09);
}

.ooi-identity-ooi-card__brand {
    display: flex;
    gap: 11px;
    align-items: center;
}

.ooi-identity-ooi-card__brand-mark {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(114, 112, 172, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
    color: #59579a;
    font-size: 12px;
    font-weight: 900;
}

.ooi-identity-ooi-card__brand div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ooi-identity-ooi-card__brand strong {
    color: #10243f;
    font-size: 11px;
}

.ooi-identity-ooi-card__brand div span {
    color: #7a8390;
    font-size: 9px;
}

.ooi-identity-ooi-card__claimed {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(170, 207, 128, .22);
    color: #55742f;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.ooi-identity-ooi-card__side {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 24px;
    border-left: 1px solid rgba(16, 36, 63, .09);
    background: rgba(255, 255, 255, .38);
}

.ooi-identity-ooi-card__qr {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
}

.ooi-identity-ooi-card__qr-placeholder {
    display: flex;
    width: 150px;
    height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 8px solid #fff;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(55, 49, 40, .10);
    color: #10243f;
}

.ooi-identity-ooi-card__qr-grid {
    display: grid;
    grid-template-columns: repeat(3, 16px);
    grid-template-rows: repeat(3, 16px);
    gap: 5px;
    opacity: .48;
}

.ooi-identity-ooi-card__qr-grid i {
    display: block;
    border-radius: 3px;
    background: #10243f;
}

.ooi-identity-ooi-card__qr-grid i:nth-child(2),
.ooi-identity-ooi-card__qr-grid i:nth-child(4),
.ooi-identity-ooi-card__qr-grid i:nth-child(8) { background: #7270ac; }

.ooi-identity-ooi-card__qr-placeholder strong {
    font-size: 10px;
    letter-spacing: .08em;
}

.ooi-identity-ooi-card__qr-label {
    max-width: 180px;
    color: #7a8390;
    font-size: 10px;
    line-height: 1.4;
}

.ooi-identity-ooi-card__qr-admin-link {
    color: #26717a;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.ooi-identity-ooi-card__profile-link {
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(16, 36, 63, .09);
    text-align: center;
}

.ooi-identity-ooi-card__profile-link span {
    display: block;
    margin-bottom: 5px;
    color: #8b919a;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ooi-identity-ooi-card__profile-link code {
    display: block;
    overflow-wrap: anywhere;
    background: transparent;
    color: #617083;
    font-size: 9px;
}

.ooi-identity-ooi-card-error {
    padding: 14px 16px;
    border: 1px solid var(--ooi-memory);
    border-radius: var(--ooi-radius-md);
    background: rgba(217, 158, 130, .12);
}

@media screen and (max-width: 760px) {
    .ooi-identity-ooi-card {
        grid-template-columns: 1fr;
        max-width: 580px;
    }

    .ooi-identity-ooi-card__side {
        border-top: 1px solid rgba(16, 36, 63, .09);
        border-left: 0;
    }
}

@media screen and (max-width: 520px) {
    .ooi-identity-ooi-card { border-radius: 23px; }

    .ooi-identity-ooi-card__main { padding: 27px 20px; }

    .ooi-identity-ooi-card__identity {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .ooi-identity-ooi-card__portrait {
        width: 118px;
        height: 118px;
    }

    .ooi-identity-ooi-card__name { font-size: 32px; }
    .ooi-identity-ooi-card__actions,
    .ooi-identity-ooi-card__footer { justify-content: center; }
    .ooi-identity-ooi-card__brand { flex-direction: column; text-align: center; }
}

@media print {
    .ooi-identity-ooi-card {
        max-width: none;
        box-shadow: none;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .ooi-identity-ooi-card__qr-admin-link,
    .ooi-identity-ooi-card__actions { display: none; }
}
