/**
 * 認証表示（フロントエンド）スタイル
 * um-verified-users相当の認証バッジとアイコン表示機能
 */

/* 認証バッジアイコン */
.el-verified {
    color: #27ae60;
    font-size: 16px;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
}

.el-verified:before {
    content: "✓";
    display: inline-block;
    border: 1px solid #27ae60;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    background-color: #27ae60;
    color: white;
    vertical-align: middle;
}

/* ツールチップ */
.el-tip-s {
    cursor: help;
    position: relative;
}

/* ツールチップ本体 */
.el-tip-s:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    pointer-events: none;
    opacity: 0;
    animation: tooltipShow 0.2s ease-out 0.15s forwards;
}

/* ツールチップ表示アニメーション */
@keyframes tooltipShow {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Ultimate Member統合用スタイル */
.um .um-name .el-verified {
    margin-left: 3px;
    vertical-align: top;
}

.um-profile .um-name .el-verified {
    margin-left: 5px;
    font-size: 14px;
}

/* ユーザー名と認証バッジの中央揃え */
.el-user-name-with-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .el-verified {
        font-size: 14px;
    }
    
    .el-verified:before {
        width: 14px;
        height: 14px;
        line-height: 12px;
        font-size: 10px;
    }
}