/* =============================================================================
   User Avatar Component — CSS
   Used by template-parts/components/user-avatar.php
   Enqueued globally so the component works on any page.
   ============================================================================= */

.inv-avatar-wrap {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

/* Photo fills ~76 % of the wrap and is centered */
.inv-avatar-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76%;
    height: 76%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
}

/* Initial-letter placeholder (shown when no photo) */
.inv-avatar-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76%;
    height: 76%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a2540, #0d1424);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: #f59e0b;
    z-index: 1;
    user-select: none;
}

/* SVG frame overlay — covers full wrap, sits on top */
.inv-avatar-frame-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
