/* Odznáček Autora – levý horní roh avataru (tečky varování a online kolečko jsou vpravo dole) */
.au-wrap {
    position: relative;
    display: inline-block;
}
.au-wrap .au-badge {
    aspect-ratio: 1;
    width: 36%;
    min-width: 10px;
    max-width: 40px;
    position: absolute;
    left: -12%;
    top: -12%;
    z-index: 2;
    background: #262a3c url(../img/ocicko.svg) center / contain no-repeat;
    border: 2px solid #fff;
    border-radius: 100%;
    box-sizing: border-box;
}

/* Šedé tlačítko „+ psát na stránku“ v prostoru jen pro Autory; bublina po najetí / kliknutí (třída open) */
.tp-author-notice {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}
.tp-new-post-row .tp-author-notice {
    margin-bottom: 0;
}
.tp-author-notice .tp-author-btn,
.tp-author-notice .tp-author-btn:hover,
.tp-author-notice .tp-author-btn:focus {
    background: #e4e6ea;
    border-color: #d5d8dd;
    color: #8a8f98;
    cursor: help;
    box-shadow: none;
}
.tp-author-tip {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    width: max-content;
    max-width: 260px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #333;
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* most přes mezeru, ať bublina při přejetí myší k odkazu nezmizí */
.tp-author-tip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}
.tp-author-tip a {
    color: #8fd3ff;
    font-weight: 600;
    text-decoration: underline;
}
.tp-author-notice:hover .tp-author-tip,
.tp-author-notice.open .tp-author-tip {
    display: block;
}

/* Velký avatar v hlavičce profilu: kontejner (.image-upload-container) má overflow: hidden,
   odznáček přes roh by se ořízl – tady leží uvnitř fotky */
.profile-user-photo-container .au-wrap .au-badge {
    left: 6px;
    top: 6px;
}

/* Avatar v horní liště (účet): obrázek má margin-left 10px, obal je o to širší –
   odznáček posunout k obrázku */
#user-account-image .au-badge {
    width: 14px;
    min-width: 14px;
    left: 4px;
    top: -4px;
}

/* Admin (záložka Autoři): po najetí na jméno náhled s fotkou a celým jménem */
.au-user {
    position: relative;
}
.au-user-card {
    display: none;
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: 280px;
    padding: 8px 12px 8px 8px;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}
.au-user-card img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
}
.au-user:hover .au-user-card {
    display: flex;
}
