@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Outer alignment shell ── */
.aafe-apc-outer {
    display: flex;
    width: 100%;
}

/* ── Card Wrapper ── */
.aafe-animated-profile-card-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    transition: transform var(--aafe-transition, 300ms) ease,
                box-shadow var(--aafe-transition, 300ms) ease;
    flex-shrink: 0;
}

/* ── Base card ── */
.aafe-apc__base-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 32px;
    min-height: 100%;
    box-sizing: border-box;
}

/* ── Overlay ── */
.aafe-apc__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    clip-path: circle(50px at 64px 64px);
    will-change: clip-path;
    background-color: var(--aafe-accent, #e0f2fe);
}

.aafe-apc__overlay-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    height: 100%;
    box-sizing: border-box;
    background-color: var(--aafe-accent, #e0f2fe);
}

/* ── Avatar ── */
.aafe-apc__avatar-wrap {
    margin-bottom: 24px;
}

.aafe-apc__avatar-wrap--hidden {
    visibility: hidden;
    /* Maintain layout space so the base card content aligns with the overlay card content */
}

.aafe-apc__overlay-card .aafe-apc__avatar-wrap {
    visibility: visible;
    height: auto;
    margin-bottom: 24px;
    overflow: visible;
}

.aafe-apc__avatar {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    outline-style: solid;
    outline-color: transparent;
    flex-shrink: 0;
}

.aafe-apc__avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 600;
}

/* ── Location ── */
.aafe-apc__place {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 6px;
}

.aafe-apc__overlay-card .aafe-apc__place {
    color: #475569;
}

/* ── Name ── */
.aafe-apc__name {
    font-family: 'Sora', sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 24px;
}

.aafe-apc__overlay-card .aafe-apc__name {
    color: #0f172a;
}

/* ── Bio ── */
.aafe-apc__bio {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #334155;
    margin: 0 0 24px;
    flex-grow: 1;
}

.aafe-apc__overlay-card .aafe-apc__bio {
    color: #0f172a;
    opacity: 0.9;
}

/* ── Footer / Socials ── */
.aafe-apc__footer {
    margin-top: auto;
}

.aafe-apc__socials {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.aafe-apc__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 18px;
    text-decoration: none;
    transition: color 200ms ease, opacity 200ms ease, background-color 200ms ease;
    line-height: 1;
}

.aafe-apc__overlay-card .aafe-apc__social-link {
    color: #475569;
}

.aafe-apc__social-link:hover {
    color: #0f172a;
    opacity: 0.75;
}

.aafe-apc__social-link svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: block;
}

.aafe-apc__social-link i {
    font-size: 1em;
    line-height: 1;
}

/* ── Hover Effects ── */
.aafe-animated-profile-card-wrapper[data-hover="lift"]:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.aafe-animated-profile-card-wrapper[data-hover="scale"]:hover {
    transform: scale(var(--aafe-hover-scale, 1.03));
}

.aafe-animated-profile-card-wrapper[data-hover="glow"]:hover {
    box-shadow: 0 0 0 3px #4f46e5, 0 8px 30px rgba(79, 70, 229, 0.25);
}

.aafe-animated-profile-card-wrapper[data-hover="border-pop"]:hover {
    border-color: #4f46e5 !important;
    transform: scale(1.01);
}

.aafe-animated-profile-card-wrapper[data-hover="shine"] {
    overflow: hidden;
}

.aafe-animated-profile-card-wrapper[data-hover="shine"]::after {
    content: '';
    position: absolute;
    inset-block: 0;
    left: -75%;
    width: 50%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 20;
}

.aafe-animated-profile-card-wrapper[data-hover="shine"]:hover::after {
    left: 125%;
    transition: left 0.65s ease;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .aafe-animated-profile-card-wrapper {
        width: 100% !important;
    }
}
